org.ow2.petals.binding.soap.listener.outgoing
Class PetalsServiceClient

java.lang.Object
  extended by org.apache.axis2.client.ServiceClient
      extended by org.ow2.petals.binding.soap.listener.outgoing.PetalsServiceClient

public class PetalsServiceClient
extends org.apache.axis2.client.ServiceClient

A ServiceClient extension to be abble to get the entire SOAPBody of the service response. This is because Axis2 only returns the first element of the SOAPBody which will not work with multiref responses.

Author:
Christophe HAMERLING - eBM WebSourcing
See Also:
https://issues.apache.org/jira/browse/AXIS2-2408

Field Summary
 
Fields inherited from class org.apache.axis2.client.ServiceClient
ANON_OUT_IN_OP, ANON_OUT_ONLY_OP, ANON_ROBUST_OUT_ONLY_OP, ANON_SERVICE, AUTO_OPERATION_CLEANUP, log
 
Constructor Summary
PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext, org.apache.axis2.description.AxisService axisService)
          Creates a new instance of ServiceClient
PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext, javax.wsdl.Definition wsdl4jDefinition, QName wsdlServiceName, String portName)
          Creates a new instance of ServiceClient
PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext, URL wsdlURL, QName wsdlServiceName, String portName)
          Creates a new instance of ServiceClient
 
Method Summary
protected  void fillSOAPEnvelope(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMElement xmlPayload)
           
protected  void fillSOAPEnvelope(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMElement xmlPayload, Map<String,DocumentFragment> headers)
           
protected  org.apache.axiom.soap.SOAPFactory getSOAPFactory()
           
 org.apache.axis2.context.MessageContext sendReceiveBody(QName operationQName, org.apache.axiom.om.OMElement xmlPayload, Map<String,DocumentFragment> headers)
          Send / receive a message and add some SOAP header values...
 
Methods inherited from class org.apache.axis2.client.ServiceClient
addHeader, addHeader, addHeadersToEnvelope, addStringHeader, cleanup, cleanupTransport, createClient, disengageModule, disengageModule, engageModule, engageModule, equals, finalize, fireAndForget, fireAndForget, getAxisConfiguration, getAxisService, getLastOperationContext, getMyEPR, getOptions, getOverrideOptions, getServiceContext, getTargetEPR, hashCode, removeHeaders, sendReceive, sendReceive, sendReceiveNonBlocking, sendReceiveNonBlocking, sendReceiveNonBlocking, sendReceiveNonBlocking, sendRobust, sendRobust, setAxisService, setCachingOperationContext, setOptions, setOverrideOptions, setTargetEPR
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PetalsServiceClient

public PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext,
                           org.apache.axis2.description.AxisService axisService)
                    throws org.apache.axis2.AxisFault
Creates a new instance of ServiceClient

Parameters:
configContext -
axisService -
Throws:
org.apache.axis2.AxisFault

PetalsServiceClient

public PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext,
                           javax.wsdl.Definition wsdl4jDefinition,
                           QName wsdlServiceName,
                           String portName)
                    throws org.apache.axis2.AxisFault
Creates a new instance of ServiceClient

Parameters:
configContext -
wsdl4jDefinition -
wsdlServiceName -
portName -
Throws:
org.apache.axis2.AxisFault

PetalsServiceClient

public PetalsServiceClient(org.apache.axis2.context.ConfigurationContext configContext,
                           URL wsdlURL,
                           QName wsdlServiceName,
                           String portName)
                    throws org.apache.axis2.AxisFault
Creates a new instance of ServiceClient

Parameters:
configContext -
wsdlURL -
wsdlServiceName -
portName -
Throws:
org.apache.axis2.AxisFault
Method Detail

fillSOAPEnvelope

protected void fillSOAPEnvelope(org.apache.axis2.context.MessageContext messageContext,
                                org.apache.axiom.om.OMElement xmlPayload)
                         throws org.apache.axis2.AxisFault
Parameters:
messageContext -
xmlPayload -
Throws:
org.apache.axis2.AxisFault

fillSOAPEnvelope

protected void fillSOAPEnvelope(org.apache.axis2.context.MessageContext messageContext,
                                org.apache.axiom.om.OMElement xmlPayload,
                                Map<String,DocumentFragment> headers)
                         throws org.apache.axis2.AxisFault
Parameters:
messageContext -
xmlPayload -
headers -
Throws:
org.apache.axis2.AxisFault

getSOAPFactory

protected org.apache.axiom.soap.SOAPFactory getSOAPFactory()
Returns:

sendReceiveBody

public org.apache.axis2.context.MessageContext sendReceiveBody(QName operationQName,
                                                               org.apache.axiom.om.OMElement xmlPayload,
                                                               Map<String,DocumentFragment> headers)
                                                        throws org.apache.axis2.AxisFault
Send / receive a message and add some SOAP header values...

Parameters:
operationQName -
xmlPayload -
headers -
Returns:
Throws:
org.apache.axis2.AxisFault


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.