Try OpenEdge Now
skip to main content
Web Services
Creating ABL Clients to Consume OpenEdge SOAP Web Services : Handling SOAP Message Headers in ABL : Creating and managing SOAP message headers : Using a client-created SOAP request header : Request header handler for passing a globally-created header object
 
Request header handler for passing a globally-created header object
This is the SOAP request header handler (ReqHandler) that passes the global SOAP request header created by the client and the Web service for each request:

Request header handler passing a client-created SOAP request header

PROCEDURE ReqHandler: /*1*/
  /* Define procedure parameters */
  DEFINE OUTPUT PARAMETER hHeader       AS HANDLE.
  DEFINE INPUT  PARAMETER cNamespace    AS CHARACTER.
  DEFINE INPUT  PARAMETER cLocalNS      AS CHARACTER.
  DEFINE OUTPUT PARAMETER lDeleteOnDone AS LOGICAL.
  /*2*/
  /* Pass in global header reused for every request */
  hHeader = g_header.
  lDeleteOnDone = FALSE.
END PROCEDURE.
The code in the preceding example:
1. Sends the SOAP request header for the HelloMyWorld request (and any subsequent request).
2. Passes the global SOAP header the request header output parameter and ensures that it is not deleted until the client mainline has finished with it.