Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 52673 invoked from network); 26 Sep 2006 15:09:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 15:09:40 -0000 Received: (qmail 2594 invoked by uid 500); 26 Sep 2006 15:09:40 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 2581 invoked by uid 500); 26 Sep 2006 15:09:40 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 2572 invoked by uid 99); 26 Sep 2006 15:09:40 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 08:09:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:41542] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 1C/70-12711-2B249154 for ; Tue, 26 Sep 2006 08:09:38 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2788441076C for ; Tue, 26 Sep 2006 15:05:51 +0000 (GMT) Message-ID: <29864432.1159283151159.JavaMail.jira@brutus> Date: Tue, 26 Sep 2006 08:05:51 -0700 (PDT) From: "Peter Jones (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema. In-Reply-To: <31170494.1159277213137.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/CXF-117?page=all ] Peter Jones updated CXF-117: ---------------------------- Attachment: hello_world_import.wsdl hello_world_types.wsdl hello_world_imports.wsdl imports hello_world_types.wsdl. When hello_world_imports.wsdl is validated, the schema validation fails: Error : line 31 of file:/opt/peterj/branch/celtixfire/trunk/tools/validator/target/test-classes/validator_wsdl/hello_world_import.wsdl {http://apache.org/hello_world_soap_http/types}greetMe cannot find reference line 34 of file:/opt/peterj/branch/celtixfire/trunk/tools/validator/target/test-classes/validator_wsdl/hello_world_import.wsdl {http://apache.org/hello_world_soap_http/types}greetMeResponse cannot find reference These elements can be found in hello_world_types.wsdl. For a similar example using an imported schema file rather than imported wsdl file, run the validator tool against hello_world_schema_import.wsdl in the testutils project. > Validator tool schema validation doesn't work when wsdl imports schema. > ----------------------------------------------------------------------- > > Key: CXF-117 > URL: http://issues.apache.org/jira/browse/CXF-117 > Project: CeltiXfire > Issue Type: Bug > Components: Tooling > Reporter: Peter Jones > Priority: Minor > Fix For: 2.0-M1 > > Attachments: hello_world_import.wsdl, hello_world_types.wsdl > > > The SchemaValidator only adds schema elements defined in the types section of the wsdl file being validated to its xmlSchemaMap. Any elements defined in a schema file that the wsdl file imports, or in another wsdl file that the wsdl file imports are not added to the map. Because of this, when the WSDLElementReferenceValidator attempts to validate the wsdl file and comes across a schema type that was defined in an imported file, then the validation fails. I'll attach a couple of small test cases... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira