开发者

WCF Service to receive XML message

开发者 https://www.devze.com 2022-12-14 10:59 出处:网络
I want开发者_如何学运维 to create a WCF service that accepts an XML message that interoperates with a non MS consumer. Now, I could expose a method that accepts a string and then handle the XML from t

I want开发者_如何学运维 to create a WCF service that accepts an XML message that interoperates with a non MS consumer. Now, I could expose a method that accepts a string and then handle the XML from that point onwards. Is there a better approach than using a string parameter?

Thanks


You can use an XmlElement or an XElement parameter.

Use XmlElement if you want to use the System.Xml namespace to process the XML. Use XElement if you want to use LINQ to XML and the System.Xml.Linq namespace.

--Jacob


You could use an XmlNode parameter.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号