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?
Thanks!
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.
www.yousite.com/yourWebservice.cfc?wsdl.
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.