org.apache.cocoon.components.axis
Interface SoapServer

All Superinterfaces:
Component, Startable
All Known Implementing Classes:
SoapServerImpl

public interface SoapServer
extends Component, Startable

SoapServer interface.

This interface describes the operations provided by any Axis Soap Server implementations.

Example use:

    SoapServer server = (SoapServer) manager.lookup(SoapServer.ROLE);
    MessageContext message = server.createMessageContext(req, res, con);
    server.invoke(message);
    manager.release(server);
    // message sent back to sender
  

Version:
CVS $Id: SoapServer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marcus Crafter

Field Summary
static String LOGGER
          Constant used to key message context entries for an avalon logger
static String ROLE
          Component's ROLE definition
 
Method Summary
 org.apache.axis.MessageContext createMessageContext(HttpServletRequest req, HttpServletResponse res, ServletContext con)
          Method to create a new message context, based on this Axis server instance, and the caller's request, response, and context objects.
 void invoke(org.apache.axis.MessageContext message)
          Invoke a particular message context on this server.
 
Methods inherited from interface org.apache.avalon.framework.activity.Startable
start, stop
 

Field Detail

ROLE

static final String ROLE
Component's ROLE definition


LOGGER

static final String LOGGER
Constant used to key message context entries for an avalon logger

See Also:
Constant Field Values
Method Detail

invoke

void invoke(org.apache.axis.MessageContext message)
            throws Exception
Invoke a particular message context on this server. This method takes the given message, invokes it on the server and sets the response inside it for the caller to retrieve.

Parameters:
message - a MessageContext instance
Throws:
Exception - if an error occurs

createMessageContext

org.apache.axis.MessageContext createMessageContext(HttpServletRequest req,
                                                    HttpServletResponse res,
                                                    ServletContext con)
Method to create a new message context, based on this Axis server instance, and the caller's request, response, and context objects.

Parameters:
req - a HttpServletRequest instance
res - a HttpServletResponse instance
con - a ServletContext instance
Returns:
a MessageContext instance


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.