NonStop SOAP 4.1 User's Manual

25}
Gets the operation name.Line 12
Checks whether the operation name is EmpAdd.Line 20
Sets the skipMarshal flag.Line 21
Compiling the Message Receiver user Functions
To build empdb_MRUF, complete the following steps:
1. Go to the source code location of Message Receiver User Functions using the OSS command:
OSS> cd <NonStop SOAP 4 Deployment Directory>/
services/empdb/MRUF_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>
3. Run the make command to compile and generate the module DLL:
OSS> make
On successful completion of the make command, the libaxis2_MRUF_empdb.so module
is created in the <NonStop SOAP 4 Deployment Directory>/MRUserFunctions
directory.
Deploying the Message Receiver user Functions
After creating the Message Receiver user Function DLL , you must engage the
libaxis2_MRUF_empdb.so module with the empdb application in the NonStop SOAP 4
deployment.
1. Verify that the following entry is present in the services.xml file in the <NonStop SOAP
4 Deployment Directory>/services/empdb directory to engage the Message Receiver
User Functions.
<parameter name="MessageReceiverUserFunctions">axis2_MRUF_empdb</parameter>
where,
axis2_MRUF_empdb
is the name of the DLL for Message Receiver User Functions. NonStop SOAP 4 generates
the name of the DLL by adding lib as the prefix and so as the suffix.
2. Restart iTP WebServer to engage the new Message Receiver User Functions:
OSS> cd <iTP_Installation_Directory>/conf
OSS> ./restart
Running the NonStop SOAP 4 empdb sample with empdb_MRUF
To verify if the empdb_MRUF is engaged, complete the following steps:
1. Verify if the pre_service()Message Receiver User Function is attached correctly with
NonStop SOAP 4:
1. Access the EmpAdd operation of the empdb application using the HTML client. Ensure
that you enter the value of the branchnum as 09. This will generate an empty body
response.
2. Access the EmpInfo operation for the same empdb record.
3. On receiving the response, verify if the value of the branchnum is set to 00.
Migrating NonStop SOAP 3 User-exits 75