You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Henry lu <ya...@hotmail.com> on 2003/09/23 22:09:32 UTC
SSL web services
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.
_________________________________________________________________
Help protect your PC. Get a FREE computer virus scan online from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Re: SSL web services
Posted by Andrew Smith <as...@smithdot.com>.
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");