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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -