If you are using Restful web services in Peoplesoft, you can set your custom header in response message. Below piece of code helps to set header for response message.
In addition you need to make sure below change to service operation routing tab to read the header from request message IBInfo class and populate the same in response message.
There is a bug with People toolset (8.54.12 or below), for incoming GET request has the capability of capturing the header details in IBInfo class where for POST and PUT, the details are not captured.
As a workaround, you need to modify the RestListeningConnector.class file to capture the header details for POST and PUT as well.
Otherwise ORACLE has already included this fix with next patch (8.54.21). Hope this helps!
Thanks,
Manoranjan
In addition you need to make sure below change to service operation routing tab to read the header from request message IBInfo class and populate the same in response message.
There is a bug with People toolset (8.54.12 or below), for incoming GET request has the capability of capturing the header details in IBInfo class where for POST and PUT, the details are not captured.
As a workaround, you need to modify the RestListeningConnector.class file to capture the header details for POST and PUT as well.
Otherwise ORACLE has already included this fix with next patch (8.54.21). Hope this helps!
Thanks,
Manoranjan