axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eran Chinthaka <chinth...@opensource.lk>
Subject Re: [Axis2] WSDL2Java with HTTPS
Date Sat, 12 May 2007 05:24:50 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A small test. Did u try using 127.0.0.1 instead of localhost. Seems jdk
https client has problems with the term localhost.

Gilles Delaby wrote:
> 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
> <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
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGRU+ijON2uBzUhh8RAmOTAKCaMjRfaQ3yRF1PMdNrx0ZbV8lMRQCgjHuh
EJAKuoul4FTXPxOAcuWd2Qo=
=VFYV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message