Mathews Its either/or. I preferred the XML way so that's the way it was built. I guess what I was trying to say in my last email is there isn't a right/wrong way, just what ever fits better with what you are trying to do. Its easier to search xml than it is to try and parse arguments if some arguments are not required to be passed in. Also I don't know if you will have issues with things like passing in arrays and stuff into the web service because of the data types possibly not being maintained in the request. This is where XML is better as you don't need to worry about it and you can handle it all in your web service.
Steve -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Sent: Tuesday, 11 November 2008 1:41 PM To: cfaussie Subject: [cfaussie] Re: Building a web service - can you pass in XML or should the arguments be data typed @Steve, Thanks for the response but I don't think you've understood me correctly. I'll try to explain myself again. Perhaps there is a CF web service guru out there that can help? When building a web service, should the input arguments be a single XML document (which defines the input parameters) or should you just have an argument for each parameter. Or are both options acceptable? It makes more sense to me to have a argument for each parameter otherwise if you have an XML doc as the input you have to write your own XML parser / validator. This is all built right into CF when you choose access="remote". I've been doing a little more reading and noted that you can distribute your web service as an RPC (default in CF) or as "document- literal style". I think the RPC system is the way I've been discussing and the "document-literal style" option is the alternative where you pass in a full XML document. Is RPC easier but compatible with fewer technologies? Cheers Matthew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---