axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nandika Jayawardana <jayaw...@gmail.com>
Subject Re: Preserve SOAP header received in SOAP request
Date Sat, 12 Mar 2011 14:43:51 GMT
If you are doing this thing in the service, it  would not work, since in the
message receiver, the soap envelope you set will get replaced. Hence either
you have to write a message receiver or a module.

Regards
Nandika

On Thu, Mar 10, 2011 at 12:09 PM, Tejas Sumant <tejas.sumant@gmail.com>wrote:

> 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
> module.
>
> Thanks,
> Tejas
>
>
>
> On Thu, Mar 10, 2011 at 11:54 AM, Nandika Jayawardana <jayawark@gmail.com>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 <tejas.sumant@gmail.com>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
>

Mime
View raw message