从 WCF 服务返回 XMlDocument 时 Gettinf Xml 序列化错误
我有一个返回 XMlDocument 的 WCF 服务方法,我已添加属性 [XmlSerializerFormat] 在方法上
有什么方法可以从 WCf 服务返回 XmlDocuemnt 对象
i have a WCF Service Method which returns XMlDocument i have added the attribut [XmlSerializerFormat]
on the method
Is there any way i can return XmlDocuemnt Object from WCf service
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以通过以下方式从 WCF 服务返回 XmlDocument。
我的 WCF 服务如下所示:
客户端添加对 WCF 服务的引用,然后调用方法 GetXmlData(),该方法返回一个对象 Test,其中包含 XmlDocuemnt。
I could get the XmlDocument returned from my WCF Service in the following way.
My WCF service looks as shown below:
The client adds a reference to the WCF Service and then calls the method GetXmlData() which returns a object Test which has the XmlDocuemnt within it.