[jbossws-dev] [Design of JBoss Web Services] - Re: Contents of the SOAP request

jpechane@redhat.com do-not-reply at jboss.com
Tue Dec 18 10:07:08 EST 2007


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#4113817

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113817



More information about the jbossws-dev mailing list