<?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: PROC SOAP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/427196#M105336</link>
    <description>&lt;P&gt;I haven't seen this error.&amp;nbsp; However, the "charset=UTF-8" would indicate to me that the request file was most likely created in a Unix environment.&amp;nbsp; What OS is the&amp;nbsp;service running on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try saving your request file in Windows encoding and then try submitting again.&amp;nbsp; Then see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not used the "encodingStyle=" parameter in any of my SOAP calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried testing this with SOAPUI?&amp;nbsp; Read in the WSDL in SOAPUI and see what it gives you for the xml request layout.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 14:12:01 GMT</pubDate>
    <dc:creator>ArvAmundson</dc:creator>
    <dc:date>2018-01-12T14:12:01Z</dc:date>
    <item>
      <title>PROC SOAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/426967#M105253</link>
      <description>&lt;P&gt;Hey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been struggling with this code for some days now. I read all posts in community, tried to google but still not able to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error message. I understand that i need to fix encoding but i'm not sure what and where i shoud put it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: org.springframework.ws.client.WebServiceTransportException: Cannot process the message&lt;BR /&gt;because the content type 'text/xml; charset=UTF-8' was not the expected type&lt;BR /&gt;'application/soap+xml; charset=utf-8'. [415]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This my code:&lt;/P&gt;&lt;P&gt;FILENAME request 'D:\Admin\Request.xml';&lt;BR /&gt;FILENAME response 'D:\Admin\Response.xml';&lt;BR /&gt;&lt;BR /&gt;proc soap in=request&lt;BR /&gt;out=response&lt;BR /&gt;url="url.svc"&lt;BR /&gt;soapaction='GetLoanCaseByReferenceNumber'&lt;BR /&gt;debug="D:\Admin\soap.txt"&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is my request.xml&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;/P&gt;&lt;P&gt;-&amp;lt;soap:Envelope soap:encodingStyle="&lt;A href="http://www.w3.org/2001/12/soap-encoding" target="_blank"&gt;http://www.w3.org/2001/12/soap-encoding&lt;/A&gt;" xmlns:soap="&lt;A href="http://www.w3.org/2001/12/soap-envelope" target="_blank"&gt;http://www.w3.org/2001/12/soap-envelope&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;soap:Header/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-&amp;lt;soap:Body xmlns:tem="&lt;A href="http://tempuri.org/" target="_blank"&gt;http://tempuri.org/&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-&amp;lt;tem:GetLoanCaseByReferenceNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tem:referenceNumber&amp;gt;?&amp;lt;/tem:referenceNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tem:GetLoanCaseByReferenceNumber&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/soap:Body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did somebody have the same problem and how it was solved? I found an article but it was more java related.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 19:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/426967#M105253</guid>
      <dc:creator>irinaia</dc:creator>
      <dc:date>2018-01-11T19:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SOAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/427056#M105275</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40846"&gt;@ArvAmundson&lt;/a&gt;&amp;nbsp;seems to have experience with proc soap, so I tag him here.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20774"&gt;@MagnusGustavsson&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;too.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 00:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/427056#M105275</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-01-12T00:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SOAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/427196#M105336</link>
      <description>&lt;P&gt;I haven't seen this error.&amp;nbsp; However, the "charset=UTF-8" would indicate to me that the request file was most likely created in a Unix environment.&amp;nbsp; What OS is the&amp;nbsp;service running on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try saving your request file in Windows encoding and then try submitting again.&amp;nbsp; Then see what happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not used the "encodingStyle=" parameter in any of my SOAP calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried testing this with SOAPUI?&amp;nbsp; Read in the WSDL in SOAPUI and see what it gives you for the xml request layout.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 14:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/427196#M105336</guid>
      <dc:creator>ArvAmundson</dc:creator>
      <dc:date>2018-01-12T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SOAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/428694#M105859</link>
      <description>&lt;P&gt;Hi and thanks for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running on Windows platform and is using UTF-8 encoding. Yes, code works fine i SOAPUI. SAS mean that&amp;nbsp;there is a mismatch beetween SOAP server and SOAP receiver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But another problem is that we are using NTML and it doesn't supported by PROC SOAP, so i need to find another way to get data from the WSDL, like PROC HTTP.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 06:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SOAP/m-p/428694#M105859</guid>
      <dc:creator>irinaia</dc:creator>
      <dc:date>2018-01-18T06:49:28Z</dc:date>
    </item>
  </channel>
</rss>

