HTTP 1.1 request:
Post/wsshakespeare. asmx HTTP/1.1
HOST: www.xmlme.com
Content-Type: text/XML; charset = UTF-8
Content-Length: Length
Soapaction: "http://xmlme.com/WebServices/GetSpeech"
<? 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>
<Getspeech xmlns = "http://xmlme.com/WebServices">
<Request> string </request>
</Getspeech>
</Soap: Body>
</Soap: envelope>
HTTP 1.2 request:
Post/wsshakespeare. asmx HTTP/1.1
HOST: www.xmlme.com
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>
<Getspeech xmlns = "http://xmlme.com/WebServices">
<Request> string </request>
</Getspeech>
</Soap12: Body>
</Soap12: envelope>
I see 3 differences:
Soap 1.2 uses "application/soap + XML" as Content-Type and soap 1.1 uses "text/XML ".
Soap 1.2 does not use soapaction header line.
Soap 1.2 uses "http://www.w3.org/2003/05/soap-envelope" as the envolope namespace and soap 1.1 uses "http://schemas.xmlsoap.org/soap/envelope"
The header is different from xmlns: soap12.