WSDL2Java SSL problem

Hi,

I am trying to run WSDL2Java on an https URL and get the following error

java.io.IOException: HTTPS hostname wrong: should be <ip address>

I have added the certificate to the keystore and have checked that the URL and cn of the certificate match but I still get this error. When I turn SSL debug on I can see that the certificate is found and the client and server handshake is performed but then the client disconnects for some reason with the error.

Can anyone help please.?

[525 byte] By [bmcganna] at [2007-10-2 13:48:52]
# 1
Sorry, I forgot to mention that I am using the 1.4 JDK and axis 1.3.
bmcganna at 2007-7-13 11:48:20 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2

Any resolution ? I'm also facing a similar issue.

[Loaded sun.net.www.protocol.http.NTLMAuthentication from /apps/opt/jdk142_05/jre/lib/rt.jar]

[Loaded sun.net.www.protocol.http.NTLMAuthentication$1 from /apps/opt/jdk142_05/jre/lib/rt.jar]

[Loaded sun.security.provider.MD5 from /apps/opt/jdk142_05/jre/lib/rt.jar]

[Loaded sun.reflect.GeneratedConstructorAccessor2]

[Loaded sun.reflect.GeneratedConstructorAccessor3]

[Loaded java.net.ProtocolException from /apps/opt/jdk142_05/jre/lib/rt.jar]

[Loaded org.apache.axis.utils.NetworkUtils]

[Loaded java.net.UnknownHostException from /apps/opt/jdk142_05/jre/lib/rt.jar]

[Loaded javax.xml.rpc.soap.SOAPFaultException]

Excep findAddressHelper: java.io.IOException

This occurs when i try to read from a connection.

InputStream in = ((HttpURLConnection) conn).getErrorStream();

File: Both SimpleHTTPSender.java AND CommonsHTTPSender throws the same exception.

bharath1947a at 2007-7-13 11:48:20 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3
Hi,I got around the issue by saving the wsdl file locally and running WSDL2Java on it locally. The stubs created work fine.
bmcganna at 2007-7-13 11:48:20 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...