开发者

WCF Service to receive XML message

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜