org.apache.axis2.description
Class ClientUtils

java.lang.Object
  extended byorg.apache.axis2.description.ClientUtils

public class ClientUtils
extends Object

Utility methods for various clients to use.


Constructor Summary
ClientUtils()
           
 
Method Summary
static AxisService creatAxisService(URL wsdlURL, QName wsdlServiceName, String portName, Options options)
          To create a AxisService for a given WSDL and the created client is most suitable for clinet side invocation not for server side invocation.
static TransportInDescription inferInTransport(AxisConfiguration ac, Options options, ServiceContext serviceContext)
           
static TransportOutDescription inferOutTransport(AxisConfiguration ac, EndpointReference epr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientUtils

public ClientUtils()
Method Detail

inferOutTransport

public static TransportOutDescription inferOutTransport(AxisConfiguration ac,
                                                        EndpointReference epr)
                                                 throws AxisFault
Throws:
AxisFault

inferInTransport

public static TransportInDescription inferInTransport(AxisConfiguration ac,
                                                      Options options,
                                                      ServiceContext serviceContext)
                                               throws AxisFault
Throws:
AxisFault

creatAxisService

public static AxisService creatAxisService(URL wsdlURL,
                                           QName wsdlServiceName,
                                           String portName,
                                           Options options)
                                    throws AxisFault
To create a AxisService for a given WSDL and the created client is most suitable for clinet side invocation not for server side invocation. Since all the soap acction and wsa action is added to operations

Parameters:
wsdlURL - location of the WSDL
wsdlServiceName - name of the service to be invoke , if it is null then the first one will be selected if there are more than one
portName - name of the port , if there are more than one , if it is null then the first one in the iterator will be selected
options - Service client options, to set the target EPR
Returns:
AxisService , the created servie will be return
Throws:
AxisFault