How to post SOAP Request from .NET?

前端 未结 7 2021
暖寄归人
暖寄归人 2020-12-08 02:28

I have the SOAP request in an XML file. I want to post the request to the web service in .net How to implement?

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 03:07

    This isn't the normal way. Usually you would use WCF or the older style web service reference to generate a proxy client for you.

    However, what you need to do generally is use HttpWebRequest to connect to the URL and then send the XML in the body of the request.

提交回复
热议问题