lre*_*der 58
您可以通过HTTP提供任何内容,例如HTML,图像,声音,视频等.SOAP是基于XML的消息编码,通常通过HTTP发送,但可以通过SMTP甚至FTP发送,尽管我从来没有看到在生产环境中使用的这种系统.
就像HTTP位于TCP/IP之上一样,SOAP位于HTTP之上.层顶层...
如果查看SOAP请求,可以看到两个层,顶部是HTTP标头,后面是SOAP消息.来自w3schools SOAP教程:
--------- HTTP portion of the message ------
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
--------- SOAP portion of the message ------
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPrice>
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
更多阅读材料: