NonStop SOAP User's Manual

Customizing the SOAP Server
NonStop SOAP User’s Manual520501-012
8-20
class SoapUEHandler_Generic
Class
class SoapUEHandler_Generic : public SoapUEHandler
{
Public
// Declare the method to be implemented.
long pre_process( ServiceEnv *env
, SoapFault *sf);
};
// Example code fragment to implement pre_unmarshal method in
// the SoapUEHandler_Generic class.
long SoapUEHandleer_Generic::pre_process( ServiceEnv *env
, SoapFault *sf)
{
serviceEnv_ = env;
// Generic user-exit code.
printf("Starting pre_process\n");
// Specific user-exit code implemented by forwardHandler_.
if (forwardHandler_ != NULL)
return forwardHandler_->pre_process(inputXML, env, sf);
// Generic user-exit code.
printf("Finishing pre_process\n");
}
forwardHandler_ is set by user-exit class factory for a specific Pathway service.
You can also implement virtual methods in the forwardHandler_.