Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Whenever I interact with SOAP services I usually end up using something similar to this. It generally works. Notice that I have some place-holder text in there that you would need to replace with the appropriate values for your 3rd party provider.</p> <pre><code>&lt;cfsavecontent variable="soap"&gt; &lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"&gt; &lt;soapenv:Header/&gt; &lt;soapenv:Body&gt; &lt;ns1:processResponse xmlns:ns1="urn:TripFlow" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;statuslvl&gt;00&lt;/statuslvl&gt; &lt;/ns1:processResponse&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt; &lt;/cfsavecontent&gt; &lt;!--- Invoke web service to send message---&gt; &lt;cfhttp url="http://3rd-party-url-here" method="post" timeout="10"&gt; &lt;cfhttpparam type="header" name="content-type" value="text/xml" /&gt; &lt;cfhttpparam type="header" name="SOAPAction" value="""3rd-party-method-name-here""" /&gt; &lt;!---&lt;cfhttpparam type="header" name="accept-encoding" value="no-compression" /&gt; sometimes this is needed ---&gt; &lt;cfhttpparam type="header" name="content-length" value="#len(soap)#" /&gt; &lt;cfhttpparam type="header" name="charset" value="utf-8" /&gt; &lt;cfhttpparam type="xml" name="message" value="#trim(soap)#" /&gt; &lt;/cfhttp&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload