axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tejas Sumant <>
Subject Re: Preserve SOAP header received in SOAP request
Date Thu, 10 Mar 2011 06:39:44 GMT
I saw an API axis2_msg_ctx_set_response_soap_envelope() which I expect to
set response envelope.
I created new envelope and the created header with new envelope as parent.
Then created header block in header with some name.
And I set this envelope as response envelope using the above mentioned API
in _invoke callback. However the newly created header block doesnt show up
in the response.

Is this method incorrect?

Having described this procedure, I would explore how to implement the


On Thu, Mar 10, 2011 at 11:54 AM, Nandika Jayawardana <>wrote:

> Since you want to access soap headers, you will need to implement either a
> message receiver, a handler as a module. You can implement a module and
> engage it to your service.
> The module will pickup the incoming header and insert it to the outgoing
> soap message.
> Regards
> Nandika
> On Tue, Mar 8, 2011 at 5:34 AM, Tejas Sumant <>wrote:
>> Hello,
>> I have written service using Axis2c, and I get SOAP header as part of SOAP
>> request. I need to resend the same SOAP header unmodified to client in
>> response.
>> I formed a response in _invoke callback and sent to client. This response
>> contains only SOAP body. How can I preserve the header received and send it
>> back to client?
>> Thanks.
>> --
>> Tejas Sumant

Tejas Sumant

View raw message