ibm-integration-busextended-sqlibm-app-connect

How to remove default HTTP Headers from a SOAPReply node?


Can I remove default HTTP headers from a SOAPReply node?

I tried to Overwrite it in ESQL and tried removing it using HTTPHeader node, I succeded in creating new HTTP Headers but failed to remove the default ones (for example "Server: IBM App Connect Enterprise").

The weird thing is that the same code works with HTTPReply node but not with SOAPReply node. Any suggestions?

My ESQL code:

SET OutputRoot.HTTPReplyHeader."Server" = 'MyDummyValue';

Output of HTTPReply node:

HTTP/1.1 200 OK
Content-Type: text/xml
Server: MyDummyValue

Output of SOAPReply node:

HTTP/1.1 200 OK
Content-Type: text/xml
Server: IBM App Connect Enterprise

Solution

  • I tried to override it in the Integration Server YAML file (server.conf.yaml) and it worked as expected for both HTTP and SOAP flows.

    The value you need to override is:

    /ResourceManagers/HTTP[S]Connector/ServerName