WSDL Tutorials - Herong's Tutorial Examples - Version 2.02, 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:
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