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_SOAP.wsdl with the following Perl script:

#- Hello_WSDL_20.pl
#- Copyright (c) 2009 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.");

Run the test script:

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 "Perl SOAP::Lite for WSDL 1.1" chapter on how to use SOAP::Lite with WSDL 1.1 documents.

Table of Contents

 About This Book

 Introduction to WSDL 2.0

 WSDL 2.0 Document Structure and Syntax

 WSDL Version 2.0 Part 2: Adjuncts

 WSDL 2.0 Document Examples with SOAP Binding

 Using WSDL Document in Java Apache Axis2/Java for WSDL

 Apache Woden for WSDL Documents in Java

 SoapUI - Web Service Testing Tool

 PHP SOAP Extension for WSDL

Perl SOAP::Lite for WSDL

 What Is Perl SOAP::Lite

 Installing ActivePerl on Windows

 Installing SOAP::Lite Package

Testing Perl SOAP::Lite with WSDL Documents

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 SoapUI as WSDL 1.1 Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension for WSDL 1.1

 Perl SOAP::Lite for WSDL 1.1

 Apache Axis2/Java for WSDL 1.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

 Python SOAP Client: Zeep

 WSDL Related Terminologies

 Archived Tutorials

 References

 Full Version in PDF/EPUB