You have to pass it as an XML string not true XML (a ColdFusion XML object is incomaptible, an XML string is not)
"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: Ben Mueller To: CF-Talk Sent: Fri Mar 02 19:47:54 2007 Subject: Re: Create a webservice that returns a structure, to be consumed by ..NET Thanks for the reply. I don't know anything about that UDF, but I don't think I want to go that route, simply because XML processing can be slow, and if I have to convert every struct to an XML format prior to handing it off to the web service engine, that's probably more of a performance hit than I'd like to take. But aside from that, I'm betting that wouldn't work anyway. The web service engine *does* convert the structure into XML before shipping it to the remote server, but the problem is that the XML format is not one that is part of the standard web service formats (as I understand it). I'm betting structToXml() converts the structure into a format that also isn't part of the standard web service formats. I just tried your suggestion, and it does seem to work, but I think I'll probably still avoid it. Good to know the option exists, though. Thanks, Mik. >Couldn't you just do something like this: > > <cfreturn StructToXML(myStruct)> > >Mik > > >At 02:06 PM 3/2/2007, you wrote: >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271361 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4