I need some help intergrating XML into a CF application. Basicaly what I have to do is take records and submit them to a client via HTTP Post.
I queried the dB (the easiest part, lol). Now how can I incorporate XML into an CF application.
This is what I have so far:
What now?
The client gave this a "sample":
How can I incorporate the "sample" in CF? Any help is greatful.
Thanks.
____________________________________
Just Imagine.
I queried the dB (the easiest part, lol). Now how can I incorporate XML into an CF application.
This is what I have so far:
Code:
<cfset fid = 1000>
<cfquery name="test" datasource="#some_DS#>
SELECT firstname, lastname, address, homenumber, city, zip, email
FROM Table1
WHERE fid = #fid#
</cfquery>
<cfhttp method="post" url="[URL unfurl="true"]http://www.somesite.com/someapplucation.aspx"[/URL] throwonerror="no">
???
???
???
???
???
</cfhttp>
What now?
The client gave this a "sample":
Code:
POST HTTP/1.1
Host: soaptest.abc.123Test.com:80
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "[URL unfurl="true"]http://www.somesite.com/another_application"[/URL]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] xmlns:soap="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/envelope/">[/URL]
<soap:Body>
<Info xmlns="[URL unfurl="true"]http://www.somesite.com/">[/URL]
<ID>string</ID>
<FirstName>string</FirstName>
<LastName>string</LastName>
<Email>string</Email>
<StreetAddress>string</StreetAddress>
<City>string</City>
<ZipCode>string</ZipCode>
<HomePhone>string</HomePhone>
</Info>
</soap:Body>
</soap:Envelope>
How can I incorporate the "sample" in CF? Any help is greatful.
Thanks.
____________________________________
Just Imagine.