On Tue, 2003-09-23 at 16:09, Henry lu wrote: > Is there any cliewnt code for SSL web services? What we'd like to know how > to send user name, password, truststore, and trustStorePassword to server.
The following code inside a client ought to do it: System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); System.setProperty("javax.net.ssl.trustStore", "full path to truststore"); System.setProperty("javax.net.ssl.trustStorePassword", "trustStorePassword"); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new URL("endpoint")); call.setProperty(Call.USERNAME_PROPERTY, "username"); call.setProperty(Call.PASSWORD_PROPERTY, "password");