Building RESTful Web Services with .NET Core
上QQ阅读APP看书,第一时间看更新

SOAP with HTTP POST

The Authors mentioned in the HTTP header is actually the URL of the controller or program to be invoked that have a POST action method inside it. Everything is hosted at www.packtpub.com.

POST /Authors HTTP/1.1
Host: www.packtpub.com
Content-Type: application/soap; charset="utf-8"
Content-Length: nnnn

<?xml version = "1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV = "http://www.w3.org/2001/12/soap-envelope"
SOAP-ENV:encodingStyle = " http://www.w3.org/2001/12/soap-encoding">
...
Message information goes here
...
</SOAP-ENV:Envelope>