Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easiest way to send XML to ColdFusion for Processing

Status
Not open for further replies.

twoeyes

Technical User
Sep 19, 2002
62
CA
I think I'm in over my head. =)

I want to find some examples on how I can get ColdFusion to receive an XML file over HTTP. I had intended to just do an HTTP form "POST", but I suspect that this might be better done with some sort of web service. I just don't know where to start.

The sticking point, is that I can't find an example of a web service in CF that receives an entire XML file, rather than a couple basic string values. Is it possible, and if so, how? It would be impractical to send one record at a time, because this could eventually end up as thousands of transactions per day.


Some details:

My task is to automagically take some daily records from our head office database server and send them to our public website for some stuff to happen - updates to the online prices, email specific customers, etc.

At the head office, I intend to use C# and a scheduled task to kick off the little application.
At the public website, I need to use ColdFusion.

Any tips would be very much appreciated.

----------------------------------------
Perceptus Solutions Inc.
A little computer support and web firm.
 
this is a very simple thing to do,

create a web service in CF that accepts the xml string as an argument

then 1 hit to the xmlParse() function will put that xml into a structure you can easily deal with in the cf web service.

see this article:

for a quick demonstration on how CF handles xml and web services


=========================================
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison
 
Doh! I guess I should have known that it would be something really easy.

That xmlParse() function makes perfect sense.

Thank you!

----------------------------------------
Perceptus Solutions Inc.
A little computer support and web firm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top