C# Xml in Http Post Request Message Body

前端 未结 2 1192
栀梦
栀梦 2021-02-05 17:03

I am looking for an example of how, in C#, to put a xml document in the message body of a http request and then parse the response. I\'ve read the documentation but I would just

2条回答
  •  春和景丽
    2021-02-05 17:58

    You should use the WebRequest class.

    There is an annotated sample available here to send data:

    http://msdn.microsoft.com/en-us/library/debx8sh9.aspx

提交回复
热议问题