org.ogf.graap.wsag.client.remote
Class Axis2SoapClient

java.lang.Object
  extended by org.apache.muse.ws.addressing.soap.SimpleSoapClient
      extended by org.ogf.graap.wsag.client.remote.Axis2SoapClient
All Implemented Interfaces:
org.apache.muse.util.Traceable, org.apache.muse.ws.addressing.soap.SoapClient, org.apache.muse.ws.addressing.soap.SoapMonitor

public class Axis2SoapClient
extends org.apache.muse.ws.addressing.soap.SimpleSoapClient

AxisSoapClient

Author:
Oliver Waeldrich

Field Summary
static int DEFAULT_TIME_OUT_IN_MILLI_SECONDS
          The SOAP client timeout in milliseconds.
 
Constructor Summary
Axis2SoapClient(ISecurityProperties securityProperties)
          Creates a new SOAP client with the given security properties.
 
Method Summary
protected  Element createMessage(org.apache.muse.ws.addressing.EndpointReference source, org.apache.muse.ws.addressing.EndpointReference destination, String action, Element[] bodyElements, Element[] extraHeaders)
          
protected  Element doAxisCall(Element soapRequest, org.apache.muse.ws.addressing.EndpointReference dest, String wsaAction)
          Executes a SOAP call by using the Axis 2 SOAP engine.
protected  Element[] generateExtraHeaders()
           
 org.apache.ws.security.components.crypto.Crypto getCrypto()
           
 Properties getProperties()
           
protected  ClientSecurityHandler[] getSecurityHandler()
           
protected  void initialize()
          initializes this client instance
 Element[] send(org.apache.muse.ws.addressing.EndpointReference src, org.apache.muse.ws.addressing.EndpointReference dest, String wsaAction, Element[] body, Element[] extraHeaders)
          
 void setProperties(Properties properties)
           
 
Methods inherited from class org.apache.muse.ws.addressing.soap.SimpleSoapClient
getConnectionHandler, getDestinationURL, getSoapMonitorPort, getTraceWriter, isUsingSoapMonitor, isUsingTrace, send, setConnectionHandler, setTrace, setTraceWriter, startSoapMonitor, stopSoapMonitor, trace, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TIME_OUT_IN_MILLI_SECONDS

public static int DEFAULT_TIME_OUT_IN_MILLI_SECONDS
The SOAP client timeout in milliseconds.

Constructor Detail

Axis2SoapClient

public Axis2SoapClient(ISecurityProperties securityProperties)
Creates a new SOAP client with the given security properties.

Parameters:
securityProperties - the security properties to use
Method Detail

initialize

protected void initialize()
initializes this client instance


createMessage

protected Element createMessage(org.apache.muse.ws.addressing.EndpointReference source,
                                org.apache.muse.ws.addressing.EndpointReference destination,
                                String action,
                                Element[] bodyElements,
                                Element[] extraHeaders)

Overrides:
createMessage in class org.apache.muse.ws.addressing.soap.SimpleSoapClient

send

public Element[] send(org.apache.muse.ws.addressing.EndpointReference src,
                      org.apache.muse.ws.addressing.EndpointReference dest,
                      String wsaAction,
                      Element[] body,
                      Element[] extraHeaders)

Specified by:
send in interface org.apache.muse.ws.addressing.soap.SoapClient
Overrides:
send in class org.apache.muse.ws.addressing.soap.SimpleSoapClient

doAxisCall

protected Element doAxisCall(Element soapRequest,
                             org.apache.muse.ws.addressing.EndpointReference dest,
                             String wsaAction)
                      throws org.apache.axis2.AxisFault
Executes a SOAP call by using the Axis 2 SOAP engine.

Parameters:
soapRequest - the SOAP request as a DOM element
dest - the destination EPR
wsaAction - the web service action
Returns:
the SOAP response as a DOM element
Throws:
org.apache.axis2.AxisFault - indicates a SOAP fault during the request

generateExtraHeaders

protected Element[] generateExtraHeaders()
Returns:
Returns a set of extra header elements that is included in the SOAP message.
Throws:
SecurityException

getSecurityHandler

protected ClientSecurityHandler[] getSecurityHandler()
Returns:
the security handler of this client instance

getProperties

public Properties getProperties()
Returns:
the properties

setProperties

public void setProperties(Properties properties)
Parameters:
properties - the properties to set

getCrypto

public org.apache.ws.security.components.crypto.Crypto getCrypto()
Returns:
the crypto


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.