<?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: REST in webservices in sas 9.4 m3 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/298097#M6024</link>
    <description>&lt;P&gt;Thank you Bruno&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 16:52:58 GMT</pubDate>
    <dc:creator>L_R</dc:creator>
    <dc:date>2016-09-13T16:52:58Z</dc:date>
    <item>
      <title>REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295647#M5896</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i create REST webservices? what is the requirement? How do i check if it has been installed in my system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295647#M5896</guid>
      <dc:creator>L_R</dc:creator>
      <dc:date>2016-08-31T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295695#M5902</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this documentation &lt;A href="http://support.sas.com/documentation/cdl/en/wbsvcdg/64883/HTML/default/viewer.htm#n1wblekhip1yrln1fv2s5b6a2d9f.htm" target="_blank"&gt;Invoking RESTful Web Services&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have the corresponding web application (/SASBIWS), you are good to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You create a Stored Process with the necessary parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use one of the endpoints to call the web service and pass parameters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample code to test a web service from SAS. The STP has four parameters that have the same name as you see in the XML with the code (tableName, columnName, statName, someDate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*
* for Windows use port = 80
*;
%let hostName = &amp;amp;systcpiphostname;
%let port = 7980;
%let SASBIWS_path = /SASBIWS/rest/storedProcesses;

%let stpName = /yourfolder/yourSTP;

*
* build parm list for REST XML request
*;
filename htin temp;
data _null_;
  infile cards;
  input;
  file htin;
  put _infile_;
cards4;
&amp;lt;any&amp;gt;
&amp;lt;parameters&amp;gt;
&amp;lt;tableName&amp;gt;sashelp.cars&amp;lt;/tableName&amp;gt;
&amp;lt;columnName&amp;gt;invoice&amp;lt;/columnName&amp;gt;
&amp;lt;statName&amp;gt;MEAN&amp;lt;/statName&amp;gt;
&amp;lt;someDate&amp;gt;2016-01-17&amp;lt;/someDate&amp;gt;
&amp;lt;/parameters&amp;gt;
&amp;lt;/any&amp;gt;
;;;;


*
* call STP as REST WS
*;
filename htout temp;
proc http
  method="POST"
  URL="http://&amp;amp;hostName:&amp;amp;port.&amp;amp;SASBIWS_path.&amp;amp;stpName"
  in=htin
  out=htout
  ct="application/xml"
  verbose
  ;
run;

*
* display result
*;
data _null_;
  infile htout;
  input;
  putlog _infile_;
run;

filename htin clear;
filename htout clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As attachment, there is a SAS package file with the Stored Process, that fits the SAS code above. Take away the .ZIP extension, so that the file can be imported in the SAS Management Console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 06:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295695#M5902</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-09-01T06:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295826#M5920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the sample. Could you please give me the steps on how to create it. i am writing a stored process with the parameters. Then do i have to use SMC to create the REST? in SMC i can see the option to create Webservices but not REST or JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Lakshmi&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295826#M5920</guid>
      <dc:creator>L_R</dc:creator>
      <dc:date>2016-09-01T13:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295906#M5921</link>
      <description>&lt;P&gt;Just import the STP provided in the SAS Package file I added as an attachment. Then you have a STP that fits the code to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SAS9.4 (maybe SAS9.2)&amp;nbsp; there is no longer a need to create a WebService from a Stored Process, you just need to use the right URL to call the STP as a WebService, as per the documentation I referenced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295906#M5921</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-09-01T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295926#M5922</link>
      <description>&lt;P&gt;HI, so, if a non-sas user to run the stp, all i have to do is create a stp using sas EG and write the proc http block and give the URL to the non-sas user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/295926#M5922</guid>
      <dc:creator>L_R</dc:creator>
      <dc:date>2016-09-01T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/296476#M5950</link>
      <description>&lt;P&gt;For a non SAS user to call the Web Service&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;you create the Stored Process with the appropriate parameters&lt;/LI&gt;
&lt;LI&gt;you give the caller the URL to call the STP as a web service, inclduding a description of the parameters expected and returned&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Proc HTTP code, is a way to call a web service from a SAS program, so this can be used to test your web service, as well as calling non SAS web services.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/296476#M5950</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-09-05T08:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/298097#M6024</link>
      <description>&lt;P&gt;Thank you Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/298097#M6024</guid>
      <dc:creator>L_R</dc:creator>
      <dc:date>2016-09-13T16:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318084#M6762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there is a way through the REST webservices interface in sas 9.4 to query what are the parameters that a stored process takes as input?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously in the 9.2 foundation services one is able to query what are the parameter names and types that a specific stored process takes as input. &amp;nbsp;I believe this was done using RMI to the Metadata Server. &amp;nbsp;I can't find anywhere in the documentation where we can query a stored process through the BI services for the parameters it uses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 21:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318084#M6762</guid>
      <dc:creator>shamdan</dc:creator>
      <dc:date>2016-12-10T21:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318221#M6767</link>
      <description>&lt;P&gt;Please create a new discussion for this topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Makes it easier for everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 08:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318221#M6767</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-12-12T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318346#M6771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about that. &amp;nbsp;I have created a new discussion here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/Get-stored-process-parameters-through-REST-service-api-SAS-9-4/m-p/318344#M3686" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/Get-stored-process-parameters-through-REST-service-api-SAS-9-4/m-p/318344#M3686&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 18:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/318346#M6771</guid>
      <dc:creator>shamdan</dc:creator>
      <dc:date>2016-12-12T18:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/320055#M6821</link>
      <description>&lt;P&gt;Bruno,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created an STP and can access through SAS stored process web application by specifying a long URL when I try to use the url for restful web service of type http://host:port/SASBIWS I get an error that url is incorrect. I tried both 7980 and 8080 as port and even tried without port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the "host" in this url? Which server it refers to?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 22:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/320055#M6821</guid>
      <dc:creator>SampatSaraf</dc:creator>
      <dc:date>2016-12-19T22:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/320066#M6822</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If it is a http://hostname:7980(whatever the port number set during installation)/BIWebServices/rest/SASStoredProcesses/path name where you have saved the stored processes.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2016 23:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/320066#M6822</guid>
      <dc:creator>L_R</dc:creator>
      <dc:date>2016-12-19T23:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/483251#M13783</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Using Bruno_SAS code (given on&amp;nbsp;&lt;SPAN class="local-date"&gt;09-01-2016&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;) I created a request and got the response which is a long xml string&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;ResultA&amp;gt;&amp;lt;Resultset&amp;gt;&amp;lt;var1&amp;gt;someval&amp;lt;/var1&amp;gt;........&amp;lt;varn&amp;gt;some val&amp;lt;/valn&amp;gt;&amp;lt;/ResultA&amp;gt;&amp;lt;/Resultset&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there a way to convert to SAS data set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 02:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/483251#M13783</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2018-08-02T02:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST in webservices in sas 9.4 m3</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/483290#M13786</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39715"&gt;@thesasuser&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes there is, have a look at the SAS XML libname engine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl//en/engxml/64990/HTML/default/viewer.htm#titlepage.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl//en/engxml/64990/HTML/default/viewer.htm#titlepage.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 06:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/m-p/483290#M13786</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-08-02T06:36:05Z</dc:date>
    </item>
  </channel>
</rss>

