SOAP1.1&SOAP1.2

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

SOAP 1.1

The following is an example of request and response SOAP 1.1. Shown placeholders need to be replaced with an actual value

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

The following is an example of request and response SOAP 1.2. Shown placeholders need to be replaced with an actual value

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

 

Guess you like

Origin www.cnblogs.com/Refresh-air/p/11429407.html