Placing Correlation Data in the HTTP Header
You can pass correlation data to the third-party system by placing each data item in the HTTP header. This code sample shows the version of the POST method you should use for putting data items in the HTTP header:
oracle.e1.bssvfoundation.http.HTTPPOSTResponse postMessage(oracle.e1. bssvfoundation.http.HTTPPOSTRequest p1, int CorrInHeaderMode)
The parameter CorrInHeaderMode specifies whether correlation data needs to be passed in the HTTP header and the format.
This table defines the constants that you can use for the CorrInHeaderMode parameter:
Constant |
Description |
---|---|
NO_CORRELATION_IN_HEADER |
Tells the method that correlation data is not required in the HTTP header. |
CORRELATION_IN_HEADER_WITH_NON_SECURE_CALLBACK |
Tells the method to put all correlation data in the HTTP header with a nonsecure (http) callback URL. |
CORRELATION_IN_HEADER_WITH_SECURE_CALLBACK |
Tells the method to put all correlation data in the HTTP header with a secure (https) callback URL. |
This code provides an example of how to use these constants:
res = service.postMessage(req, HTTPAdapterService.CORRELATION_IN_ HEADER_WITH_NON_SECURE_CALLBACK);