<?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 receiving asynchronous response into a Stored Process in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Web-services-receiving-asynchronous-response-into-a-Stored/m-p/727106#M6011</link>
    <description>&lt;P&gt;Try using Proc http.&lt;/P&gt;&lt;P&gt;This has a straight forward answer&amp;nbsp;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;You can also look to the following for guidance&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/60/964.html" target="_blank"&gt;https://support.sas.com/kb/60/964.html&lt;/A&gt;&amp;nbsp;(A set of 4 notes. At the bottom you will have a link to the rest)&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/63336796/how-to-call-a-sas-stp-in-background-using-proc-http-and-http-tokenauth" target="_blank"&gt;https://stackoverflow.com/questions/63336796/how-to-call-a-sas-stp-in-background-using-proc-http-and-http-tokenauth&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Please let us know if you have issues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 13:45:12 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-03-17T13:45:12Z</dc:date>
    <item>
      <title>SAS Web services receiving asynchronous response into a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Web-services-receiving-asynchronous-response-into-a-Stored/m-p/631642#M6010</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem where I should receive an &lt;STRONG&gt;XML file&lt;/STRONG&gt; as an &lt;STRONG&gt;asynchronous&lt;/STRONG&gt; response into my &lt;STRONG&gt;stored process&lt;/STRONG&gt; that has been deployed as a &lt;STRONG&gt;web service &lt;/STRONG&gt;and save that file on to physical path of SAS grid. In short, system needs to receive an XML file from a different system that will send the XML to the SAS web service URL(URL that's generated after deploying the Stored Process as a web service). The challenge here is I am not able to find a code that captures the XML sent by the other system asynchronously.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To figure this out, I am trying to replicate the example given at&amp;nbsp;&lt;A href="https://support.sas.com/kb/63/405.html" target="_self"&gt;https://support.sas.com/kb/63/405.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I am getting an error into the XML file which says "&lt;STRONG&gt;The server refused this request because the request entity is in a format not supported by the requested resource for the requested method&lt;/STRONG&gt;" inside html code. I believe this is something to worry about the input format but not very sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to put the below code(as per&amp;nbsp;&lt;A href="https://support.sas.com/kb/63/405.html" target="_self"&gt;https://support.sas.com/kb/63/405.html&lt;/A&gt;) in my stored process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname instream xml;
libname outstr xml;

proc copy in=instream out=work;
run;

data outstr.indata;
   set work.indata;
run;  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also configured the Data sources and targets as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="STP_WEB.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36799i5AFD06BEFF948F21/image-size/large?v=v2&amp;amp;px=999" role="button" title="STP_WEB.PNG" alt="STP_WEB.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And tried to invoke the web service from Enterprise Guide using proc HTTP as suggested in the example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please suggest me appropriate code to receive the XML sent from different system into the stored process and put the file into a physical location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;The service needs to receive the file whenever the other system sends it via the stored process URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 17:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Web-services-receiving-asynchronous-response-into-a-Stored/m-p/631642#M6010</guid>
      <dc:creator>Karthveeryarjun</dc:creator>
      <dc:date>2020-03-12T17:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Web services receiving asynchronous response into a Stored Process</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Web-services-receiving-asynchronous-response-into-a-Stored/m-p/727106#M6011</link>
      <description>&lt;P&gt;Try using Proc http.&lt;/P&gt;&lt;P&gt;This has a straight forward answer&amp;nbsp;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/REST-in-webservices-in-sas-9-4-m3/td-p/295647&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;You can also look to the following for guidance&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/60/964.html" target="_blank"&gt;https://support.sas.com/kb/60/964.html&lt;/A&gt;&amp;nbsp;(A set of 4 notes. At the bottom you will have a link to the rest)&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/63336796/how-to-call-a-sas-stp-in-background-using-proc-http-and-http-tokenauth" target="_blank"&gt;https://stackoverflow.com/questions/63336796/how-to-call-a-sas-stp-in-background-using-proc-http-and-http-tokenauth&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Please let us know if you have issues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 13:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Web-services-receiving-asynchronous-response-into-a-Stored/m-p/727106#M6011</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T13:45:12Z</dc:date>
    </item>
  </channel>
</rss>

