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
Post a Comment