org.apache.axis2.description
Class ClientUtils
java.lang.Object
org.apache.axis2.description.ClientUtils
- public class ClientUtils
- extends Object
Utility methods for various clients to use.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientUtils
public ClientUtils()
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 WSDLwsdlServiceName
- name of the service to be invoke , if it is null then the first one will
be selected if there are more than oneportName
- name of the port , if there are more than one , if it is null then the
first one in the iterator will be selectedoptions
- Service client options, to set the target EPR
- Returns:
- AxisService , the created servie will be return
- Throws:
AxisFault