Skip to Content
Author's profile photo Former Member

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.

/wp-content/uploads/2012/06/adapter_recv_axis_removal1_108193.png

Then on the module configuration make sure you insert the following values for the “remover” module key.

/wp-content/uploads/2012/06/adapter_recv_axis_removal2_108239.png

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.

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      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.

      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.

      Thank you.

      Naresh

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      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