This content has been marked as final. Show 3 replies
Sure, CF could process XML received in an E-mail, submitted from a form
text field, with a web service just to name a few ways.
XML is simply structured text. Find a way to send the text to CF then
it is easy to parse it into XML and be on your way.
I'm needing to allow a user to send xml so that I can parse it. Can someone tell me the best way to create a web service to accept xml at anytime?
I'm needing to allow a user to send xml so that I can parse it. Can
someone tell me the best way to create a web service to accept xml at
You create a ColdFusion Component (CFC) file. In that file you create a
function with an "access" parameter set to remote. This function has an
argument that excepts either a String or XML (your choice). You then
place this CFC on a web server and give the URL of this file to whomever
you want to use this web service. I.E.
Viola you have a web service that accepts XML at any time. You'll
probably want to add a bit more to the code that actually does something
with the XML.
Make sure this web service is not in a directory that has an
Application.CFC with an onRequest function or has Windows Integrated
Security. Web Services can not work in either of these situations.