ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chiranjib (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4829) need to put header information in skeleton response
Date Thu, 23 Sep 2010 13:23:32 GMT
need to put header information in skeleton response
---------------------------------------------------

                 Key: AXIS2-4829
                 URL: https://issues.apache.org/jira/browse/AXIS2-4829
             Project: Axis2
          Issue Type: Bug
          Components: samples
         Environment: windows
            Reporter: chiranjib
            Priority: Blocker


Hi i wanted to return a header attached with the reply from skeleton.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header xmlns="http://webservices.amadeus.com/definitions">
      <SessionId>00TCPK3BL6|1</SessionId>
   </soap:Header>
   <soap:Body>
      <Security_AuthenticateReply xmlns="http://xml.amadeus.com/VLSSLR_06_1_1A">
         <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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message