Where are you sending it to? Do you need to validate the XML on each I/O?
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Dominic Watson To: CF-Talk Sent: Fri Jun 29 17:22:00 2007 Subject: Webservices in Coldfusion Hello all, I'm writing my first web service, for a government site, and would like to get it right (I have it working). The service in question returns a recordset. Reading around I could see that returning a CFQuery object was not a suitable solution and so I chose to return an XML String representing the recordset. I understand that Coldfusion sends the return value of the service method as XML, using a schema to describe this XML. The XML that I am returning is an XML formatted string (my return type in the CFC method is 'string') inside of that. My question then is this: Should I use a DTD to describe the XML that I am returning or should I use a Schema or does it not matter? Hope that makes any sense... Dominic ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282570 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

