This class provides functionality for handling SOAP requests in an XML Web service request handler. The class is injected as a base class by the soap_handler attribute.
template <typename THandler> class CSoapHandler : public CSoapRootHandler, public CComObjectRootEx<CComMultiThreadModel>, public IRequestHandlerImpl<THandler>
CSoapHandler is injected as a base class by the soap_handler attribute.
Soap handlers must use the memory manager returned by CSoapRootHandler::GetMemMgr to allocate memory for [out] or [in, out] parameters. To enable SOAP handlers to be used as ordinary COM objects or for handling SOAP requests without requiring any code changes, CSoapHandler uses the COM memory allocator when the object is being used as a COM object and it uses a heap more appropriate for a server environment when the object is being used to handle SOAP requests. Note that BSTRs must always be allocated with SysAllocString, CComBSTR, or a related function or class.