Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 8567 invoked from network); 1 May 2008 15:12:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 15:12:52 -0000 Received: (qmail 12808 invoked by uid 500); 1 May 2008 15:12:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 12793 invoked by uid 500); 1 May 2008 15:12:54 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 12782 invoked by uid 99); 1 May 2008 15:12:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 08:12:54 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 15:12:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC72D234C113 for ; Thu, 1 May 2008 08:08:55 -0700 (PDT) Message-ID: <1577959750.1209654535770.JavaMail.jira@brutus> Date: Thu, 1 May 2008 08:08:55 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1566) WSDLValidator tests fail because of invalid schema In-Reply-To: <2050537038.1209652255686.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593553#action_12593553 ] Daniel Kulp commented on CXF-1566: ---------------------------------- hello_world_schema_import.wsdl looks competely valid to me. That error message you show is not true. If you look at the message: the x1 prefix is defined as namespace http://apache.org/hello_world_soap_http/types1 which is indeed imported in the schemas and that element does exist in schema1.xsd. > WSDLValidator tests fail because of invalid schema > -------------------------------------------------- > > Key: CXF-1566 > URL: https://issues.apache.org/jira/browse/CXF-1566 > Project: CXF > Issue Type: Test > Components: Tooling > Affects Versions: 2.1 > Environment: Windows XP, maven 2.0.8, CXF 2.1 source download with files dated 4/24/08 > Reporter: Bob Fields > Attachments: surefire-reports-WSDLValidator.zip > > > CXF 2.1 build from sources fails when running unit test on WSDLValidator. Opening the test schemas in XMLSpy 2007 r3 sp1 indeed shows that they fail validation: > File C:\Programs\CXF\21\src\tools\validator\target\test-classes\validator_wsdl\hello_world_import.wsdl is not valid. > extensibility element '' (operation 'greetMe', binding 'Greeter_SOAPBinding') has empty or missing 'soapAction' attribute! (required if binding transport is 'http://schemas.xmlsoap.org/soap/http') > Error location: wsdl:definitions / wsdl:binding / wsdl:operation / soap:operation > File C:\Programs\CXF\21\src\tools\validator\target\test-classes\validator_wsdl\hello_world_schema_import.wsdl is not valid. > attribute 'element' in message part 'in' (message 'sayHiRequest') refers to element 'x1:sayHi' which is not defined within the WSDL file! > Error location: wsdl:definitions / wsdl:message / wsdl:part / @element > Other schemas fail to validate but don't cause test failures: bp2717, jms_test, header_rpc_lit, header_rpc_lit_2203_in, header_rpc_lit_2203_out. > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.apache.cxf.tools.validator.WSDLValidationTest > Tests run: 13, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 4.753 sec <<< FAILURE! > testImportWsdlValidation(org.apache.cxf.tools.validator.WSDLValidationTest) Time elapsed: 2.486 sec <<< FAILURE! > java.lang.AssertionError: Is not valid wsdl!: wsdlvalidator -verbose /C:/Program > s/CXF/21/src/tools/validator/target/test-classes/validator_wsdl/hello_world_import.wsdl > wsdlvalidator - Apache CXF 2.1 > ... stack traces... > testImportSchemaValidation(org.apache.cxf.tools.validator.WSDLValidationTest) Time elapsed: 0.187 sec <<< FAILURE! > java.lang.AssertionError: Is not valid wsdl: wsdlvalidator -verbose /C:/Programs > /CXF/21/src/tools/validator/target/test-classes/validator_wsdl/hello_world_schema_import.wsdl > wsdlvalidator - Apache CXF 2.1 > ... stack traces... > testWSIBPR2203(org.apache.cxf.tools.validator.WSDLValidationTest) Time elapsed: > 0.141 sec <<< FAILURE! > ... stack traces... > Running org.apache.cxf.tools.validator.internal.WSDLRefValidatorTest > Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec > Running org.apache.cxf.tools.validator.internal.WSDL11ValidatorTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec > Running org.apache.cxf.tools.validator.internal.Stax2DOMTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec > Running org.apache.cxf.tools.validator.internal.model.XNodeTest > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec > Results : > Failed tests: > testImportWsdlValidation(org.apache.cxf.tools.validator.WSDLValidationTest) > testImportSchemaValidation(org.apache.cxf.tools.validator.WSDLValidationTest) > testWSIBPR2203(org.apache.cxf.tools.validator.WSDLValidationTest) > Tests run: 26, Failures: 3, Errors: 0, Skipped: 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.