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) 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.

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

 Insatlling 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

 WSDL Related Terminologies

 Outdated Tutorials


 Full Version in PDF/EPUB