|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.muse.ws.addressing.soap.SimpleSoapClient org.ogf.graap.wsag.client.wsrf.impl.Axis2SoapClient
public class Axis2SoapClient
Basic implementation of a SOAP client. The client implements the capabilities to send SOAP messages to a WSAG4J server and performs basic security processing operations. The client implementation is NOT thread-safe. Multi-threading applications must use multiple client objects in order to perform multiple operations in parallel.
Field Summary | |
---|---|
static int |
DEFAULT_TIME_OUT_IN_MILLI_SECONDS
The SOAP client timeout in milliseconds. |
static String |
WSAG4J_WSRF_CLIENT_CONFIG_FILE
user provided WSAG4J WSRF client configuration file name, this will overwrite the default configuration |
static String |
WSAG4J_WSRF_CLIENT_CONFIG_FILE_DEFAULT
default WSAG4J WSRF client configuration file name |
Constructor Summary | |
---|---|
Axis2SoapClient(Properties properties,
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. |
static ConfigurationType |
findWSAG4JConfiguration(String fileName)
|
protected Element[] |
generateExtraHeaders()
|
static org.apache.axis2.context.ConfigurationContext |
getConfigurationContext()
Returns the current Axis2 configuration context used for the SOAP communication. |
org.apache.ws.security.components.crypto.Crypto |
getCrypto()
|
static String |
getDefaultAxis2ConfigurationPath()
Returns the default location of the Axis2 configuration files. |
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)
|
static void |
setConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext)
Enables implementations to provide an alternative Axis2 configuration context that will be used for communicating with the WSAG4J server. |
static void |
setDefaultAxis2ConfigurationPath(String defaultAxis2ConfigurationPath)
Sets the default location of the Axis2 configuration files. |
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 |
---|
public static final String WSAG4J_WSRF_CLIENT_CONFIG_FILE
public static final String WSAG4J_WSRF_CLIENT_CONFIG_FILE_DEFAULT
public static int DEFAULT_TIME_OUT_IN_MILLI_SECONDS
Constructor Detail |
---|
public Axis2SoapClient(Properties properties, ISecurityProperties securityProperties)
securityProperties
- the security properties to useMethod Detail |
---|
public static org.apache.axis2.context.ConfigurationContext getConfigurationContext()
public static void setConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext)
configurationContext
- the configurationContext to setprotected void initialize()
protected Element createMessage(org.apache.muse.ws.addressing.EndpointReference source, org.apache.muse.ws.addressing.EndpointReference destination, String action, Element[] bodyElements, Element[] extraHeaders)
createMessage
in class org.apache.muse.ws.addressing.soap.SimpleSoapClient
public Element[] send(org.apache.muse.ws.addressing.EndpointReference src, org.apache.muse.ws.addressing.EndpointReference dest, String wsaAction, Element[] body, Element[] extraHeaders)
send
in interface org.apache.muse.ws.addressing.soap.SoapClient
send
in class org.apache.muse.ws.addressing.soap.SimpleSoapClient
protected Element doAxisCall(Element soapRequest, org.apache.muse.ws.addressing.EndpointReference dest, String wsaAction) throws org.apache.axis2.AxisFault
soapRequest
- the SOAP request as a DOM elementdest
- the destination EPRwsaAction
- the web service action
org.apache.axis2.AxisFault
- indicates a SOAP fault during the requestprotected Element[] generateExtraHeaders()
SecurityException
protected ClientSecurityHandler[] getSecurityHandler()
public Properties getProperties()
public void setProperties(Properties properties)
properties
- the properties to setpublic org.apache.ws.security.components.crypto.Crypto getCrypto()
public static String getDefaultAxis2ConfigurationPath()
client.axis2.xml
and
all required modules.
public static void setDefaultAxis2ConfigurationPath(String defaultAxis2ConfigurationPath) throws Exception
client.axis2.xml
and all
required modules. Implementations may change the default path in order to provide an alternative
configuration path and recreate the default Axis2 configuration context.
defaultAxis2ConfigurationPath
- the Axis2 configuration path
Exception
- indicates that the creation of the new Axis2 configuration context failedpublic static ConfigurationType findWSAG4JConfiguration(String fileName) throws IOException
fileName
- The file name of the requested XML configuration file.
XmlObject
.
IOException
- the configuration file could not be read or a related error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |