On Monday, April 02, 2012 02:45:31 AM Mika Tapanainen wrote: > Hello, > > My CustomUsernameTokenValidator (extends > org.apache.ws.security.validate.UsernameTokenValidator) does UsernameToken > authentication. After that the MySOAPHandler (extends > javax.xml.ws.handler.soap.SOAPHandler) is executed. > > How to pass the information (the custom session class) from the > CustomUsernameTokenValidator to the MySOAPHandler? Is there for example > any relationship between org.apache.ws.security.handler.RequestData and > javax.xml.ws.handler.soap.SOAPMessageContext? > > The RequestData has the method getMsgContext, which return > java.lang.Object and it seems that it has nothing to do with the > javax.xml.ws.handler.MessageContext??
The RequestData.getMessagContext() would be an instance of CXF's Message class. You can set properties on there all you want. Then, the SOAPMessageContext passed to the handler is a wrapper around the same Message. You should be able to retrieve your value via the normal get methods. Dan > > BR, > > Mika > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/The-common-context-between-UsernameTokenV > alidator-and-SOAPHandler-tp5611957p5611957.html Sent from the cxf-user > mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
