NonStop SOAP 4.1 User's Manual
NOTE: The NonStop SOAP distribution includes the complete implementation of the
post_process()handler. You can either write your own business logic or copy the source code
of the post_process()handler from the NonStop SOAP 4.1 installation directory using the
following command:
OSS>cp <NonStop SOAP 4 Installation Directory>/sample_services/modules
/mod_empdb/src/empdb_post_process_handler.c
<NonStop SOAP 4 Deployment Directory>/modules
/mod_empdb/src/empdb_post_process_handler.c
Compiling the mod_empdb module
After implementing the business logic in the axutil_empdb_pre_process_invoke() and
axutil_empdb_post_process_invoke() methods, you must compile the mod_empdb module.
To compile the mod_empdb module, complete the following steps:
1. Go to the <NonStop SOAP 4 Deployment Directory>/modules/mod_empdb/src
directory using the OSS command:
OSS> cd <NonStop SOAP Deployment Directory>/modules/mod_empdb/src
For example:
OSS> cd /home/usr1/mynssoap/modules/mod_empdb/src
2. Set the environment variable AXIS2C_HOME to <NonStop SOAP 4 Deployment
Directory> directory using the OSS command:
OSS> export AXIS2C_HOME=<NonStop SOAP 4 Deployment Directory>
For example:
OSS> export AXIS2C_HOME=/home/usr1/mynssoap
3. To compile and generate the module DLL, run the make command on the OSS prompt:
OSS>make
On successful completion of the make command, the libaxis2_mod_empdb.so file is
created in the <NonStop SOAP 4 Deployment Directory>/modules/mod_empdb
directory.
Deploying the mod_empdb module
After creating the libaxis2_mod_empdb.so file, complete the following steps to deploy the
module:
1. Attach the pre_process()handler to the PostDispatch phase. To do so, edit the
module.xml file in <NonStop SOAP Deployment Directory>/modules/mod_empdb
to set the phase attribute of the order element in inflow to PostDispatch.
<inflow>
<handler name="empdbPreProcessHandler" class="axis2_mod_empdb">
<order phase="PostDispatch"/>
</handler>
</inflow>
2. Attach the post_process()handler to the MessageOut phase. To do so, in the
module.xml file, set the phase attribute of the order element in outflow to MessageOut.
<outflow>
<handler name="empdbPostProcessHandler" class="axis2_mod_empdb">
<order phase="MessageOut"/>
</handler>
</outflow>
3. Add the module name to the ref attribute of the module element in the services.xml file
in the <NonStop SOAP 4 Deployment Directory>/services/empdb directory.
<module ref="mod_empdb"/>
Migrating NonStop SOAP 3 User-exits 69










