Are you using the standard JVM that ships with CF or did you change it?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/2/13 Colin Jones <[email protected]>:
>
> OK - we are trying to connect to a web service for QuickAddress postcode 
> software, and had been using cfinvoke - the method we're using is very simple 
> and requires no arguments:
>
> We tried this:
> <cfinvoke webservice="http://ourserver:2021/proweb.wsdl"; 
> method="DoGetLicenseInfo" returnvariable="returnvar">
>
> and it simply errors with:
> Web service operation "DoGetLicenseInfo" with parameters {} could not be 
> found.
>
> Same error occurs with the CFSCRIPT version (at the ret= line):
> <cfscript>
>  ws = CreateObject("webservice", "http://ourserver:2021/proweb.wsdl";);
>  ret = ws.DoGetLicenseInfo();
> </cfscript>
>
> Looking at packet sniffer logs, CF never even makes a request of the external 
> webservice, so something is stopping it before that.  HOWEVER if we 
> 'hand-craft' a SOAP request and use cfhttp to send it, works perfectly, ie:
>
> <cfsavecontent variable="localscope.soapRequest">
> <cfoutput>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:web="http://www.qas.com/web-2007-09";>
>   <soapenv:Header/>
>   <soapenv:Body>
>      <web:QAGetLicenseInfo/>
>   </soapenv:Body>
> </soapenv:Envelope>
> </cfoutput>
> </cfsavecontent>
>
> <cfhttp url="http://ourserver:2021/proweb.wsdl"; method="POST" resolveurl="NO" 
> port="2021">
>        <cfhttpparam type="header" name="SOAPAction" 
> value="http://www.qas.com/web-2007-09/DoGetLicenseInfo";>
>        <cfhttpparam type="header" name="content-type" value="text/xml">
>        <cfhttpparam type="header" name="charset" value="utf-8">
>        <cfhttpparam type="header" name="Content-Length" 
> value="#len(trim(localscope.soapRequest))#">
>        <cfhttpparam type="xml" name="body" 
> value="#trim(localscope.soapRequest)#">
> </cfhttp>
>
> ...works perfectly and gives us a normal XML response packet with all the 
> results we were expecting.
>
> Anyone got any ideas why CFINVOKE/createObject won't work?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319272
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to