cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding Soap Header using Axis(SOAP) Receiver

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Experts,

I am having a problem in including the SOAP Header in the XML using the SOAP Axis Receiver Adapter. Well I am not sure on how to place this structure in the header:


<SoapHeader>
    <Header1>
        <child1>
        <child2>
    </Header1>
    <Header2>
        <child1>
        <child2>
    </Header2>
</SoapHeader

I have already tried overriding the SOAP Header via Java Mapping but it is not working when I send it to the third-party. I believe this header should be directly encoded using the axis module, but I can only find examples for simple headers and not nested ones...

Please help.

Edited by: Mark Dihiansan on Sep 7, 2010 5:15 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you simply place your header template in the handler configuration. If you need to set some values of the header dynamically, you can pass each value in the dynamic configuration header. The axis handler will fill the header with the supplied values.

The Axis Note 1039369 describes a few header insertion examples that you should look at.

regards, yza

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Yza,

Thanks for your response. I have decided to use the PLAIN_HTTP_ADAPTER to connect to the Axis Server. It is now working.

Regards,

Mark

Edited by: Mark Dihiansan on Sep 13, 2010 3:54 PM