org.apache.tuscany.sca.binding.ws.axis2
Class Axis2ServiceClient

java.lang.Object
  extended by org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceClient

public class Axis2ServiceClient
extends java.lang.Object


Nested Class Summary
static class Axis2ServiceClient.URIResolverImpl
          URI resolver implementation for XML schema
 
Constructor Summary
Axis2ServiceClient(RuntimeComponent component, AbstractContract contract, WebServiceBinding wsBinding, MessageFactory messageFactory, java.util.List<PolicyHandlerTuple> policyHandlerClassnames)
           
 
Method Summary
protected  void configurePolicy(ConfigurationContext context, PolicySet ps)
           
static AxisService createClientSideAxisService(Definition definition, javax.xml.namespace.QName serviceName, java.lang.String portName, Options options)
          Deprecated. 
protected  Invoker createInvoker(Operation operation)
          Create and configure an Axis2BindingInvoker for each operation
protected  ServiceClient createServiceClient()
          Create an Axis2 ServiceClient
protected  org.apache.axis2.addressing.EndpointReference getEPR(WebServiceBinding wsBinding)
           
protected  EndpointReference getPortLocationEPR(WebServiceBinding binding)
           
 ServiceClient getServiceClient()
           
protected  java.lang.String getSOAPAction(java.lang.String operationName)
           
protected  EndpointReference getWSATOEPR(WebServiceBinding binding)
           
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2ServiceClient

public Axis2ServiceClient(RuntimeComponent component,
                          AbstractContract contract,
                          WebServiceBinding wsBinding,
                          MessageFactory messageFactory,
                          java.util.List<PolicyHandlerTuple> policyHandlerClassnames)
Method Detail

start

protected void start()

getServiceClient

public ServiceClient getServiceClient()

configurePolicy

protected void configurePolicy(ConfigurationContext context,
                               PolicySet ps)
                        throws AxisFault
Throws:
AxisFault

createServiceClient

protected ServiceClient createServiceClient()
Create an Axis2 ServiceClient


createClientSideAxisService

@Deprecated
public static AxisService createClientSideAxisService(Definition definition,
                                                                 javax.xml.namespace.QName serviceName,
                                                                 java.lang.String portName,
                                                                 Options options)
                                               throws AxisFault
Deprecated. 

This method is copied from AxisService.createClientSideAxisService to work around http://issues.apache.org/jira/browse/WSCOMMONS-228

Parameters:
wsdlDefinition -
wsdlServiceName -
portName -
options -
Returns:
Throws:
AxisFault

stop

protected void stop()

createInvoker

protected Invoker createInvoker(Operation operation)
Create and configure an Axis2BindingInvoker for each operation


getWSATOEPR

protected EndpointReference getWSATOEPR(WebServiceBinding binding)

getPortLocationEPR

protected EndpointReference getPortLocationEPR(WebServiceBinding binding)

getEPR

protected org.apache.axis2.addressing.EndpointReference getEPR(WebServiceBinding wsBinding)

getSOAPAction

protected java.lang.String getSOAPAction(java.lang.String operationName)