I haven't tried this, but I imagine you would need to install JSSE. Put the
JSSE jar files on your classpath, or drop them in the jre/lib/ext folder of
your jdk.
Also you would need to do the following at the very least:

1) Insert the following line in your jre/lib/security/java.security file:
security.provider.n=com.sun.net.ssl.internal.ssl.Provider

where n is any integer (typically the next available integer)

2) You would need to specify the protocol handler for the https protocol
via the system property, java.protocol.handler.pkgs. For JSSE, for eg you
would do this as:
java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
org.apache.axis.wsdl.WSDL2Java https://localhost:7002/wsdl/test.wsdl

You can find more information at Sun's JSSE web-site:

http://java.sun.com/products/jsse/

-Junaid



                                                                                       
                                                  
                      "Sarkar, Sudipta"                                                
                                                  
                      <Sudipta.Sarkar@wor        To:       <[EMAIL PROTECTED]>  
                                                  
                      kscape.com>                cc:                                   
                                                  
                                                 Subject:  WSDL2Java on https          
                                                  
                      10/01/2002 04:12 PM                                              
                                                  
                      Please respond to                                                
                                                  
                      axis-user                                                        
                                                  
                                                                                       
                                                  
                                                                                       
                                                  




Hi,
   I am using Axis 1.0 RC1. I tried to run WSDL2Java using
  java org.apache.axis.wsdl.WSDL2Java https://localhost:7002/wsdl/test.wsdl
. it gives the exception. It does not find the wsdl although its present
and I can see it thru the browser.
WSDL2Java works fine if I access it over http rather that https (
http://localhost:7001/wsdl/test.wsdl)
I believe the problem is because of using SSL. Is there any
parameters/setting I need to modify to make WSDL2Java work over https.

The exception is as follows:

org.xml.sax.SAXException: Fatal Error: URI=null Line=0: File "
https://localhost:
7002/wsdl/test.wsdl" not found.
        at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils
.java:556)
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1225
)
        at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocume
nt(DefaultEntityHandler.java:499)
        at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:3
12)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:195)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:304)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:329)
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:347)
        at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:247)
        at java.lang.Thread.run(Thread.java:484)
java.io.IOException: Unable to retrieve WSDL document:
https://localhost:7002/wsdl/test.wsdl
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:349)
        at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:247)
        at java.lang.Thread.run(Thread.java:484)

Thanks
Sudipta Sarkar






Reply via email to