Hi Barney, Thanks for the insight. You are dead right on that. Also, I checked .net - and it certainly does not support 'document' type.
I will go with your recommendations. Thanks. On another note, about web services architecture - is it better to have all your methods in one wsdl - or does it make more sense to have different services for different modules in your app.? So if I have an intranet with foll. modules: employees customers products Does it make more sense to have 3 diff. web services; each with related methods? Or is better to have just one service? Thanks, DK -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 3:03 PM To: CF-Talk Subject: Re: problem with web service returntype="xml" The .NET side is going to have to parse the XML either way. Web servies only every pass text around, they can't pass around objects. So you're not passing a CF XML document object with type="xml", you're passing a nested XML document. The XML document will be part of the SOAP document (with type="xml"), rather than an XML-escaped string in the SOAP document (with type="string"). So using type="xml" will only save you the XML-unescaping on the receiving end, not parsing the XML. Here's a completely contrived example that has little basis in reality, but which will illustrate the point: passing with type="xml": <soap> <var name="myDoc"> <rootOfDoc> <childInDoc /> </rootOfDoc> </var> </soap> passing type="string": <soap> <var name="myDoc"> <rootOfDoc><childInDoc /></rootOfDoc> </var> </soap> cheers, barneyb On 8/4/05, Dharmendar Kumar <[EMAIL PROTECTED]> wrote: > Yes, I can return "string" - pass XML string and it works in .Net > > But I wanted to pass a XML document object - so the receiver doesnt have to > parse thro' the xml. > > But you made an interesteing point - that .net may not support 'document' > type - i will investigate if that indeed is the case.... > > meanwhile, any other insight is appreciated. > > Thanks > DK > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213786 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

