<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with SAS RESTful webservice in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/335239#M5236</link>
    <description>&lt;P&gt;latest Update:&lt;/P&gt;
&lt;P&gt;I managed to pass the parameter as Body in the RESTClient and it worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;any&amp;gt;&lt;BR /&gt;&amp;lt;parameters&amp;gt;&lt;BR /&gt;&amp;lt;parameter1&amp;gt;value1&amp;lt;/parameter1&amp;gt;&lt;BR /&gt;&amp;lt;/parameters&amp;gt;&lt;BR /&gt;&amp;lt;/any&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, now it fails in SAS as I had given fileref as _WEBOUT in the code- SAS tries to write _webout.dat in the SAS Foundation library where it doesnt have write access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; infile ".../saswork/SAS_work470C0026F545_sla06469/SAS_work8ECA0026F545_sla06469/temp.csv" recfm=f lrecl=1;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; file _WEBOUT recfm=n;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; input c $char1. @@;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; put c $char1. @@;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I am wondering if I have to define "Data Targets" for this stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 11:10:19 GMT</pubDate>
    <dc:creator>DCL</dc:creator>
    <dc:date>2017-02-23T11:10:19Z</dc:date>
    <item>
      <title>Help with SAS RESTful webservice</title>
      <link>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/334918#M5235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently facing issues while trying to invoke SAS BIWebservice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Firefox plugin- RESTClient to invoke&lt;/P&gt;
&lt;P&gt;https://&amp;lt;webserverUrl&amp;gt;/SASBIWS/rest/storedProcesses/&amp;lt;StoredProcess Path &amp;gt;/&amp;lt;stpName&amp;gt;?&amp;lt;parameter1&amp;gt;=&amp;lt;value1&amp;gt;&lt;/P&gt;
&lt;P&gt;However, "parameter1" is not getting resolved in sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had registered the stored process with&lt;/P&gt;
&lt;P&gt;* Results capability- enabled for "Stream" and "Package"&lt;/P&gt;
&lt;P&gt;* Server Type: Stored process only&lt;/P&gt;
&lt;P&gt;* Prompts: &amp;lt;parameter1&amp;gt; type: text&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The purpose of this stored process is to stream a PDF file to the browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help on this topic would be highly appreciated:&lt;/P&gt;
&lt;P&gt;1. I am currently puzzled why the parameter is not getting resolved.&lt;/P&gt;
&lt;P&gt;2. How do I access the WADL file for this webservice&lt;/P&gt;
&lt;P&gt;WSDL path is as follows:&lt;/P&gt;
&lt;P&gt;https://&amp;lt;webserverUrl&amp;gt;/SASBIWS/services/&amp;lt;StoredProcess Path &amp;gt;/&amp;lt;stpName&amp;gt;.wsdl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if there are any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Dilip&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/334918#M5235</guid>
      <dc:creator>DCL</dc:creator>
      <dc:date>2017-02-22T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS RESTful webservice</title>
      <link>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/335239#M5236</link>
      <description>&lt;P&gt;latest Update:&lt;/P&gt;
&lt;P&gt;I managed to pass the parameter as Body in the RESTClient and it worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;any&amp;gt;&lt;BR /&gt;&amp;lt;parameters&amp;gt;&lt;BR /&gt;&amp;lt;parameter1&amp;gt;value1&amp;lt;/parameter1&amp;gt;&lt;BR /&gt;&amp;lt;/parameters&amp;gt;&lt;BR /&gt;&amp;lt;/any&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, now it fails in SAS as I had given fileref as _WEBOUT in the code- SAS tries to write _webout.dat in the SAS Foundation library where it doesnt have write access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; infile ".../saswork/SAS_work470C0026F545_sla06469/SAS_work8ECA0026F545_sla06469/temp.csv" recfm=f lrecl=1;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; file _WEBOUT recfm=n;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; input c $char1. @@;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; put c $char1. @@;&lt;BR /&gt;MPRINT(FSTREAM):&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I am wondering if I have to define "Data Targets" for this stored process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 11:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/335239#M5236</guid>
      <dc:creator>DCL</dc:creator>
      <dc:date>2017-02-23T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS RESTful webservice</title>
      <link>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/337106#M5237</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Do you have &lt;FONT face="courier new,courier"&gt;Stream&lt;/FONT&gt; selected as a result type in your stored process defintion?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 19:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/337106#M5237</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-03-01T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS RESTful webservice</title>
      <link>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/337355#M5238</link>
      <description>&lt;P&gt;Thanks Vince for the response- I did mention the Stream option. In the meantime, I fixed my issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just in case, it helps anyone - I am listing down the mistakes/ corrections I made during the last couple of days:&lt;/P&gt;
&lt;P&gt;1. After getting annoyed with _WEBOUT, I decided to use another fileref in my SAS code and registered that in Data target tab while creating the stored process (Once I find some time, I will recheck _WEBOUT again- conceptually it should work- i guess!)&lt;/P&gt;
&lt;P&gt;2. I spent some hours to realise that the endpoint URl is different for getting the Streamed results/ Output parameters&lt;/P&gt;
&lt;P&gt;eg. https://&amp;lt;webserverUrl&amp;gt;/SASBIWS/rest/storedProcesse&lt;WBR /&gt;s/&amp;lt;StoredProcess Path &amp;gt;/&amp;lt;stpName&amp;gt;/outputParameters/&amp;lt;macrovariable&amp;gt;&lt;/P&gt;
&lt;P&gt;https://&amp;lt;webserverUrl&amp;gt;/SASBIWS/rest/storedProcesse&lt;WBR /&gt;s/&amp;lt;StoredProcess Path &amp;gt;/&amp;lt;stpName&amp;gt;/dataTargets/&amp;lt;fileref&amp;gt;&lt;/P&gt;
&lt;P&gt;3. In dataTargets, it took me some time to configure the correct content-type for associated file&lt;/P&gt;
&lt;TABLE class="confluenceTable tablesorter tablesorter-default stickyTableHeaders"&gt;
&lt;THEAD class="tableFloatingHeaderOriginal" style="left: 382px; top: 0px; width: 293px; margin-top: 0px; position: static; z-index: 3;"&gt;
&lt;TR class="tablesorter-headerRow"&gt;
&lt;TH class="confluenceTh sortableHeader tablesorter-headerAsc" style="min-width: 0px; max-width: none;" tabindex="0" data-column="0"&gt;
&lt;DIV class="tablesorter-header-inner"&gt;File Type&lt;/DIV&gt;
&lt;/TH&gt;
&lt;TH class="confluenceTh sortableHeader" style="min-width: 0px; max-width: none;" tabindex="0" data-column="1"&gt;
&lt;DIV class="tablesorter-header-inner"&gt;content-type&lt;/DIV&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;THEAD class="tableFloatingHeader" style="display: none;"&gt;
&lt;TR class="tablesorter-headerRow"&gt;
&lt;TH class="confluenceTh sortableHeader" tabindex="0" data-column="0"&gt;
&lt;DIV class="tablesorter-header-inner"&gt;File Type&lt;/DIV&gt;
&lt;/TH&gt;
&lt;TH class="confluenceTh sortableHeader" tabindex="0" data-column="1"&gt;
&lt;DIV class="tablesorter-header-inner"&gt;content-type&lt;/DIV&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="confluenceTd"&gt;pdf&lt;/TD&gt;
&lt;TD class="confluenceTd"&gt;application/pdf&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="confluenceTd"&gt;xls/csv&lt;/TD&gt;
&lt;TD class="confluenceTd"&gt;application/vnd.ms-excel&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="1" class="confluenceTd"&gt;&amp;nbsp;zip&lt;/TD&gt;
&lt;TD colspan="1" class="confluenceTd"&gt;&amp;nbsp;application/x-zip-compressed&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;4. At client side, I gave content-type: text/xml as I pass the parameters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are still lot of areas to explore in this topic. Eventhough, I read about XMLA webservice, i havent still understood its use case. Since RESTClient is easy to use, I felt RESTful webservices comparatively simple to operate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dilip&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 14:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Help-with-SAS-RESTful-webservice/m-p/337355#M5238</guid>
      <dc:creator>DCL</dc:creator>
      <dc:date>2017-03-02T14:06:57Z</dc:date>
    </item>
  </channel>
</rss>

