SOAP AXIS Receiver Communication Channel – How to remove XI headers from payload
In this blog I will explain how to configure a communication channel template using the com.sap.aii.axis.soap.HeaderRemovalHandler, which is an Axis
handler used to remove (XI) specific headers from the message payload before passing it to the transport handler. In this case I use it to remove all XI headers from the payload before I send the message out to the receiver and after I have read the dynamic configuration.
You could of-course prevent passing the headers to the adapter engine by disabling the keep-headers option in the adapter configuration, however, then you will not be able to read the XIDynamicConfiguration headers anymore.
The assumption is that you have successfully configured/deployed the Axis framework on SAP PI.
First create a template and add the entries as shown in the screenshot below.
Then on the module configuration make sure you insert the following values for the “remover” module key.
Save and activate the template and apply it to your receiver SOAP Axis Communication Channel at configuration time. You can also opt for doing this configuration straight from the Integration Directory but then you will have to re-enter the same parameters every time you have to use the handler.
HI Roberto,
I am using AXIS adapter for my receiver communication channel, and I have Disabled "Keep XI headers" option in adapter configuration. But still the response message generates <soapenv:Envelope> and <soapenv:Body>. tags.
I think my response message mapping is failing due to these two headers.
Can you please tell me what should I configure in module configuration to specifically delete these two tags.
I am new to PI so could not understand the XI dynamic configuration which you mentioned in this statement , Can you please elaborate on that.
Thank you.
Naresh
Hi Naresh,
Please take a look of this blog and I am sure you will then understand more about using dynamic configuration in combination with Axis framework in PI. http://scn.sap.com/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
Thanks,
Roberto