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

java.lang.Object
  extended by org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker
All Implemented Interfaces:
DataExchangeSemantics, Invoker
Direct Known Subclasses:
Axis2OneWayBindingInvoker

public class Axis2BindingInvoker
extends java.lang.Object
implements Invoker, DataExchangeSemantics

Axis2BindingInvoker uses an Axis2 OperationClient to invoke a remote web service


Field Summary
static javax.xml.namespace.QName CALLBACK_ID_REFPARM_QN
           
static javax.xml.namespace.QName CONVERSATION_ID_REFPARM_QN
           
static javax.xml.namespace.QName QNAME_WSA_FROM
           
static java.lang.String TUSCANY_PREFIX
           
 
Constructor Summary
Axis2BindingInvoker(Axis2ServiceClient serviceClient, javax.xml.namespace.QName wsdlOperationName, Options options, SOAPFactory soapFactory, java.util.List<PolicyHandler> policyHandlerList, WebServiceBinding wsBinding)
           
 
Method Summary
 boolean allowsPassByReference()
          Indicate if the data can be passed in by reference as they won't be mutated.
protected  OperationClient createOperationClient(Message msg)
           
 Message invoke(Message msg)
          Process a synchronous wire
protected  java.lang.Object invokeTarget(Message msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QNAME_WSA_FROM

public static final javax.xml.namespace.QName QNAME_WSA_FROM

TUSCANY_PREFIX

public static final java.lang.String TUSCANY_PREFIX
See Also:
Constant Field Values

CALLBACK_ID_REFPARM_QN

public static final javax.xml.namespace.QName CALLBACK_ID_REFPARM_QN

CONVERSATION_ID_REFPARM_QN

public static final javax.xml.namespace.QName CONVERSATION_ID_REFPARM_QN
Constructor Detail

Axis2BindingInvoker

public Axis2BindingInvoker(Axis2ServiceClient serviceClient,
                           javax.xml.namespace.QName wsdlOperationName,
                           Options options,
                           SOAPFactory soapFactory,
                           java.util.List<PolicyHandler> policyHandlerList,
                           WebServiceBinding wsBinding)
Method Detail

invoke

public Message invoke(Message msg)
Description copied from interface: Invoker
Process a synchronous wire

Specified by:
invoke in interface Invoker
Parameters:
msg - The request Message for the wire
Returns:
The response Message from the wire

invokeTarget

protected java.lang.Object invokeTarget(Message msg)
                                 throws AxisFault
Throws:
AxisFault

createOperationClient

protected OperationClient createOperationClient(Message msg)
                                         throws AxisFault
Throws:
AxisFault

allowsPassByReference

public boolean allowsPassByReference()
Description copied from interface: DataExchangeSemantics
Indicate if the data can be passed in by reference as they won't be mutated.

Specified by:
allowsPassByReference in interface DataExchangeSemantics
Returns:
true if pass-by-reference is allowed