org.jboss.soa.esb.actions.soap
Class JBossWSAdapter

java.lang.Object
  extended by org.jboss.soa.esb.actions.AbstractActionLifecycle
      extended by org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
          extended by org.jboss.soa.esb.actions.soap.JBossWSAdapter
All Implemented Interfaces:
ActionLifecycle, ActionPipelineProcessor

@Publish(value=JBossWSAdapterContractPublisher.class)
public class JBossWSAdapter
extends AbstractActionPipelineProcessor

JBoss Webservices endpoint adapter.

Author:
tom.fennelly@jboss.com

Field Summary
static java.lang.String JBOSSWS_ENDPOINT
           
 
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD
 
Constructor Summary
JBossWSAdapter(ConfigTree config)
          Public constructor.
 
Method Summary
static Message getMessage()
           
protected static org.jboss.ws.server.ServiceEndpoint getServiceEndpoint(java.lang.String endpointName)
          Get the Service Endpoint based on the endpoint name.
 Message process(Message message)
          Process the SOAP message.
static void setMessage(Message message)
           
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
processException, processSuccess
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle
destroy, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.soa.esb.actions.ActionLifecycle
destroy, initialise
 

Field Detail

JBOSSWS_ENDPOINT

public static final java.lang.String JBOSSWS_ENDPOINT
See Also:
Constant Field Values
Constructor Detail

JBossWSAdapter

public JBossWSAdapter(ConfigTree config)
               throws ConfigurationException
Public constructor.

Parameters:
config - Configuration.
Throws:
ConfigurationException - "jbossws-endpoint" not specified.
Method Detail

process

public Message process(Message message)
                throws ActionProcessingException
Process the SOAP message.

Invokes the JBossWS endpoint and writes the SOAP response back into the message payload.

Parameters:
message - The SOAP request message.
Returns:
The SOAP response message.
Throws:
ActionProcessingException

setMessage

public static void setMessage(Message message)

getMessage

public static Message getMessage()

getServiceEndpoint

protected static org.jboss.ws.server.ServiceEndpoint getServiceEndpoint(java.lang.String endpointName)
Get the Service Endpoint based on the endpoint name.

Parameters:
endpointName - Service Endpoint name.
Returns:
The service endpoint, or null if the endpoint is not found.