It's what I'm doing now and so far doesn't appear to be a problem. I ran into the same problem with passing out a regular cf struct. I thought that CF would know what was going on and do the wrapping for me, but it's no big deal.
Mik At 03:48 PM 3/2/2007, you wrote: >I have to correct myself. Of course, Mik, I can convert the structure to XML, >which is then passed as a string to the remote server. That string would then >have to be re-serialized to an XML doc before they can do anything with it. >I'm investigating whether this makes sense. > >> 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: >>> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271371 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

