WSDL Tutorials - Herong's Tutorial Examples - Version 2.03, by Dr. Herong Yang
Perl SOAP::Lite 0.710 - No WSDL 1.1/SOAP 1.2 Support
This section provides a tutorial example that shows WSDL 1.1 document with SOAP 1.2 binding is supported by Perl SOAP::Lite 0.710.
According the manual, Perl SOAP::Lite 0.710 seems to support SOAP 1.2. Two calls are needed on the client object:
$client->soapversion('1.2'); $client->envprefix('soap12');
Here is my test Perl program, GetExchangeRate_SOAP12_Client.pl:
#- GetExchangeRate_SOAP12_Client.pl #- Copyright (c) 2009 by Dr. Herong Yang, herongyang.com #- All rights reserved # use SOAP::Lite +trace; #- Loading the WSDL document my $client = SOAP::Lite->service( 'file:///c:/herong/GetExchangeRate_WSDL_11_SOAP_12_RPC.wsdl'); #- Setting the client for SOAP 1.2 and readable format $client->soapversion('1.2'); $client->envprefix('soap12'); $client->readable('true'); #- Calling the RPC $result = $client->GetExchangeRate('USD', 'JPY', '2007-07-07'); #- Showing the result print "Exchange rate is: $result\n";
Here is the result of this test program:
C:\herong\wsdl_20080000\cod>GetExchangeRate_SOAP12_Client.pl SOAP::Transport::new: () SOAP::Serializer::new: () ... Unrecognized method 'GetExchangeRate'. List of available method(s): ...
Too bad. SOAP::Lite 0.710 does not really support WSDL 1.1 with SOAP 1.2 binding.
The soapversion('1.2') method only works in non-WSDL mode, where Web service end points are specified directly.
Last update: 2009.
Table of Contents
WSDL 2.0 Document Structure and Syntax
WSDL Version 2.0 Part 2: Adjuncts
WSDL 2.0 Document Examples with SOAP Binding
WSDL 20 Programming APIs and Testing Tools
WSDL 1.1 Document Structure and Syntax
WSDL 1.1 Binding Extension for SOAP 1.1
soapUI 3.0.1 - Web Service Testing Tool
WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles
PHP SOAP Extension in PHP 5.3.1
Using WSDL in Perl with SOAP::Lite 0.710
Using WSDL Document in Java with Axis2 1.4.1
Using WSDL2Java to Generate Web Service Stub Classes
WSDL 1.1 Binding Extension for SOAP 1.2
WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles
►SOAP 1.2 Binding - PHP, Java and Perl Clients
PHP SOAP Extension - RPC Method Based Web Services
PHP SOAP Extension - XML Document Based Web Services
Java Axis2 1.4.1 - XML Document Based Web Services
Java Axis2 1.4.1 - RPC Method Based Web Services