[jboss-user] [JBossWS] - Re: SSL Client truststore

zurchman do-not-reply at jboss.com
Wed Apr 15 20:45:25 EDT 2009

Here's what it took to run a JAX-WS RI SSL client with the JBossWS 3.0.1-native-2.0.4.GA delivered with jbossesb-server-4.5.GA.

The post that made the difference was the one by Alessio at the end of this topic: 


I don't recommend doing it this way, but all the artifacts were built with the RI.  The only class compiled against the JBoss classes was the service mainline.

1) Set the truststore in the javax.net.ssl.trustStore property

2) Include org.jboss.ws.core.StubExt

3) Set the "Config" name to "Standard WSSecurity Client"

  | 	System.setProperty("javax.net.ssl.trustStore", 
  |   					"path-to-my-truststore");
  | 	BindingProvider bp = (BindingProvider) default_webservice;
  | 	Map<String, Object> context = bp.getRequestContext();
  | 	context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
  |           endpoint);
  | 	System.out.println("new endpoint: " + endpoint);
  | 	((StubExt)default_webservice).setConfigName("Standard WSSecurity Client");

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225769#4225769

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

More information about the jboss-user mailing list