Re: unable to do an https
Daniel Zhang <[email protected]>
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 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 [email protected]. > >Prudential Equity Group, Member SIPC, >One New York Plaza, New York, NY 10292 > > >