You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by de...@prusec.com on 2004/04/06 16:11:58 UTC

unable to do an https

Hi,

      I got the following error when trying to connect to a soap server
running on https:

            java.net.MalformedURLException: unknown protocol: https

      Here is the code smipped, and I am using java 1.3 and jsse 1.0.3_02
from SUN:

            System.setProperty("javax.net.ssl.trustStore",
"myCertificate.cer");
            System.setProperty("java.protocal.handler.pkgs",
"com.sun.net.ssl.internal.www.protocal");
            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider
());

            service = locator.getSessionService(new URL
("https://someserver:443/services/SessionService"));

      By the way, everything worked fine if I connect to http.

      Any help would be greatly appreciated.

      Thanks and regards.

--Derek



*************************************************************************************************


This e-mail is being sent to you for your information or at
your request. The information is not warranted as to
completeness or accuracy, nor does it serve as an official
record of your account. Your official Trade Confirmation
and/or Client Account Statement are the official records
of your account. Further, since the confidentiality of
Internet e-mail cannot be guaranteed, please do not include
private or confidential information (passwords, account numbers,
social security numbers, etc.), or instructions requiring your
authorization (orders, address changes, funds transfers, etc.)
in your e-mail communications to us. For additional important
information about privacy and Internet terms and conditions,
please visit us at (http://www.prudential.com). If you do
not wish to receive any further e-mail from us, please
send an e-mail to do_not_email@prudential.com.

Prudential Equity Group, Member SIPC,
One New York Plaza, New York, NY 10292



Re: unable to do an https

Posted by Daniel Zhang <zh...@clinicaltools.com>.
Did you configure SSL for both ends? You need to configure client SSL 
and import server certificate into its keystore file, vice versa.
See details at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

-Daniel

derek_liu@prusec.com wrote:

>Hi,
>
>      I got the following error when trying to connect to a soap server
>running on https:
>
>            java.net.MalformedURLException: unknown protocol: https
>
>      Here is the code smipped, and I am using java 1.3 and jsse 1.0.3_02
>from SUN:
>
>            System.setProperty("javax.net.ssl.trustStore",
>"myCertificate.cer");
>            System.setProperty("java.protocal.handler.pkgs",
>"com.sun.net.ssl.internal.www.protocal");
>            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider
>());
>
>            service = locator.getSessionService(new URL
>("https://someserver:443/services/SessionService"));
>
>      By the way, everything worked fine if I connect to http.
>
>      Any help would be greatly appreciated.
>
>      Thanks and regards.
>
>--Derek
>
>
>
>*************************************************************************************************
>
>
>This e-mail is being sent to you for your information or at
>your request. The information is not warranted as to
>completeness or accuracy, nor does it serve as an official
>record of your account. Your official Trade Confirmation
>and/or Client Account Statement are the official records
>of your account. Further, since the confidentiality of
>Internet e-mail cannot be guaranteed, please do not include
>private or confidential information (passwords, account numbers,
>social security numbers, etc.), or instructions requiring your
>authorization (orders, address changes, funds transfers, etc.)
>in your e-mail communications to us. For additional important
>information about privacy and Internet terms and conditions,
>please visit us at (http://www.prudential.com). If you do
>not wish to receive any further e-mail from us, please
>send an e-mail to do_not_email@prudential.com.
>
>Prudential Equity Group, Member SIPC,
>One New York Plaza, New York, NY 10292
>
>  
>