WSDL Tutorials - Herong's Tutorial Examples - Version 2.10, by Dr. Herong Yang
Testing Perl SOAP::Lite with WSDL Documents
This section provides a tutorial example on how to test Perl SOAP::Lite with a WSDL 2.0 document. It fails with an error.
Once Perl SOAP::Lite is installed, I want to test it with a WSDL 2.0 document, Hello_WSDL_20.pl:
#- Hello_WSDL_20.pl #- Copyright (c) 2009-2018 HerongYang.com, All Rights Reserved. # use SOAP::Lite; my $wsdl = "file:///C:/herong/Hello_WSDL_20_SOAP.wsdl"; my $client = SOAP::Lite->service($wsdl); print $client->Hello("Hello from client.");
4. Run the test program:
C:\herong>perl Hello_WSDL_20.pl Unrecognized method 'Hello'. List of available method(s):
As you can see, Perl SOAP::Lite fails to parse the WSDL 2.0 document. And it is doing a very poor job on reporting the error.
Conclusion: Perl SOAP::Lite does not support WSDL 2.0.
See other tutorials in this book on how to use Perl SOAP::Lite to test WSDL 1.1 documents.
Last update: 2018.
Table of Contents