<?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: Making a SOAP Call using a local file instead of a URL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228072#M54248</link>
    <description>&lt;P&gt;thanks. I added a comment next to the line I am having difficulties with.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 15:47:01 GMT</pubDate>
    <dc:creator>Keith22</dc:creator>
    <dc:date>2015-10-01T15:47:01Z</dc:date>
    <item>
      <title>Making a SOAP Call using a local file instead of a URL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228016#M54243</link>
      <description>&lt;P&gt;I am trying to make a PROC SOAP call from SAS using a saved file instead of a URL. The reason for this is firewall/proxy issues calling some of the "w3" websites. The xml from the WSDL is saved to a text file with a ."wsdl" extension and the problematic URLs are replaced with ".xsd" files stored in the same directory.&lt;/P&gt;&lt;P&gt;This solution does work when testing in SOAP UI 5.2 , but the challenge I am having is getting SAS to reference the local file saved to SAMGW instead of using the URL. Has anyone had any experience with this? Below is the code I am trying to use. The statement in bold is the problematic part. The SOAP Envelope is contained in the REQUEST.xml file referenced in the first line of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename REQUEST "samplefilepath/REQUEST.xml" ; &lt;BR /&gt;filename RESPONSE "samplefilepath/RESPONSE.xml" ; &lt;BR /&gt;&lt;BR /&gt;proc soap in=REQUEST &lt;BR /&gt;out=RESPONSE &lt;BR /&gt;URL="samplefilepath/ChangeRiskModel2.wsdl" /*this is the line I am trying to figure out. Instead of using a URL I need it to reference a static file&lt;BR /&gt;soapaction="http://urltowsdl" &lt;BR /&gt;WEBUSERNAME="xxxxxx" &lt;BR /&gt;WEBPASSWORD="xxxxxx"; &lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228016#M54243</guid>
      <dc:creator>Keith22</dc:creator>
      <dc:date>2015-10-01T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Making a SOAP Call using a local file instead of a URL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228066#M54247</link>
      <description>&lt;P&gt;I think you need to use a comment such as /* &amp;lt;=== This line is the problem line */&lt;/P&gt;
&lt;P&gt;as the posted code doesn't show any bold text.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228066#M54247</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-10-01T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Making a SOAP Call using a local file instead of a URL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228072#M54248</link>
      <description>&lt;P&gt;thanks. I added a comment next to the line I am having difficulties with.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228072#M54248</guid>
      <dc:creator>Keith22</dc:creator>
      <dc:date>2015-10-01T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Making a SOAP Call using a local file instead of a URL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228230#M54257</link>
      <description>&lt;P&gt;I am guessing here but if your URL would generally be http:// &amp;lt;etc&amp;gt; I might try Url= "file://&amp;lt;local path&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 15:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/228230#M54257</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-10-02T15:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Making a SOAP Call using a local file instead of a URL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/229693#M54417</link>
      <description>&lt;P&gt;Thanks, that helped! I also found that I had reversed my URL and SOAPAction. It seems now that the PROC SOAP command is connecting but &amp;nbsp;I am seeing an issue with the&amp;nbsp;SOAP Envelope now. The envelope works in SOAPUI 5.2 but the same envelope returns an error -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;&amp;lt;faultcode&amp;gt;SOAP-ENV:Server&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;A CXmlApiException was raised in native code : error 16 : scxmlapi(16) - Invalid or missing file name in XML request&amp;lt;/faultstring&amp;gt;&amp;lt;faultactor&amp;gt;Server&amp;lt;/faultactor&amp;gt;&amp;lt;/SOAP-ENV:Fault&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone know a way around this? Details of the envelope I am using below:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://schemas.hp.com/SM/7" xmlns:com="http://schemas.hp.com/SM/7/Common" xmlns:c="file:///c:\dev\xmlmime"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:UpdateChangeRiskModelRequest attachmentInfo="" attachmentData="" ignoreEmptyElements="true" updateconstraint="-1"&amp;gt;
         &amp;lt;ns:model query=""&amp;gt;
            &amp;lt;ns:keys query="" updatecounter=""&amp;gt;
               &amp;lt;!--Optional:--&amp;gt;
               &amp;lt;ns:ChangeID type="String" mandatory="" readonly=""&amp;gt;C02766647&amp;lt;/ns:ChangeID&amp;gt;
            &amp;lt;/ns:keys&amp;gt;
            &amp;lt;ns:instance query="" uniquequery="" recordid="" updatecounter=""&amp;gt;
               &amp;lt;ns:header type="Structure"&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:ChangeID type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:ChangeID&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:CurrentPhase type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:CurrentPhase&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:RiskAssessment type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:RiskAssessment&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:TestingResults type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:TestingResults&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:RecoveryScope type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:RecoveryScope&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:CodeRepository type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:CodeRepository&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:PerformingGroup type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:PerformingGroup&amp;gt;
               &amp;lt;/ns:header&amp;gt;
               &amp;lt;ns:middle type="Structure"&amp;gt;
                  &amp;lt;!--Optional:--&amp;gt;
                  &amp;lt;ns:AssociatedCIs type="Array"&amp;gt;
                     &amp;lt;!--Zero or more repetitions:--&amp;gt;
                     &amp;lt;ns:AssociatedCIs type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:AssociatedCIs&amp;gt;
                  &amp;lt;/ns:AssociatedCIs&amp;gt;
               &amp;lt;/ns:middle&amp;gt;
               &amp;lt;!--Optional:--&amp;gt;
               &amp;lt;ns:Service type="String" mandatory="" readonly=""&amp;gt;&amp;lt;/ns:Service&amp;gt;
               &amp;lt;!--Optional:--&amp;gt;
               &amp;lt;ns:ScoredRiskFlag type="String" mandatory="" readonly=""&amp;gt;Scored&amp;lt;/ns:ScoredRiskFlag&amp;gt;
               &amp;lt;!--Optional:--&amp;gt;
               &amp;lt;ns:ScoredRisk type="String" mandatory="" readonly=""&amp;gt;Low&amp;lt;/ns:ScoredRisk&amp;gt;
               &amp;lt;!--Optional:--&amp;gt;
               &amp;lt;ns:attachments&amp;gt;
                  &amp;lt;!--Zero or more repetitions:--&amp;gt;
                  &amp;lt;com:attachment c:contentType="" href="" contentId="" action="" name="" type="" len="" charset="" attachmentType=""&amp;gt;cid:1331595433226&amp;lt;/com:attachment&amp;gt;
               &amp;lt;/ns:attachments&amp;gt;
            &amp;lt;/ns:instance&amp;gt;
            &amp;lt;!--Optional:--&amp;gt;
            &amp;lt;ns:messages&amp;gt;
               &amp;lt;!--Zero or more repetitions:--&amp;gt;
               &amp;lt;com:message severity="" module=""&amp;gt;&amp;lt;/com:message&amp;gt;
            &amp;lt;/ns:messages&amp;gt;
         &amp;lt;/ns:model&amp;gt;
      &amp;lt;/ns:UpdateChangeRiskModelRequest&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 13:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Making-a-SOAP-Call-using-a-local-file-instead-of-a-URL/m-p/229693#M54417</guid>
      <dc:creator>Keith22</dc:creator>
      <dc:date>2015-10-13T13:27:29Z</dc:date>
    </item>
  </channel>
</rss>

