answer from John Kaputin, seems to be something axis should handle...
Peter, I assume your wsdl <types> element contains a something like a schema import with schemaLocation="http://schemas.xmlsoap.org/soap/encoding/". WSDL4J version 1.5 introduced support for navigating the tree of nested schemas, which involves resolving any schema URLs. If a schema url cannot be resolved an exception is raised. I believe Axis 1.1 used the earlier version, WSDL4J 1.4, which did not have this support. You should post this problem on the Axis mailing list to see if/how this situation is handled by Axis 1.2.1 (see http://ws.apache.org/axis/mail.html ). A possible approach might be to add something to the WSDL4J API to allow an application such as Axis to configure WSDL4J to ignore specified URLs when resolving schemas (e.g. to ignore the standard schema URLs like http://schemas.xmlsoap.org/soap/encoding). A maintenance release of the WSDL4J API (defined by JSR110) is under consideration, so now would be the right time to consider new function that changes the WSDL4J API. regards, John Kaputin IBM. -----Ursprüngliche Nachricht----- Von: Peter Koch Gesendet: Dienstag, 23. August 2005 15:55 An: '[email protected]'; '[EMAIL PROTECTED]' Betreff: AW: Wsdl2Java and no Internet-Connection (with 1.1 ok, with 1.2.1 exception): An error occurred trying to resolve schema referenced at... thanks dims, I'll ask the WSDL4J-guys. br, peter -----Ursprüngliche Nachricht----- Von: Davanum Srinivas [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. August 2005 15:48 An: [email protected] Betreff: Re: Wsdl2Java and no Internet-Connection (with 1.1 ok, with 1.2.1 exception): An error occurred trying to resolve schema referenced at... Could you please ask here (http://groups.yahoo.com/group/jsr110-eg-disc/)? thanks, dims On 8/23/05, Peter Koch <[EMAIL PROTECTED]> wrote: > > > hi folks, > > I migrated from axis 1.1 to axis 1.2.1. > > we're using WSDL2Java with a wsdl file on the local filesystem. > now, with 1.2.1 we get the following error, if the local > machine does not have access to the internet: > > WSDLException (at > /wsdl:definitions/wsdl:types/xsd:schema): > faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced > at 'http://schemas.xmlsoap.org/soap/encoding/', relative to > 'file:C:\temp\BUG-Problem mit any und > WS\Z_IVY_ISUMETER_DOCUMENT_CHECK.wsdl'.: No route to host: > connect: java.net.NoRouteToHostException: No route to host: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) > at > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > at java.net.Socket.connect(Socket.java:452) > at java.net.Socket.connect(Socket.java:402) > at sun.net.NetworkClient.doConnect(NetworkClient.java:139) > at > sun.net.www.http.HttpClient.openServer(HttpClient.java:402) > at > sun.net.www.http.HttpClient.openServer(HttpClient.java:618) > at sun.net.www.http.HttpClient.<init>(HttpClient.java:306) > at sun.net.www.http.HttpClient.<init>(HttpClient.java:267) > at sun.net.www.http.HttpClient.New(HttpClient.java:339) > at sun.net.www.http.HttpClient.New(HttpClient.java:320) > at sun.net.www.http.HttpClient.New(HttpClient.java:315) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521) > at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626) > at > java.net.URLConnection.getContent(URLConnection.java:585) > at java.net.URL.getContent(URL.java:927) > at > com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown > Source) > at > com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) > at java.lang.Thread.run(Thread.java:534) > > at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown > Source) > at > com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown > Source) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) > at java.lang.Thread.run(Thread.java:534) > > > Seems to be a problem in wsdl4j looking up > http://schemas.xmlsoap.org/soap/encoding/. > With axis 1.1, we don't have this problem!!! > > > any ideas ? > > best regards, > peter > > -- Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform
