Hello all,

I'm currently facing the following problem : the wsdl2java does not work
when the wsdl is located on an https server.

Here below the way I'm calling the tool :
---------------------------------------------------------
set JAVA_HOME=C:\jdk1.5.0_11
set JAVA_OPTS="-Djavax.net.ssl.trustStore=c:\docume~1\gde\old.keystore"

wsdl2java -uri https://localhost:8443/ws/services/ImportService?wsdl -p
com.test.services.client -d adb -s

And here the error :
----------------------------
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
       at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
.<init>(CodeGenerat
ionEngine.java:114)
       at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
       at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL:
IO E
rror: java.io.IOException: HTTPS hostname wrong:  should be <localhost>
       at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:273)
       at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
.<init>(CodeGenerat
ionEngine.java:97)
       ... 2 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be <localhost>
       at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(
HttpsClient.j
ava:490)
       at sun.net.www.protocol.https.HttpsClient.afterConnect(
HttpsClient.java:
415)
       at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:170)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLCon
nection.java:938)
       at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream
(Http
sURLConnectionImpl.java:234)
       at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
So
urce)
       at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion
(Unknown
Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
       at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
       at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:236)
       at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:219)
       at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
CodeGenerationEngine.java:262)
       ... 3 more


The wsdl looks to be correct as it works with http.
Maybe something wrong with the key ?

Thanks for help !
Gilles

Reply via email to