
以下是 SOAP 1.1 请求和响应示例。所显示的占位符需替换为实际值
POST /webservices/ChinaTVprogramWebService.asmx http/1.1Host: www.webxml.com.cnContent-Type: text/xml; charset=utf-8Content-Length: lengthSOAPAction: "http://WebXml.com.cn/getTvstationString"<?xml version="1.0" enCoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <getTvstationString xmlns="http://WebXml.com.cn/"> <theAreaID>int</theAreaID> </getTvstationString> </soap:Body></soap:Envelope>SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值
POST /webservices/ChinaTVprogramWebService.asmx http/1.1Host: www.webxml.com.cnContent-Type: application/soap+xml; charset=utf-8Content-Length: length<?xml version="1.0" enCoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getTvstationString xmlns="http://WebXml.com.cn/"> <theAreaID>int</theAreaID> </getTvstationString> </soap12:Body></soap12:Envelope>http/1.1 200 OKContent-Type: application/soap+xml; charset=utf-8Content-Length: length<?xml version="1.0" enCoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getTvstationStringResponse xmlns="http://WebXml.com.cn/"> <getTvstationStringResult> <string>string</string> <string>string</string> </getTvstationStringResult> </getTvstationStringResponse> </soap12:Body></soap12:Envelope>VIEw Code 总结
以上是内存溢出为你收集整理的SOAP1.1&SOAP1.2全部内容,希望文章能够帮你解决SOAP1.1&SOAP1.2所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)