a few alterations and I got it working using this:

<cfxml variable="data">
<product>
        <cust_id>A00001</cust_id>
        <name>Test Product One</name>
        <short_description>Short description of product
one</short_description>
        <long_description>Long description of product one</long_description>
        <price1>20</price1>
        <use_stocklevels>0</use_stocklevels>
        <stock_level>20</stock_level>
        <stock_warning_level>10</stock_warning_level>
</product>
</cfxml>

<cfhttp url="sagetest_from_client1.cfm" method="POST">
    <cfhttpparam type="xml" name="this" value="#tostring(data)#">
</cfhttp>
        
<cfdump var="#cfhttp#">

My apologies to Mr Pope for me saying that cfhttp wouldn't hack it. I didn't
know it would send the xml httpparam in the correct headers... 

Thanks to Tim, Moretti-San et al for your help.

Rich.

> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED] 
> Sent: 24 February 2004 11:29
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] sending http content
> 
> 
> Ah, gotcha.
> 
> > no, I can respond in the message body, that's fine - what I'm
> > trying to do is test my app.
> 
> Can you not use <cfhttp> then (untested)?
> 
> <cfhttp url="http://host/path/to/script.cfm"; method="POST">
>     <cfhttpparam type="xml">
>     <cfhttpparam type="header" name="SOAPMethodName" 
> value="/path/to/SOAP/methodhandler">
>     <cfhttpparam type="body" value="#variables.SOAPPayload#"> 
> </cfhttp>
> 
> Tim.
> 
> -------------------------------------------------------
> Try the ColdFusion Coding Contest!  Current contest:
> Maze Solver - http://tech.badpen.com/cfcontest/
> -------------------------------------------------------
> RAWNET LTD - Internet, New Media and ebusiness Gurus.
> WE'VE MOVED - for our new address, please visit our
> website at http://www.rawnet.com/ or call us any time
> on 0800 294 24 24.
> -------------------------------------------------------
> This message may contain information which is legally 
> privileged and/or confidential.  If you are not the intended 
> recipient, you are hereby notified that any unauthorised 
> disclosure, copying, distribution or use of this information 
> is strictly prohibited. Such notification notwithstanding, 
> any comments, opinions, information or conclusions expressed 
> in this message are those of the originator, not of rawnet 
> limited, unless otherwise explicitly and independently 
> indicated by an authorised representative of rawnet limited.
> ------------------------------------------------------- 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to