This looks similar to perhaps, these threads: http://cxf.547215.n5.nabble.com/WSDL-Service-Creation-Exception-td5711590.html#a5711615
http://cxf.547215.n5.nabble.com/WSDLException-faultCode-PARSER-ERROR-Connection-reset-td5711085.html#a5711241 On Thu, Jul 26, 2012 at 12:44 PM, Christoph Emmersberger < [email protected]> wrote: > Hi, > > 1) can you please download all references schema files and locate put them > locally on your disk? > > 2) Can you also remove the existing server references to local references > > Hope this works, if not, please run a validation on all your artifacts. > > Many greets, > > Christoph > > On Jul 26, 2012, at 5:26 PM, Heiake2 wrote: > > > Hi all, > > > > I am trying to create a web service client by generating source code > from a > > WSDL file. > > To accomplish that, I am using CXF-2.6.1 ... but unfortunately it´s not > > possible for me to generate the source code because of some exceptions > > during this process. > > > > I received the WSDL file from a customer and already added the statement: > > <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" > > schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"></s:import> > > > > because the file was highlighted with some errors in Eclipse. > > > > Can someone pls. help me? > > > > Attached is the WSDL file and following the exceptions: > > > > > > Loading FrontEnd jaxws ... > > Loading DataBinding jaxb ... > > wsdl2java -client -d D:\Workspace_EE\girointerface2\.cxftmp/src -classdir > > D:\Workspace_EE\girointerface2\build\classes -p > > > http://www.giro.ca/OperationSubscriptionService2009=ca.giro.operationsubscriptionservice2009 > > -impl -validate -exsh false -dns true -dex true -wsdlLocation > > http://10.1.3.12:8008/OperationSubscriptionService2009?wsdl -verbose > > -defaultValues -fe jaxws -db jaxb -wv 1.1 > > > file:/D:/Workspace_EE/girointerface2/OperationSubscriptionService2009.wsdl > > wsdl2java - Apache CXF 2.6.1 > > > > > > WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to > create > > wsdl definition from : > > > file:/D:/Workspace_EE/girointerface2/OperationSubscriptionService2009.wsdl > > Caused by : WSDLException (at /wsdl:definitions/wsdl:types/s:schema): > > faultCode=PARSER_ERROR: Problem parsing > > 'http://schemas.xmlsoap.org/soap/encoding/'.: java.net.ConnectException: > > Connection refused: connect > > > > org.apache.cxf.tools.common.ToolException: > > org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl > definition > > from : > > > file:/D:/Workspace_EE/girointerface2/OperationSubscriptionService2009.wsdl > > Caused by : WSDLException (at /wsdl:definitions/wsdl:types/s:schema): > > faultCode=PARSER_ERROR: Problem parsing > > 'http://schemas.xmlsoap.org/soap/encoding/'.: java.net.ConnectException: > > Connection refused: connect > > at > > > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:294) > > at > > > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) > > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) > > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) > > at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184) > > Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create > wsdl > > definition from : > > > file:/D:/Workspace_EE/girointerface2/OperationSubscriptionService2009.wsdl > > Caused by : WSDLException (at /wsdl:definitions/wsdl:types/s:schema): > > faultCode=PARSER_ERROR: Problem parsing > > 'http://schemas.xmlsoap.org/soap/encoding/'.: java.net.ConnectException: > > Connection refused: connect > > at > > > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:97) > > at > > > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69) > > at > > > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:82) > > at > > > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:59) > > at > > > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:170) > > at > > > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:139) > > at > > > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286) > > ... 4 more > > Caused by: javax.wsdl.WSDLException: WSDLException (at > > /wsdl:definitions/wsdl:types/s:schema): faultCode=PARSER_ERROR: Problem > > parsing 'http://schemas.xmlsoap.org/soap/encoding/'.: > > java.net.ConnectException: Connection refused: connect > > at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(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 > > > org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:242) > > at > > > org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:191) > > at > > > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78) > > ... 10 more > > Caused by: java.net.ConnectException: Connection refused: connect > > at java.net.PlainSocketImpl.socketConnect(Native Method) > > at java.net.PlainSocketImpl.doConnect(Unknown Source) > > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > > at java.net.PlainSocketImpl.connect(Unknown Source) > > at java.net.SocksSocketImpl.connect(Unknown Source) > > at java.net.Socket.connect(Unknown Source) > > at java.net.Socket.connect(Unknown Source) > > at sun.net.NetworkClient.doConnect(Unknown Source) > > at sun.net.www.http.HttpClient.openServer(Unknown Source) > > at sun.net.www.http.HttpClient.openServer(Unknown Source) > > at sun.net.www.http.HttpClient.<init>(Unknown Source) > > at sun.net.www.http.HttpClient.New(Unknown Source) > > at sun.net.www.http.HttpClient.New(Unknown Source) > > at > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown > > Source) > > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) > > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown > Source) > > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > > Source) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown > > Source) > > at > > > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown > > Source) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > > Source) > > at > > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown > > Source) > > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown > > Source) > > at > com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown > > Source) > > at > > com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown > > Source) > > ... 20 more > > > > > http://cxf.547215.n5.nabble.com/file/n5711622/OperationSubscriptionService2009.wsdl > > OperationSubscriptionService2009.wsdl > > > > > > > > -- > > View this message in context: > http://cxf.547215.n5.nabble.com/Code-Generation-from-Eclipse-with-Exceptions-tp5711622.html > > Sent from the cxf-user mailing list archive at Nabble.com. > > * *
