|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sape.smfw.soapengine.MessageService
A convenience Web service supplied by the SOAP engine. This implementation can be used "as is" or extended to fit application specific needs. For example, if the application hosts several Web services, this class can be extended once for each Web service. In addition the following methods would be overridden to supply configuration names:
Field Summary | |
private static String |
defaultMessageHandlerConfigurationName
Default MessageHandlerConfiguration name |
private static String |
defaultMessagingEngineConfigurationName
Default MessagingEngineConfiguration name |
private static org.apache.commons.logging.Log |
log
|
private MessageContext |
messageContext
The MessageContext for this service |
private MessageReader |
messageReader
The MessageReader used to receive messages |
private MessageWriter |
messageWriter
The MessageWriter used to send messages |
Constructor Summary | |
MessageService()
|
Method Summary | |
void |
destroy()
|
String |
getMessageHandlerConfigurationName()
Returns the MessageHandlerConfiguration name for this service. |
String |
getMessagingEngineConfigurationName()
Returns the MessagingEngineConfiguration name for this service. |
void |
init(Object context)
|
private void |
initMessageContext()
Initializes the MessageContext. |
private void |
initMessagingEngine()
Initializes the MessageReader and the MessageWriter. |
org.apache.axis.message.SOAPBodyElement[] |
processMessage(org.apache.axis.message.SOAPBodyElement[] requestElements)
Processes the Message imbedded in the SOAP body. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private static final String defaultMessagingEngineConfigurationName
private static final String defaultMessageHandlerConfigurationName
private MessageContext messageContext
private MessageReader messageReader
private MessageWriter messageWriter
Constructor Detail |
public MessageService()
Method Detail |
public void init(Object context) throws javax.xml.rpc.ServiceException
init
in interface javax.xml.rpc.server.ServiceLifecycle
javax.xml.rpc.ServiceException
ServiceLifecycle.init(java.lang.Object)
private void initMessageContext()
private void initMessagingEngine()
public void destroy()
destroy
in interface javax.xml.rpc.server.ServiceLifecycle
ServiceLifecycle.destroy()
public String getMessagingEngineConfigurationName()
public String getMessageHandlerConfigurationName()
public org.apache.axis.message.SOAPBodyElement[] processMessage(org.apache.axis.message.SOAPBodyElement[] requestElements) throws RemoteException
requestElements
- contains the request Message
RemoteException
- if there is any error encountered during execution
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |