MessageContext context = MessageContext.getCurrentContext();
SOAPMessage message = context.getMessage();
SOAPHeader header = message.getSOAPHeader();
// header is essentially a DOM 'Element', you can use any of the 'Element's API
// example access...
Element headerElement = header.getElementsByTagName();
....

On 12/15/05, zze-ELSOKHON Tony RD-BIZZ-ISS <[EMAIL PROTECTED]> wrote:

Hi,

 

You can access the classes related to the SOAP request message through the current message context, which you can get through MessageContext's class method: getCurrentContext.

 

For detailed information, please look at the Axis Javadoc related to the classes MessageContext, MessageElement, SOAPHeaderElement…

 

Regards,

 

Tony

 


De : Nathaniel Auvil [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 15 décembre 2005 15:52
À : [email protected]
Objet : accessing SOAP Header values in Service Implementation

 

Can anyone point me to information on how to access a value from the SOAP Header in the Service Implementation?  For example i need to get a value from the soap header in my service method.


Reply via email to