如何将XDocument作为param传递给wcf服务 [英] How to pass XDocument as param to wcf service
本文介绍了如何将XDocument作为param传递给wcf服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我将XDocument作为参数传递,服务生成错误。
请帮忙。
问候,
Yogesh
Hi,
Service generating error if I pass XDocument as paramater.
Kindly help.
Regards,
Yogesh
推荐答案
XDocument不可序列化,因此你需要使用像字符串或代理类这样的中介。非.Net客户也无法理解XDocument。您可以考虑使用字符串并让客户端从字符串重建XDocument。
XDocument is not serializable, therefore you need to use an intermediary like a string or a surrogate class. An XDocument also isnt understandable by non-.Net Clients. You might just consider using a string and have the client rebuild the XDocument from the string.
这篇关于如何将XDocument作为param传递给wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文