NonStop SOAP User's Manual

Customizing the SOAP Server
NonStop SOAP User’s Manual520501-012
8-29
Usage Guidelines
Usage Guidelines
Using the classes discussed in User-Exit Classes on page 8-4, this methodology can
be used to access attachments.
In any user-exit method, for example,
pre_process
pre_service
pre_marshall
pre_marshall_header or
post_process
call the ServiceEnv's getReqAttMgr( ) to get access to the
AttachmentManager object.
The ServiceEnv object can be accessed using the getServiceEnv() method in
the SoapUEHandler class.
Using the AttachmentManager object query the attachments (represented by the
Attachment class) present in the request SOAP message. Get the content of the
attachment and use it to fulfill the special needs of the program.
Examples
Example 8-1 on page 8-30 shows a request SOAP message and Example 8-2 on
page 8-31 shows a response SOAP message both containing attachments.