SOAP Web Service Tutorials - Herong's Tutorial Examples - v5.13, by Herong Yang
Differences between SOAP 1.1 and SOAP 1.2
This section describes differences between a SOAP 1.1 request and SOAP 1.2 request for NumberToWords Web service provided by dataaccess.com.
Remember that my goal is to use SOAP::Lite to send SOAP 1.2 request to the dataaccess.com server.
Before writing the client program, let's compare the SOAP 1.1 request with the SOAP 1.2 request provided at: dataaccess.com/webservicesserver/NumberConversion.wso?op=NumberToWords:
SOAP 1.1 request: POST /webservicesserver/NumberConversion.wso HTTP/1.1 Host: www.dataaccess.com Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/"> <ubiNum>unsignedLong</ubiNum> </NumberToWords> </soap:Body> </soap:Envelope> SOAP 1.2 request: POST /webservicesserver/NumberConversion.wso HTTP/1.1 Host: www.dataaccess.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <NumberToWords xmlns="http://www.dataaccess.com/webservicesserver/"> <ubiNum>unsignedLong</ubiNum> </NumberToWords> </soap12:Body> </soap12:Envelope>
I see 2 differences:
Note that the SOAP 1.1 request example does not include the SOAPAction header line as suggested by the SOAP 1.1 standard. This is ok as long as the dataaccess.com server does not require it.
Table of Contents
Introduction to SOAP (Simple Object Access Protocol)
SOAP Message Transmission and Processing
SOAP MEP (Message Exchange Patterns)
PHP SOAP Extension Client Programs
PHP SOAP Extension Server Programs
PHP SOAP Web Service Example - getTemp
Perl SOAP::Lite - SOAP Server-Client Communication Module
Perl Socket Test Program for HTTP and SOAP
Perl SOAP::Lite for NumberToWords SOAP 1.1 Web Service
►Perl SOAP::Lite for SOAP 1.2 Web Services
Message Styles Supported in SOAP::Lite
Methods on SOAP::Lite Client Object
Testing SOAP::Lite Client Objects
►Differences between SOAP 1.1 and SOAP 1.2
NumberToWords_localhost.pl - Testing on Local Host
soapversion('1.2') and envprefix('soap12') Must Used Together
default_ns() - Setting Namespace for Body Elements
SOAP::Data - Utility Class to Generate XML Elements
SOAPAction - Not Needed, But No Way to Remove It
NumberToWords_SOAP_1_2.pl - SOAP::Lite for SOAP 1.2 Web Service
Java Socket and HttpURLConnection for SOAP
SAAJ - SOAP with Attachments API for Java
SoapUI - SOAP Web Service Testing Tool
WS-Security - SOAP Message Security Extension
WS-Security X.509 Certificate Token
Perl SOAP::Lite for GetSpeech SOAP 1.1 Web Service
Perl SOAP::Lite 0.710 for SOAP 1.2 Web Services
Perl SOAP::Lite 0.710 for WSDL