Diesel
Diesel

Reputation: 11

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

Upvotes: 0

Views: 363

Answers (3)

Diesel
Diesel

Reputation: 11

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

Upvotes: 1

andreasmartens
andreasmartens

Reputation: 96

The Server header is in an internal list of headers that we don't allow you to set. I suspect it is to ensure that receiving clients know how to process the SOAP messages from ACE, we might have had a situation where it was overwritten and a client application failed, and it was added to the list.

Is there a particular reason why you need to modify the Server header?

Upvotes: 0

kimbert
kimbert

Reputation: 2422

I checked this page: https://www.ibm.com/docs/en/app-connect/11.0.0?topic=node-local-environment-overrides-soapreply and I cannot see any local environment override that would suppress the default headers in a SOAPReply node.

Upvotes: 0

Related Questions