<?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: How to create SAS web service using SAS stored process in SAS 9.4 and how to call the same in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/585624#M14362</link>
    <description>&lt;P&gt;Another (perhaps simpler) approach is to write out your content directly from an STP to `_webout` and call it using YOURURL/SASStoredProcess/do?_program=/your/path/to/your/stp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STPs can be created very easily, eg with the following macro:&amp;nbsp; &lt;A href="https://github.com/sasjs/core/blob/main/meta/mm_createwebservice.sas" target="_blank" rel="noopener"&gt;https://github.com/sasjs/core/blob/main/meta/mm_createwebservice.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some useful resources:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/1091-2017.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://support.sas.com/resources/papers/proceedings17/1091-2017.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://www.rawsas.com/building-web-apps-with-sas/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://www.rawsas.com/building-web-apps-with-sas/&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://www.linkedin.com/pulse/5-tips-sas-app-developers-allan-bowe/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://www.linkedin.com/pulse/5-tips-sas-app-developers-allan-bowe/&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings17/1372-2017.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;http://support.sas.com/resources/papers/proceedings17/1372-2017.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 20:03:28 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2021-10-13T20:03:28Z</dc:date>
    <item>
      <title>How to create SAS web service using SAS stored process in SAS 9.4 and how to call the same</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/583144#M13924</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do we have step by step procedure to create a SAS Web service using SAS stored process and how do we call it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sriram Sahani&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:19:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/583144#M13924</guid>
      <dc:creator>sriramsahani</dc:creator>
      <dc:date>2019-08-22T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create SAS web service using SAS stored process in SAS 9.4 and how to call the same</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/583391#M13964</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154410"&gt;@sriramsahani&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for asking this question. I tried to explore on this topic. I am sure you would have gone through the offical documentation of SAS for using BI Web Services. If not, here is the link to that: &lt;A href="http://support.sas.com/documentation/cdl/en/wbsvcdg/64883/HTML/default/viewer.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/wbsvcdg/64883/HTML/default/viewer.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using this as ref. I was able to create a Web Service and view it via browser. I will later try to use Java to call this web service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However for now I listing down the basic steps I have performed.&lt;/P&gt;&lt;P&gt;1) Create a STP for ex: MySTP and store it in your Metadata folder /MyTestFolder/MySTP&lt;BR /&gt;I added simple SAS code to the STP as below:&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.cars;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;2) Launch SMC and go the metadata folder location where you have stored your STP in Step 1.&lt;BR /&gt;3) Right click on MySTP and select deploy as Web service. It will ask you to give a name for your web service. lets call it MyWebService.&lt;BR /&gt;4) Select the default Web Service Markup URL from drop down and Hit Next. Leave the namespace as default. Incase you want to give a namespace, you can give it here. Click Next&lt;BR /&gt;5) Review the details and Hit Finish. This would deploy your web service to location /System/Services/MyWebService.&lt;BR /&gt;6) Go to browser and hit the URL: http://&amp;lt;SAS-Mid-Tier-Host-Name-Here&amp;gt;:7980/SASBIWS/rest/MyWebService/MySTP/dataTargets/_WEBOUT&lt;BR /&gt;7) If asked for Login, please provide LoginID/Pass which would have permissions to read the STP metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Your SAS Environment needs to be deployed with SAS BI Web Services for Java 9.4 in order to make this run. you can validate if this is installed in your environment or not by navigating to SMC -&amp;gt; Plugins -&amp;gt; Application Management -&amp;gt; Configuration Manager -&amp;gt; SAS Application Infrastructure -&amp;gt; BI Web Services for Java 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 05:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/583391#M13964</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2019-08-23T05:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create SAS web service using SAS stored process in SAS 9.4 and how to call the same</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/585624#M14362</link>
      <description>&lt;P&gt;Another (perhaps simpler) approach is to write out your content directly from an STP to `_webout` and call it using YOURURL/SASStoredProcess/do?_program=/your/path/to/your/stp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STPs can be created very easily, eg with the following macro:&amp;nbsp; &lt;A href="https://github.com/sasjs/core/blob/main/meta/mm_createwebservice.sas" target="_blank" rel="noopener"&gt;https://github.com/sasjs/core/blob/main/meta/mm_createwebservice.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some useful resources:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/1091-2017.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://support.sas.com/resources/papers/proceedings17/1091-2017.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://www.rawsas.com/building-web-apps-with-sas/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://www.rawsas.com/building-web-apps-with-sas/&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="https://www.linkedin.com/pulse/5-tips-sas-app-developers-allan-bowe/" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;https://www.linkedin.com/pulse/5-tips-sas-app-developers-allan-bowe/&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings17/1372-2017.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN style="font-weight: 400;"&gt;http://support.sas.com/resources/papers/proceedings17/1372-2017.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-create-SAS-web-service-using-SAS-stored-process-in-SAS-9/m-p/585624#M14362</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-10-13T20:03:28Z</dc:date>
    </item>
  </channel>
</rss>

