Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It looks very much to me like there's a mismatch between the arcuments you're passing and those expected. Here's 2 things I'd try:</p> <p>1: Use foo=CreateObject("webservice","http://server/wsdl"); then dump the object. You should see methods and arguments on it, which may differ from your arguments above.</p> <p>2: Download and install <a href="http://www.fiddler2.com" rel="nofollow">Fiddler</a>. Then start it and add proxyServer="localhost" proxyPort="8888" to your call. ColdFusion will now route all web service requests through Fiddler and you can examine what's being passed to and from the remote server. It's quite a powerful technique for this kind of thing.</p> <p>I think Chris is right, you need to be passing a struct as an argument. I can invoke the service with the code below:</p> <pre><code>&lt;cfoutput&gt; &lt;cfset shipService = CreateObject("webservice","http://www.wwexship.com/webServices/services/FreightShipmentQuote?wsdl")&gt; &lt;cfdump var="#shipService#"&gt; &lt;cfset response=shipService.getShipmentSimpleQuote({})&gt; &lt;cfdump var="#response#"&gt; &lt;cfdump var="#response.getResponseStatusCode()#"&gt; &lt;cfdump var="#response.getResponseStatusDescription()#"&gt; </code></pre> <p></p> <p>The service is returning a fail code, but it does execute. The WSDL defines all members of FreightShipmentQuoteRequest as nillabla, which is why my code works, but when you come to implement is properly, you may need to use an array of structs for the lineItems element.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

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