<?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: SAS Web services: creating a REST stored process to accept a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Web-services-creating-a-REST-stored-process-to-accept-a/m-p/726147#M225642</link>
    <description>&lt;P&gt;I use the following url&amp;nbsp; to request xml/rest and json. with appropriate headers&lt;/P&gt;&lt;P&gt;&lt;A href="http://hostname:port/SASBIWS/rest/storedProcesses/stored/process/path" target="_blank"&gt;http://hostname:port/SASBIWS/rest/storedProcesses/stored/process/path&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;A href="http://hostname:port//SASBIWS/json/storedProcesses/stored/process/path" target="_blank"&gt;http://hostname:port//SASBIWS/json/storedProcesses/stored/process/path&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And it works.&lt;/P&gt;&lt;P&gt;You can have the details here&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=itechcdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=wbsvcdg&amp;amp;docsetTarget=p06ov8we7odtj6n1gc378hd69olc.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=itechcdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=wbsvcdg&amp;amp;docsetTarget=p06ov8we7odtj6n1gc378hd69olc.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Mar 2021 18:40:09 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-03-14T18:40:09Z</dc:date>
    <item>
      <title>SAS Web services: creating a REST stored process to accept a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Web-services-creating-a-REST-stored-process-to-accept-a/m-p/681566#M206170</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes this would appear a very simple thing to achieve but I cannot seem to get this working. I want to use the &lt;STRONG&gt;REST&lt;/STRONG&gt; api and pass a parameter via the webservice to SAS. The parameter value is stored in a macro variable. I can get this working when specifying the &lt;STRONG&gt;JSON&lt;/STRONG&gt; endpoint.&lt;/P&gt;
&lt;P&gt;However when I specify the REST endpoint I simply cannot get this to work. An error is returned Unsupported Media Type. I have no idea how to define the stored process, what content-type is the REST point expecting? I can get this working when providing the request using XML but I simply need to pass some parameters in. I need to use REST since I will be streaming output back to the client (with the JSON endpoint datastreams cannot be used as output).&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorRichardP_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;What am I doing wrong? Any help very much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 08:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Web-services-creating-a-REST-stored-process-to-accept-a/m-p/681566#M206170</guid>
      <dc:creator>RichardP</dc:creator>
      <dc:date>2020-09-04T08:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Web services: creating a REST stored process to accept a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Web-services-creating-a-REST-stored-process-to-accept-a/m-p/726147#M225642</link>
      <description>&lt;P&gt;I use the following url&amp;nbsp; to request xml/rest and json. with appropriate headers&lt;/P&gt;&lt;P&gt;&lt;A href="http://hostname:port/SASBIWS/rest/storedProcesses/stored/process/path" target="_blank"&gt;http://hostname:port/SASBIWS/rest/storedProcesses/stored/process/path&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;A href="http://hostname:port//SASBIWS/json/storedProcesses/stored/process/path" target="_blank"&gt;http://hostname:port//SASBIWS/json/storedProcesses/stored/process/path&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And it works.&lt;/P&gt;&lt;P&gt;You can have the details here&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=itechcdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=wbsvcdg&amp;amp;docsetTarget=p06ov8we7odtj6n1gc378hd69olc.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=itechcdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=wbsvcdg&amp;amp;docsetTarget=p06ov8we7odtj6n1gc378hd69olc.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 18:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Web-services-creating-a-REST-stored-process-to-accept-a/m-p/726147#M225642</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-14T18:40:09Z</dc:date>
    </item>
  </channel>
</rss>

