NonStop SOAP User's Manual
NonStop SOAP User-Exits
NonStop SOAP User’s Manual—520501-012
C-36
Complete User-exit Code Sample for Nonstop
Tuxedo Simpapp Example
Complete User-exit Code Sample for Nonstop
Tuxedo Simpapp Example
1. SoapUEClassFactory.cpp
#include "SoapUEClassFactory.h"
#include "SoapUEHandler_impl.h"
// Declare and initialize the SOAP User-exit object.
SoapUEHandler *SoapUEClassFactory::instantiate(const char *serviceName,
SoapServiceType type)
{
SoapUEHandler *soapUE = NULL;
if (type == SERVICE_PATHWAY)
{
if (!strcmp(serviceName, "TOUPPER"))
soapUE = new SoapPW_UEHandler_TOUPPER;
}
return new SoapUEHandler_Generic(soapUE);
}