Hi,
I want to access some SOAP Header values inside the WebService when it is called.
(I know I can use server side handlers fro this, but I do not want to use it as I want the header values for some application inside the web service)
So I use the injection using WebServiceContext, and then get the SOAPMessageCotnext by
SOAPMessageContext soapMsgContext = (SOAPMessageContext) context.getMessageContext();
SOAPEnvelope envelope = soapMessageContext.getMessage().getSOAPPart() .getEnvelope(); SOAPHeader soapHeader = envelope.getHeader(); // Extract All header elements. Iterator headerElements = soapHeader.extractAllHeaderElements();
Sorry for digging up this old thread, but did you ever find the problem with this? What version and variant of jbossws were you using?