Methods on SOAP::Lite 0.710 Client Object
This section provides all methods that are available on SOAP::Lite 0.710 client object. service() method can be used to load a WSDL document.
Before writing any Perl scripts to use SOAP::Lite 0.710 module,
let's have a quick look at all methods provided by SOAP::Lite for Web service client programming:
- new() - The Constructor. It may take any property values as arguments.
- transport() - Gets or sets the transport object used for sending/receiving SOAP messages.
- serializer() - Gets or sets the serializer object used for creating XML messages.
- packager() - Gets or sets the packager object that the client uses to manage the use of attachments.
- proxy() - Gets or sets the proxy object to be used by the transport object.
proxy object represents a server or endpoint to which the client is going to connect.
- endpoint() - Gets or sets the endpoint object to which the client is going to connect.
It must be called after the proxy object is set by calling proxy().
This method allows the caller to change the endpoint that the client is currently set to connect to,
without reloading the relevant transport code.
- service() - Gets or sets the service object represents Web service descriptions,
like a WSDL document. This method loads the specified WSDL schema and uses it as the basis for generating method stubs.
- outputxml() - Gets or sets the flag for receiving response result in raw XML format.
- autotype() - Gets or sets the flag to be used by the serializer
for automatically deducing data types when generating request message.
- readable() - Gets or sets the flag to be used by the serializer
for making request message readable with spaces and line breaks.
- default_ns() - Gets or sets current namespace as a "default" namespace.
- ns() - Gets or sets the current namespace as a named namespace.
- soapversion() - Gets or sets the SOAP version number, 1.1 and 1.2 are supported.
- envprefix() - Gets or sets the prefix of the SOAP envelop namespace to be used by the serializer.
- encprefix() - Gets or sets the prefix of the SOAP encoding rules namespace to be used by the serializer.
- encoding() - Gets or sets URN to be used by the serializer to be specified as the encoding scheme for the message.
- typelookup() - Gets or sets the type-lookup table to be used by the serializer.
- multirefinplace() - Gets or sets the flag to be used by the serializer to
control how the serializer handles values that have multiple references to them.
- parts() - Gets or sets an array of MIME::Entity objects to be attached to request.
- call() - Call the remote server with the request message.
The method may be built up from a the SOAP::Data object, so as to allow full control
over the namespace associated with the tag, as well as other attributes like encoding.
- on_action() - Gets or sets the call back function to generate the SOAPAction header line.
- on_nonserialized() - Gets or sets the call back function to handle data that can not be serialized.
I will try some of these methods in next tutorials.
Last update: 2009.
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
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
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
PDF Printing Version