How can I get an WCF service to return an XML document instead of object array -


i have simple operation contract like:

[operationcontract] xmldocument getdepartmenttree2(string node, string id); 

on client side want use xmldocument, wcf returns object array.

this how works (besides ugly):

 [operationcontract, xmlserializerformat]  xmldocument getdepartmenttree2(string node, string id); 

try xelement instead of xmldocument. works fine default data contract serializer, , doesn't require decorating attributes.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -