cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jones (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema.
Date Tue, 26 Sep 2006 15:05:51 GMT
     [ 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

        

Mime
View raw message