rwsf::MessageHandlerImp rwsf::BodyBase
#include <rw/rwsf/soapworx/MessageHandler.h>
rwsf::MessageHandlerImp provides an interface for processing messages. All message handler bodies derive from this base class, including generated proxies, services, skeletons, and loggers.
This class implements the body part of the handle/body idiom, in which rwsf::MessageHandler is the handle.
To create a new service handler, derive from this class and implement the method invoke(). For more information, see Chapter 15, "SOAP Message Handler SDK," in the HydraExpress Web Service Development Guide
MessageHandlerImp();
Default constructor.
virtual ~MessageHandlerImp();
Destructor.
virtual void destroy();
Provides the message handler a chance to perform cleanup tasks and deallocate resources. A message handler should perform all resource deallocation and cleanup tasks in the destroy() method rather than its destructor.
virtual void invoke(rwsf::CallInfo& callInfo);
Virtual. Calling services that will use this handle access it through this method, which implements the main functionality of a service. To create a handler, extend this class and implement this method in the derived class.
virtual void init(const rwsf::Config& initParams);
Virtual. Initializes this handler. The values of the parameter initParams comes from the handlers.xml file defining the chains for this service.
#define rwsf_DEFINE_MESSAGE_HANDLER(NAME)
Use this macro to define a handler and register it with the lookup registry. See Part II, "Global Reference."
#define rwsf_DEFINE_STATIC_MESSAGE_HANDLER(ID, NAME)
Use this macro to define a static handler and register it with the lookup registry. This version of the macro should be used in client executables where the definition will not need to be exported. See Part II, "Global Reference."
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.