axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chiranjib (JIRA)" <>
Subject [jira] Reopened: (AXIS2-4829) need to put header information in skeleton response
Date Mon, 27 Sep 2010 12:15:33 GMT


chiranjib reopened AXIS2-4829:

My problem is not to add header information into problem was totaly different.

I am generating a skeleton using apache axis 2.
but one of my requirement is to add header information in the reply message.
I got a post of yours in
which according to you has worked fine.
But can you please little bit elaborate and please send me the exact code and implementation
that has worked.
My requirement is to only get the header inside the reply envelope.
<soap:Header xmlns="">


> need to put header information in skeleton response
> ---------------------------------------------------
>                 Key: AXIS2-4829
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: samples
>         Environment: windows
>            Reporter: chiranjib
>            Assignee: Samisa Abeysinghe
>            Priority: Trivial
> Hi i wanted to return a header attached with the reply from skeleton.
> <soap:Envelope xmlns:soap="">
>    <soap:Header xmlns="">
>       <SessionId>00TCPK3BL6|1</SessionId>
>    </soap:Header>
>    <soap:Body>
>       <Security_AuthenticateReply xmlns="">
>          <processStatus>
>             <statusCode>P</statusCode>
>          </processStatus>
>       </Security_AuthenticateReply>
>    </soap:Body>
> </soap:Envelope>
> But in skeleton code when i am putting the code:
>  SOAPEnvelope envelope = MessageContext.getCurrentMessageContext().getEnvelope();
>                 	 SOAPHeader header = envelope.getHeader();
>                 	 header.setAttribute("SessionId", "01OUPK40YW|1");
>                 	 SecurityAuthenticateReplyDocument retDoc = SecurityAuthenticateReplyDocument.Factory.newInstance();
>                 	 retDoc.addNewSecurityAuthenticateReply();
> its saying a error that it cannot convert from SOAPHeader to SOAPHeader
> I am able to generate the soap body part........but not the header part.
> can you please let me know the procedure to do it.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message