How to configure WSS4J for Dispatch Client reference?

Fri, 14 Nov 2008 11:30:04 -0800

Hi all,

How to configure WSS4J for Dispatch Client reference? 

I have a client which get a dispatch reference as follows:


QName serviceName = new QName(ClientConstants.SERVICE_NAMESPACE,                
ClientConstants.SERVICE_NAME);

Service s = Service.create(new
URL(ClientApplication.URL_POINTER),serviceName);

JAXBContext jaxbContext = JAXBContext.newInstance(
        ClientConstants.SCHEMA_CONTEXT_PATH);
                            
QName portName = new QName(ClientConstants.SERVICE_NAMESPACE, 
        ClientConstants.SERVICE_NAME_PORT);
                            
Dispatch dispatch = s.createDispatch(portName,
        jaxbContext,
        Service.Mode.PAYLOAD);

Now my server requireds WSS4J headers. How can i programetically configure
dispatch client reference to send messages with WSS4J headers?

Please help
-- 
View this message in context: 
http://www.nabble.com/How-to-configure-WSS4J-for-Dispatch%3CObject%3E-Client-reference--tp20506950p20506950.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to