我需要创建XML消息,并将其发送到Web服务。然后,我应该处理通过查看响应XML是从服务传来的响应。我之前已经使用WCF,但我应该用旧式做到这一点。
I need to create xml message and send it to the web service. Then I should handle the response by looking at the response xml that is coming from service. I have used WCF before but I should do it with old style.
应该从哪里开始呢?
在此先感谢。
如果你不想使用WCF / ASMX客户,你应该先学习的 HTTP 和SOAP( 1.1 1.2 )了解所需的HTTP标头的POST请求,信息建设,读+ HttpWebRequest的。这样做,这样没有任何意义 - 坚持使用WCF或 ASMX (这实际上是旧的方式)。
If you don't want to use WCF / ASMX clients you should start by learning HTTP and SOAP (1.1, 1.2) to understand needed HTTP headers for POST requests and message construction and reading + HttpWebRequest. Doing it this way doesn't make sense - stick with WCF or ASMX (that is actually the old way).