SOAP 实例
作者:w3pop.com 翻译/整理:w3pop.com
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script>
A SOAP Example
Soap实例
In the example below, a GetStockPrice request is sent to a server. The request has a StockName parameter, and a Price parameter will be returned in the response. The namespace for the function is defined in "http://www.example.org/stock" address.
在下面的实例中会发送GetStockPrice请求给服务器。请求中包含一个StockName参数,价格参数会在响应中返回。函数的命名空间(namespace)在http://www.example.org/stock中有详细说明。
The SOAP request:
SOAP请求:
POST /InStock HTTP/1.1 <soap:Body xmlns:m="http://www.example.org/stock"> </soap:Envelope> |
A SOAP response:
SOAP响应:
HTTP/1.1 200 OK <?xml version="1.0"?> <soap:Body xmlns:m="http://www.example.org/stock"> </soap:Envelope> |