You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Jones (JIRA)" <ji...@apache.org> on 2006/09/26 15:26:53 UTC

[jira] Created: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema.

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


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

        

[jira] Updated: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema.

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Updated: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema.

Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-117?page=all ]

Dan Diephouse updated CXF-117:
------------------------------

    Fix Version/s: 2.0-M1

> 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
>
>
> 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

        

[jira] Closed: (CXF-117) Validator tool schema validation doesn't work when wsdl imports schema.

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-117?page=all ]

maomaode closed CXF-117.
------------------------

    Resolution: Fixed

> Validator tool schema validation doesn't work when wsdl imports schema.
> -----------------------------------------------------------------------
>
>                 Key: CXF-117
>                 URL: http://issues.apache.org/jira/browse/CXF-117
>             Project: CXF
>          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