Requirement to add endpointURL in http header of Connect SOAP before invoking generic gateway service
I have requirement to add endpointURL in http header of Connect SOAP. How to do this?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Currently there is no OOTB way to add HTTP headers as part of SOAP connector execution.
Though it is not the recommended approach , customer may override invokeaxis2 to achieve this
The following code snipped would do the job
Options options = new Options();
java.util.List list = new java.util.ArrayList();
com.pega.apache.commons.httpclient.Header header = new com.pega.apache.commons.httpclient.Header();
//set the header key and value
Keep up to date on this post and subscribe to comments