tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreessen <>
Subject SOAP HEADERS with OpenEJB
Date Wed, 18 Nov 2009 17:45:36 GMT

Hi there,

Would you be so kind to help me with a problem I met.. I am currently using
Openejb to test my app during maven build and I need to send xml token in
SOAP Headers so I put it there in this way:

WSBindingProvider wsPort = (WSBindingProvider) provider;
QName("", "token"),token));

Initially I tried to get it from WebServiceContext injected into my service
(@Resource WebServiceContext wctx:

String test =

it did not help... then I created ejb handler: public class MyHandler
implements SOAPHandler<SOAPMessageContext> and I tried to extract headers
from envelope as described there:

public boolean handleMessage(SOAPMessageContext context) {
   SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
   LOG.log(Level.INFO, "Handler MessageContext SOAPHeader: " +
header.toString(), "");

..but it just empty.. - so does SOAP envelope...

Could you give me a hint what I am doing wrong and is it possible to do it

Appreciate your help, thanks!
View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message