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 Wah Yim <ky...@yahoo.com> on 2007/07/10 18:54:10 UTC

[Axis2] wsdl2java problem with HTTPS

Hello,

I have been having this issue with wsdl2java over HTTPS for a few days now, I have searched through some of the older posts regarding to this topic, but my problem is a little bit different, so hopefully someone can help me with this.

Basically, when I run wsdl2java on a WSDL over HTTP, it works fine.  However, when I run it over HTTPS, some give me "No trusted certificate found" (a common problem based on the archived posts I've seen), but the actual WSDL that I'm interested in always give me "No route to host: connect" error.  I'm able to find a similar WSDL on HTTPS that gives me the same "No route to host: connect" problem:

https://adcenterapi.microsoft.com/v4/Reporting/Reporting.asmx?wsdl

Now, here are a few additional piece of information about my issue:

1) I'm running wsdl2java behind a company firewall, but I have already passed in the environment variables "http.proxyHost" and "http.proxyPort" and this is working based on the results I'm getting with wsdl2java when running against a WSDL over HTTP.

2) The WSDL over HTTPS that are giving me "No route to host: connect" error are all .NET services.

3) I know that these services are working because I'm able to view the WSDL through IE, and the HTML version of the web service works (for the Microsoft Ad Center example shown above, I can type in the URL in IE without the "?wsdl" suffix to access the HTML version of the web service).

Any help is greatly appreciated, thanks!!

-wah

RE: [Axis2] wsdl2java problem with HTTPS

Posted by "Ford, Jennifer M." <JE...@SOUTHERNCO.COM>.
Have you tried adding the lines:
System.setProperty( "java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");

Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );

System.setProperty("javax.net.ssl.trustStore",
path/to/your/java/keystore);  //Path is usually HOME_DIRECTORY/.keystore

You would also need to use the java keytool to add the site's
certificate to the keystore.


________________________________

From: Wah Yim [mailto:ky4h@yahoo.com] 
Sent: Tuesday, July 10, 2007 11:54 AM
To: axis-user@ws.apache.org
Subject: [Axis2] wsdl2java problem with HTTPS


Hello,

I have been having this issue with wsdl2java over HTTPS for a few days
now, I have searched through some of the older posts regarding to this
topic, but my problem is a little bit different, so hopefully someone
can help me with this.

Basically, when I run wsdl2java on a WSDL over HTTP, it works fine.
However, when I run it over HTTPS, some give me "No trusted certificate
found" (a common problem based on the archived posts I've seen), but the
actual WSDL that I'm interested in always give me "No route to host:
connect" error.  I'm able to find a similar WSDL on HTTPS that gives me
the same "No route to host: connect" problem:

https://adcenterapi.microsoft.com/v4/Reporting/Reporting.asmx?wsdl

Now, here are a few additional piece of information about my issue:

1) I'm running wsdl2java behind a company firewall, but I have already
passed in the environment variables "http.proxyHost" and
"http.proxyPort" and this is working based on the results I'm getting
with wsdl2java when running against a WSDL over HTTP.

2) The WSDL over HTTPS that are giving me "No route to host: connect"
error are all .NET services.

3) I know that these services are working because I'm able to view the
WSDL through IE, and the HTML version of the web service works (for the
Microsoft Ad Center example shown above, I can type in the URL in IE
without the "?wsdl" suffix to access the HTML version of the web
service).

Any help is greatly appreciated, thanks!!

-wah