Here's the code:

<cfset iteminformation = '<?xml
version="1.0"?><ItemUpdate><ItemCode>#ItemCode#</ItemCode><ProductName>Produ
ctName#</ProductName></ItemUpdat>'>

<!--- begin transmission --->
<cfhttp method="post" url="someurl">
        <cfhttpparam type="header" name="Content-Type"
value="application/x-www-form-urlencoded" />
        <cfhttpparam type="xml" value="#xmlstring#" />
</cfhttp>

<!--- store results --->
<cfset success = cfhttp.filecontent>

This particular setup expects a boolean return value.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Ian Sheridan [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 10:46 AM
To: CF-Talk
Subject: How would I send an XML file to another server/application?


I'm sorry that his is such a basic question but frankly I have not had
to do this outside of webservices.

I will be needing to send an xml document and will need to recieve a
responce back also an xml document. What are the mechanics of this
action? I am not really sure where to start. CFHTTP? How do I recieve
the file? CFFILE?

Hehe sorry about the noobness

- Ian

--

----------------------
Ian Sheridan
http://www.savagevines.com
----------------------



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222440
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to