NonStop SOAP 4.1 User's Manual

This command will generate only the module handler files.
NOTE:
Use the -f option with the SoapAdminCL command to overwrite the existing files. If
you do not specify the -f option, SoapAdminCL will generate new files based on the
SDL attributes and report a failure for the existing files which are not overwritten.
5. Verify that the following directory structure is created in <NonStop SOAP Deployment
Directory>:
<NonStop SOAP 4 Deployment Directory>
/modules
/mod_empdb
module.xml
/src
Makefile
mod_empdb.c
mod_empdb.h
empdb_pre_process_handler.c
empdb_post_process_handler.c
where,
module.xml
is the configuration file for the mod_empdb module.
Makefile
is the Makefile for the mod_empdb module.
mod_empdb.c
is the C skeleton source file that implements the interface between the NonStop SOAP 4
server and the mod_empdb module.
mod_empdb.h
is the header file for the mod_empdb.c source.
empdb_pre_process_handler.c
is the C stub file where you must implement the pre_process business logic for the
handler. In this example, the business logic logs the name of the service invoked in an
audit file.
empdb_post_process_handler.c
is the C stub file where you must implement the post_process business logic for the
handler. In this example, the business logic inserts an XML processing instruction in the
response XML message.
Migrating the pre_process() user-exit business logic
To migrate the business logic for the pre_process() user-exit to the pre_process handler, complete
the following steps:
1. Open the empdb_pre_process_handler.c stub file generated in the <NonStop SOAP
4 Deployment Directory>/modules/mod_empdb/src directory.
2. Implement the business logic of the pre_process() user-exits to the
axutil_empdb_pre_process_invoke() function.
The following code sample shows the business logic implemented in the
axutil_empdb_pre_process_invoke()function in the empdb_pre_process_handler.c
file:
1 axis2_status_t AXIS2_CALL
2 axutil_empdb_pre_process_invoke(
3 struct axis2_handler * handler,
4 const axutil_env_t * env,
5 struct axis2_msg_ctx * msg_ctx)
6 {
66 Migrating NonStop SOAP 3 Services to NonStop SOAP 4 or Higher Versions