rwsf::ServiceSkeletonBaserwsf::MessageHandlerImp
#include rwsf/webservice/ServiceSkeletonBase.h
Class rwsf::ServiceSkeletonBase is an abstract base class for all generated skeletons. Its derived classes handle the details of marshaling and unmarshaling a SOAP message and trapping exceptions, which they translate into SOAP fault messages.
void dispatchOperation(rwsf::CallInfo & context) = 0;
Pure virtual function. In the derived classes, parses the service operation method and dispatches it on to the web service implementation, an instance of a class derived from the server implementation base class. Parameter:
Throws a rwsf::ClientFault if the message is unknown or does not exist.
std::string getProperty(const std::string & key) const;
Returns initialization parameter value for the given key.
Note
The only initialization parameter is rwsf:doEscape. For more information, see Section 7.3.9, "Turning off Text Escaping to Improve Performance," in the HydraExpress Web Service Development Guide.
void init(const rwsf::Config & initParams);
Reimplements method in rwsf::MessageHandlerImp
Base class documentation:
Virtual. Initializes this handler. The values of the parameter initParams comes from the handlers.xmlfile defining the chains for this service.
Implementation documentation:
Default initialize method. In the derived classes, retrieves the porttype implementation and the porttype instance in the naming context, and restores it, if it exists.
void invoke(rwsf::CallInfo & callInfo);
Reimplements method in rwsf::MessageHandlerImp
Base class documentation:
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.
Implementation documentation:
Retrieves the rwsf::XmlReader instance in the callInfo object to parse the document; then passes to the dispatchOperation()method. Throws a rwsf::ClientFault if the message is unknown or does not exist.
void setProperty(const std::string & key, const std::string & value);
Sets an initialization parameter.
Note
The only initialization parameter is rwsf:doEscape. For more information, see Section 7.3.9, "Turning off Text Escaping to Improve Performance," in the HydraExpress Web Service Development Guide.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.