Note that there are some explanatory texts on larger screens.

plurals
  1. POSOAP method call that takes two objects as arguments
    text
    copied!<p>I'm doing a SOAP call to access the method getMailingReports from the below wsdl and can access it just fine. My problem is when I have to use createEmailMailing but have to pass in two arguments that are objects (Mailing and EmailContent). This is from stormpost (pulsepoint) so if anyone has experience with this I'd appreciate it. Below is the wsdl and the SOAP call I'm doing with ColdFusion. Again, this SOAP call works fine, but not sure how to mimic this and use the method createEmailMailing.</p> <p><a href="http://api.stormpost.datranmedia.com/services/SoapRequestProcessor?wsdl" rel="nofollow">http://api.stormpost.datranmedia.com/services/SoapRequestProcessor?wsdl</a></p> <pre><code>&lt;cfsavecontent variable="soap"&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;SOAP-ENV:Header&gt; &lt;ns0:username SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" xmlns:ns0="http://services.web.stormpost.skylist.com"&gt;fakelogin&lt;/ns0:username&gt; &lt;ns0:password SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next" xmlns:ns0="http://services.web.stormpost.skylist.com"&gt;fakepassword&lt;/ns0:password&gt; &lt;/SOAP-ENV:Header&gt; &lt;SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s0="http://www.w3.org/2001/XMLSchema" xmlns:s1="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;ns0:getMailingReports xmlns:ns0="http://services.web.stormpost.skylist.com"&gt; &lt;from xsi:type="xsd:dateTime"&gt;&lt;cfoutput&gt;#dateFormat(arguments.from, "yyyy-mm-dd")#&lt;/cfoutput&gt;T00:00:00.000&lt;/from&gt; &lt;to xsi:type="xsd:dateTime"&gt;&lt;cfoutput&gt;#dateFormat(arguments.to, "yyyy-mm-dd")#&lt;/cfoutput&gt;T23:00:00.000&lt;/to&gt; &lt;type xsi:type="xsd:string"&gt;Mailings&lt;/type&gt; &lt;channel xsi:type="xsd:string"&gt;EMAIL&lt;/channel&gt; &lt;listid xsi:type="xsd:int"&gt;0&lt;/listid&gt; &lt;limit xsi:type="xsd:int"&gt;#arguments.numRowsReturned#&lt;/limit&gt; &lt;/ns0:getMailingReports&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; &lt;/cfsavecontent&gt; &lt;cfhttp url="https://api.stormpost.datranmedia.com/services/SoapRequestProcessor" method="POST"&gt; &lt;cfhttpparam type="header" name="Content-Type" value="text/xml"&gt; &lt;cfhttpparam type="header" name="SOAPAction" value=""&gt; &lt;cfhttpparam type="header" name="content-length" value="#len(trim(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