I just tried this with trunk and it seems OK. Passed Validation : Valid WSDL
I'll start getting a new snapshot deployed. (takes an hour or so) Dan On Tuesday 24 July 2007 11:14, Christian Vest Hansen wrote: > Hi, > > Using the (currently) latest snapshot, namely > apache-cxf-2.1-incubator-20070720.011624-1(.zip). > > An error (see bellow) is produced when you expose the following WSDL > file to the wsdlvalidator application: > > ================= The WSDL ===================== > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"> > > <wsdl:message name="Msg"> > <wsdl:part name="msg" type="xs:string"/> > </wsdl:message> > <wsdl:portType name="HelloWorldPort"> > <wsdl:operation name="SayHello"> > <wsdl:input message="Msg"/> > <wsdl:output message="Msg"/> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="HelloWorldSOAP" type="HelloWorldPort"> > <soap:binding style="rpc" > transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation > name="SayHello"> > <soap:operation soapAction="http://unwire.dk/SayHello"/> > <wsdl:input> > <soap:body use="literal" > namespace="http://ws.unwire.dk/"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" > namespace="http://ws.unwire.dk/"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="HelloWorld"> > <wsdl:port name="HelloWorldDev" binding="HelloWorldSOAP"> > <soap:address > location="http://localhost:8080/Services/HelloWorld"/> </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > > ================= The Error ===================== > > wsdlvalidator -verbose > /Users/vest/workspace/Service/src/main/resources/HelloWorld.wsdl > wsdlvalidator - 2.1-incubator-SNAPSHOT > > WSDLValidator Error : > line 8 column 56 of > file:/Users/vest/workspace/Statistics2/src/main/resources/HelloWorld.w >sdl: cvc-elt.1: Cannot find the declaration of element > 'wsdl:definitions'. > > [+] Verbose turned on > > org.apache.cxf.tools.common.ToolException: > line 8 column 56 of > file:/Users/vest/workspace/Statistics2/src/main/resources/HelloWorld.w >sdl: cvc-elt.1: Cannot find the declaration of element > 'wsdl:definitions'. at > org.apache.cxf.tools.validator.internal.SchemaValidator.validate(Schem >aValidator.java:202) at > org.apache.cxf.tools.validator.internal.SchemaValidator.validate(Schem >aValidator.java:118) at > org.apache.cxf.tools.validator.internal.SchemaValidator.isValid(Schema >Validator.java:102) at > org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11 >Validator.java:113) at > org.apache.cxf.tools.validator.WSDLValidator.execute(WSDLValidator.jav >a:65) at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.jav >a:83) at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.jav >a:52) at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.jav >a:39) at > org.apache.cxf.tools.validator.WSDLValidator.main(WSDLValidator.java:9 >3) > > > Any idears? I honestly can't see what would be wrong with my WSDL. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog