NonStop SOAP User's Manual
Customizing the SOAP Server
NonStop SOAP User’s Manual—520501-012
8-40
Usage Guidelines
Usage Guidelines
Using the classes discussed in User-Exit Classes on page 8-4, this methodology can
be used to access SOAP headers.
•
In any user-exit method, for example,
•
pre_process
•
pre_service
•
pre_marshall
•
pre_marshall_header or
•
post_process
call the ServiceEnv's getReqHeaderMgr( ) to get access to the
UESoapHeaderManager object.
•
The ServiceEnv object can be accessed using the SoapUEHandler class'
getServiceEnv() method.
•
Using the UESoapHeaderManager object obtain a reference to the non-NonStop
SOAP defined SOAP headers (represented by the UESoapHeader class) present
in the request SOAP message.
•
Access various parameters of the UESoapHeader and use it to fulfill the special
needs of the program.
Examples
Example 8-4 on page 8-41 and Example 8-5 on page 8-42 show how to retrieve SOAP
headers in the request SOAP message and set new SOAP headers for the response
SOAP message.