WSDL Tutorials - Herong's Tutorial Examples
∟Using WSDL Document in Java Apache Axis2/Java for WSDL
∟org.apache.axis2.client.ServiceClient Class
This section describes client side programming class, org.apache.axis2.client.ServiceClient, which represents a single Web service with a specific port. ServiceClient allows you to invoke operations defined in the service.
The easiest way to learn Axis2 client side programming is to start with the
org.apache.axis2.client.ServiceClient class.
org.apache.axis2.client.ServiceClient is an Axis2 class that provides you
client access to a service. Each instance of this class is associated with a particular
AxisService instance, and the methods support operations using that service.
Options instances are used to configure various aspects of the service access.
Here are some interesting methods provided in ServiceClient class:
- ServiceClient() - Constructor to create a service client default configuration.
- ServiceClient(configContext, wsdlURL, wsdlServiceName, portName) - Constructor to create
a service client with a given WSDL document.
- addHeader(header) - Method to add an element in the SOAP Header to be sent with outgoing messages.
- createClient(operationName) - Method to return an operation client for a given operation.
- fireAndForget(elem) - Method to invoke an anonymous operation with an In-Only MEP.
- fireAndForget(operationName, elem) - Method to invoke a named operation with an In-Only MEP.
- getAxisConfiguration() - Method to return the AxisConfiguration associated with the client.
- getAxisService() - Method to return the AxisService this is a client for.
- getOptions() - Method to return the basic client configuration from this service interaction.
- getServiceContext() - Method to return the service context.
- getTargetEPR() - Method to return the endpoint reference for the service.
- sendReceive(elem) - Method to invoke an anonymous operation with an In-Out MEP.
- sendReceive(operationName, elem) - Method to invoke a named operation with an In-Out MEP.
- sendRobust(elem) - Method to invoke an anonymous operation with a Robust In-Out MEP.
- sendRobust(operationName, elem) - Method to invoke a named operation with a Robust In-Out MEP.
- setAxisService(axisService) - Method to set the AxisService object.
- setOptions(options) - Method to set the basic client configuration.
- setTargetEPR(targetEPR) - Method to set the endpoint reference.
See next section on how to use some those methods.
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
What Is Axis2
Downloading and Installing Axis2/Java
►org.apache.axis2.client.ServiceClient Class
Creating Service Client with WSDL Document
WSDL2Java Converting WSDL 2.0 Documents to Stub Classes
Apache Woden for WSDL Documents in Java
SoapUI - Web Service Testing Tool
PHP SOAP Extension for WSDL
Perl SOAP::Lite for WSDL
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