webservice 学习(1): 底层交互数据
1. http请求wsdl
GET /soap.php?wsdl HTTP/1.1.
Host: 192.168.6.249:7980.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6.
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.
Accept-Language: zh-cn,zh;q=0.5.
Accept-Encoding: gzip,deflate.
Accept-Charset: gb2312,utf-8;q=0.7,*;q=0.7.
Keep-Alive: 300.
Connection: keep-alive.
Cookie: ystat_bc_652307=36500776003190430918.
2. http响应wsdl
3. http 客户soap请求
POST /soap.php HTTP/1.1.
Host: 192.168.6.249:7980.
User-Agent: gSOAP/2.7.
Content-Type: text/xml; charset=utf-8.
Content-Length: 454.
Connection: close.
SOAPAction: "".
xmlns:SOAP-ENC=""
xmlns:xsi=""
xmlns:xsd=""
xmlns:ns1=""
xmlns:ns2="/xsd">
9
10
4. http服务soap响应
HTTP/1.1 200 OK.
Date: Thu, 26 Feb 2009 06:36:10 GMT.
Server: Apache/2.2.6 (Unix) mod_ssl/2.2.6 PHP/5.2.4.
X-Powered-By: PHP/5.2.4.
Content-Length: 243.
Connection: close.
Content-Type: text/xml;charset=utf-8.
19
阅读(1385) | 评论(0) | 转发(0) |