Some modifications (from a working SOAP project I worked on a while
ago, with a non-WSDL'd webservice)

1. XML may need <?xml version="1.0" encoding="UTF-8"?> first; rest looks good
2. CFHTTP: Post method, Soap XML message should be in cfhttpparam
type="body", not type="XML"
May need some other headers, too.

- David


On 8/15/06, Deanna Schneider <[EMAIL PROTECTED]> wrote:
> Okay, I'm back on this issue.  I've now attempted to write the soap
> request manually. (See code below.) But, I get the error below. Any
> brilliant ideas? (Hey - at least I'm getting a valid SOAP response
> now, eh?)
>
> <snip>
> <faultstring xsi:type="xsd:string">Can't find root element in the
> message at /usr/footprints_perl/lib/site_perl/5.8.1/SOAP/Lite.pm line
> 2154.</faultstring>
> </snip>
>
> My code (userid and password omitted).
> <cfsetting showdebugoutput="no">
> <cfsavecontent variable="xmltosend"><soap-env:envelope
>         xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/";
>         xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
>         xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
>
>         <soap-env:header>
>         </soap-env:header>
>
>
>       <soap-env:body>
>         <m:MRWebServices__search
> xmlns:m="https://footprints.uwex.edu/MRcgi/MRWebServices.pl";>
>           <user>...</user>
>           <password>...</password>
>           <extrainfo></extrainfo>
>           <query>select mrID, mrtitle from master78</query>
>         </m:MRWebServices__search>
>       </soap-env:body>
>    </soap-env:envelope>
> </cfsavecontent>
> <cfhttp url="https://footprints.uwex.edu/MRcgi/MRWebServices.pl"; 
> method="POST">
>    <cfhttpparam name="SOAPAction" type="header"
> value="https://footprints.uwex.edu/MRcgi/MRWebServices.pl";>
> <cfhttpparam type="XML" value="#XMLToSend#">
> </cfhttp>
>
>
> <cfoutput>#cfhttp.filecontent#</cfoutput>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250055
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to