Herong's Tutorial Notes on Web Service and SOAP
Dr. Herong Yang, Version 4.00

Perl SOAP::Lite 0.710 for WSDL

This chapter provides tutorial examples and notes on using SOAP::Lite with WSDL. Topics include downloading WSDL documents to local system; testing SOAP::Lite 0.710 with WSDL locally; impact of soapversion() on service() call; failed tests with GetSpeech WSDL document.

First WSDL Test Failed with SOAP::Lite

Downloading and Editing WSDL Document

Testing service() Function Locally

soapversion('1.2') Sets Correct Envelope namespace

Error: Object reference not set to an instance of an object

Conclusions:

  • SOAP::Lite 0.710 does support WSDL with the service() function.
  • I cannot create a working program with SOAP::Lite 0.710 to use the GetSpeech WSDL provided at xmlme.com.
  • With soapversion('1.1'), the Envelope has the wrong namespace of xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/".
  • With soapversion('1.2'), the parameter element has the default namespace, but the method element has a named namespace.

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