当前位置 : 主页 > 网页制作 > html >

SOAP1.1&SOAP1.2

来源:互联网 收集:自由互联 发布时间:2021-06-12
http://www.webxml.com.cn/webservices/ChinaTVprogramWebService.asmx?op=getTVstationString SOAP 1.1 以下是 SOAP 1.1 请求和响应示例。所显示的 占位符 需替换为实际值 POST /webservices/ChinaTVprogramWebService.asmx HTTP/1

http://www.webxml.com.cn/webservices/ChinaTVprogramWebService.asmx?op=getTVstationString

SOAP 1.1

以下是 SOAP 1.1 请求和响应示例。所显示的占位符需替换为实际值

POST /webservices/ChinaTVprogramWebService.asmx HTTP/1.1
Host: www.webxml.com.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "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.1
Host: www.webxml.com.cn
Content-Type: application/soap+xml; charset=utf-8
Content-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 OK
Content-Type: application/soap+xml; charset=utf-8
Content-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
网友评论