Couldn't you just do something like this:

        <cfreturn StructToXML(myStruct)>

Mik


At 02:06 PM 3/2/2007, you wrote:
>I know, I know, this is a bad idea, but it *seems* possible, so I want to find 
>out just how ugly the process is.
>
>I'm writing some web services for which I'd very much like to return CF 
>structures, since that's the most logical way for me to structure the data.  
>Of course, I can consume these web services with Cold Fusion, but our partners 
>are using .NET.  I understand that CF structures are not converted to any web 
>service format that can easily be consumed by .NET (or probably PHP, etc).  
>
>I read on Adobe's livedocs that you can create a cfcomponent that mirrors the 
>format of a CF structure, somehow return *that*, and then .NET will be able to 
>interpret the structure correctly.  However, the LiveDocs examples were thin 
>at best.
>
>So, here's what I'm hoping to find:
>
>1.  Somebody who's had previous experience with this, and can tell me if this 
>is even worth trying.
>
>2.  Some sample CF code that shows me how to structure my webservices.  
>
>Ideally, I want the coding process to be as simple as possible for the 
>callers, so if the solution requires a ton of hoop-jumping in .NET, then I'll 
>do something else.
>
>My fallback is to just serialize the data into something like a querystring.  
>That should suit my needs for now, but if I ever need to return more complex 
>data than just string data, it would be nice to have this problem solved.
>
>Thanks in advance,
>Ben Mueller
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:271355
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to