I'm trying to make a request to a .NET 2 Web Service from CF5 using
cfhttp.

the soap envelope that i am creating is:

<cfsavecontent variable="localscope.soapRequest">
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> <soap:Body>
<validate_DPS xmlns="http://tempuri.org/";> <XMLIn>
<wsihipnewaccount003><pAuthCode/><pSecFunction>NEWACCOUNT</pSecFunction>
<pHIPAgreeRef>77777</pHIPAgreeRef></wsihipnewaccount003> </XMLIn>
</validate_DPS> </soap:Body> </soap:Envelope> </cfsavecontent>

which constantly returns:

Expression
An error occured while Parsing an XML document.
Premature end of file.

when i replace the XML within the <XMLIN> tags to a simply string
"xxxxx":

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";> <soap:Body>
<validate_DPS xmlns="http://tempuri.org/";> <XMLIn> xxxxxx </XMLIn>
</validate_DPS> </soap:Body> </soap:Envelope> 

the request makes it to the web service and a get the expected error
reply.

the CFHTTP code is:

<cfhttp url="http://development003/DPS/Dps.asmx?WSDL"; port="80"
method="post"> <cfhttpparam type="Header" name="Connection"
value="Keep-Alive"> <cfhttpparam type="header" name="content-type"
value="text/xml"> <cfhttpparam type="Header" name="User-Agent"
value="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"> <cfhttpparam
type="Header" name="charset" value="utf-8"> <cfhttpparam type="body"
name="validate_DPS" value="#localscope.soapRequest#"> </cfhttp>

If anyone could think of any ideas that would be a great help.

Thanks
Dom 



Dominic Scanlan
Developer

telephone: 0870 907 9400
e-mail: [EMAIL PROTECTED]
website: www.lms.com


HIPs     Conveyancing     Remortgaging     Valuations

Legal Marketing Services Ltd.
LMS House, Lloyd Drive, Cheshire Oaks Business Park, Cheshire, CH65 9HQ
Tel: 0870 907 9400     Fax: 0870 907 9410    www.lms.com
Registered in England & Wales No 4450849
CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the person 
or organisation to whom it is addressed. Its contents are confidential and may 
be protected in law.  Unauthorised use, copying or disclosure of any of it may 
be unlawful. If you are not the intended recipient, please contact us 
immediately.
____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306137
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