WSDL Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.00

Using WSDL in Perl with SOAP::Lite 0.710

This chapter provides tutorial notes and example codes using WSDL 1.1 in Perl with SOAP::Lite 0.710. Topics include SOAP::Lite client methods; using service() method to load WSDL document; calling RPC method based Web services; building SOAP::Data objects to represent XML documents; calling XML document based Web services; serializing and deserializing SOAP::Data objects.

Introduction of Perl SOAP::Lite 0.710 for WSDL

Methods on SOAP::Lite 0.710 Client Object

Calling PRC Methods Defined in WSDL 1.1 Documents

service() Method Returns New Objects

SOAP::Data - XML Elements as Data Objects

SOAP::Serializer - Converting Data Objects to XML

Creating a Data Object for a Single XML Element

Creating a Data Object for Nested XML Elements

SOAP::Deserializer - Converting XML to Data Objects

Calling XML Document Based Web Service

Using Operation Name as the SOAP Body Element Name

Conclusions:

  • SOAP::Lite 0.710 supports WSDL 1.1 documents with the service() method.
  • SOAP::Lite 0.710 supports RPC method based Web services perfectly.
  • SOAP::Lite 0.710 can supports XML document based Web services. But you need to use operation name as the SOAP Body sub element name.
  • SOAP::Data class can be used to build SOAP Body sub elements.
  • SOAP::Serializer class can be used to convert SOAP::Data objects to XML strings.
  • SOAP::Deserializer class can be used to convert XML strings to SOAP::SOM objects, then to SOAP::Data objects.

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

 WSDL 20 Programming APIs and Testing Tools

 Introduction to WSDL 1.1

 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

 WSDL Related Terminologies

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2009
Using WSDL in Perl with SOAP::Lite 0.710