Request header handler for reusing a header
- Last Updated: June 1, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
This is the SOAP request header handler (ReqHandler) that reuses the
initial SOAP response header to pass the AccessID value between the client
and Web service:
Request header handler reusing a saved SOAP response header
|
The code in the preceding example:
-
Sends the SOAP request header for the
HelloWorldrequest (and any request run after runningOpenAccess) -
Tests if the global header handle (
g_header) references a valid object, and:-
If it does not reference an object, the request handler must be running as part of
the initial call to
OpenAccessand sets the output parameters to ensure that no initial SOAP request header is sent. -
If it does reference an object, the handler passes the global header object as
output using the request header parameter (
hHeader) and ensures that the object is not deleted (saving it for use in any further request).
-
If it does not reference an object, the request handler must be running as part of
the initial call to