Returning XmlDocument from WCF service not working

前端 未结 2 621
别跟我提以往
别跟我提以往 2021-01-28 05:35

I am trying to update some WCF service methods that return strings to return XmlDocument objects. I\'ve tried returning it as-is and encapsulating it in a datacontract object. E

2条回答
  •  礼貌的吻别
    2021-01-28 06:19

    If you want to be able to pass arbitrary XML on the wire the best way to do it is to use XElement rather than XmlDocument

    XmlDocument isn't serializable

提交回复
热议问题