Web service handler exit

Similar to the HTTP handler, the web service handler also provides an exit that can be used to intercept and modify the SOAP request and response. The WSEXIT property of the handler endpoint can be set to a value like script:script_name to register a scripted exit for the web service endpoint. The following callback functions are supported by a script.

Table 1. Script web service handler exit methods
Script web service handler exit method Purpose
responseOk(resp) Analyzes a good response from the external web service. The psdi.iface.router.ScriptSOAPResp object implements the response object. This method can be used to either do some processing with the response or set an error.
responseError(resp) Analyzes and takes action, if needed, for an error response from the external web service. The psdi.iface.router.ScriptSOAPResp object implements the response object.
setupHeaders(req) Uses request SOAP headers for the SOAP call. The psdi.iface.router.ScriptSOAPReq object implements the request object.