Hi,
thanks for your answers. I have done fast and dirty solution
| // Generate the SOAP xml
| StringWriter messageString = new StringWriter();
| List<Handler> handlerChain =
bindingProvider.getBinding().getHandlerChain();
| handlerChain.add(new
org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient());
| handlerChain.add(new TestHandler(messageString));
| bindingProvider.getBinding().setHandlerChain(handlerChain);
| UserType userType = new UserType();
| userType.setMsg(TEST_MESSAGE);
| UserType retObj = hello.echoUserType(userType);
|
| // Actually call the WS
| bindingProvider.getBinding().setHandlerChain(new
ArrayList<Handler>());
| ((StubExt)
hello).setSecurityConfig("jboss-wsse-client.xml");
| ((StubExt) hello).setConfigName("Standard WSSecurity
Client");
| retObj = hello.echoUserType(userType);
|
This approach worked albeit it is really crude
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113817#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...