NonStop SOAP 4.1 User's Manual

6 int iPos = 0;
7 iPos = outputXml.find("?>");
8 if (iPos > 0) {
9 char replStr[500];
10 memset(replStr, 0, sizeof(replStr));
11 strcpy(replStr, "\n<?xml-stylesheet type=\"text/xsl\" href=\"");
12 strcat(replStr, XSLTFileName);
13 strcat(replStr, "\" ?>\n");
14 outputXml.replace(iPos + 2,1, replStr);
15 }
16 }
Checks if the Extensible Stylesheet Language (XSL) template file specified in the argument
exists.
Line 3-5
Invokes the outputXml.find function to search for the ?> tag.Line 7
Builds the Extensible Stylesheet Language Tranns (XSLT) processing instruction to be
appended to the response XML message.
Line 8-15
Migration of the pre_process() and post_process() user-exits in NonStop SOAP 4
NonStop SOAP 3 user-exits cannot be migrated directly to NonStop SOAP 4.1. You must develop
a module and handler to implement the same functionality in NonStop SOAP 4.1.
To migrate the pre_process()user-exit to an equivalent module and handler in NonStop SOAP
4.1:
Implement the empdbPreProcessHandler as a part of the mod_empdb module.
Attach the handler to the PostDispatch phase of the inflow.
To migrate the post_process()user-exit to an equivalent module and handler in NonStop SOAP
4.1:
Implement empdbPostProcessHandler handler as a part of the mod_empdb module.
Attach the handler to the MessageOut phase of the outflow.
Developing the mod_empdb module for NonStop SOAP 4.1 involves the following tasks:
1. Running the SoapAdminCL tool to create the module stub and configuration files (page 64)
2. Migrating the pre_process() user-exit business logic (page 66)
3. Migrating the post_process() user-exit business logic (page 67)
4. Compiling the mod_empdb module (page 69)
5. Deploying the mod_empdb module (page 69)
6. Running the NonStop SOAP empdb sample with the mod_empdb module (page 70)
Running the SoapAdminCL tool to create the module stub and configuration files
The first step is to generate the module stub and configuration files required to implement the
mod_empdb module. You must have the empdb service deployed in NonStop SOAP 4.1. For more
64 Migrating NonStop SOAP 3 Services to NonStop SOAP 4 or Higher Versions