Sending and receiving SOAP messages

前端 未结 4 1322
一整个雨季
一整个雨季 2021-02-06 08:39

I am writing a web service client in C# and do not want to create and serialize/deserialize objects, but rather send and receive raw XML.

Is this possible in C#?

4条回答
  •  遥遥无期
    2021-02-06 09:27

    Yes - you can simply declare the inputs and outputs as XmlNode's

    [WebMethod]
    public XmlNode MyMethod(XmlNode input);
    

提交回复
热议问题