Thank you very much, Mr. Smith! It works! Now I have another question for you.

How to deploy a web services to a ssl server? Here is what i did:

C:\java_dev\web_services\ex1\srv>java org.apache.axis.client.AdminClient -p8443
deploy.wsdd
Processing file deploy.wsdd
Exception:: java.lang.NumberFormatException: For input string: ""


do you know how to fix?


From: Andrew Smith <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: SSL web services
Date: Wed, 24 Sep 2003 12:56:07 -0400

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");


_________________________________________________________________
High-speed Internet access as low as $29.95/month (depending on the local service providers in your area). Click here. https://broadband.msn.com




Reply via email to