You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andreas Würl (JIRA)" <ji...@apache.org> on 2014/05/14 07:12:16 UTC

[jira] [Updated] (CXF-5743) Full path is missing from schema included in imported schema when parsing WSDL

     [ https://issues.apache.org/jira/browse/CXF-5743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Würl updated CXF-5743:
------------------------------

    Description: 
Starting with 2.7.11, the wsdl cannot be parsed by clients, because the imported schema only shows the filename of the included subschema.

The setup is like this:

{code:title="wsdl-file"}
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ...>
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="any"> schemaLocation="xsd/level1.xsd"/>
        </schema>
    </wsdl:types>
...
</wsdl:definitions>
{code}

{code:title="level1.xsd"}
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"...>
    <xsd:include schemaLocation="xsd/level2.xsd"/>

...
</xsd:schema>
{code}

In the resulting wsdl 'level1.xsd' is correctly linked, but when retrieving the "level1.xsd' the reference to 'level2.xsd' only shows the file name instead of an URL. 

  was:
Starting with 2.7.11, the wsdl cannot be parsed by clients, because the imported schema only shows the filename of the included subschema.

The setup is like this:

{code:title="wsdl-file"}
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ...>
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="any"> schemaLocation="xsd/level1.xsd"/>
        </schema>
    </wsdl:types>
...
</wsdl:definitions>
{code}

{code:title="level1.xsd"}
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"...>
    <xsd:include schemaLocation="level2.xsd"/>

...
</xsd:schema>
{code}

In the resulting wsdl "level1.xsd" is correctly linked, but the include of "level2.xsd" only leads to the file name instead of an URL. 


> Full path is missing from schema included in imported schema when parsing WSDL
> ------------------------------------------------------------------------------
>
>                 Key: CXF-5743
>                 URL: https://issues.apache.org/jira/browse/CXF-5743
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.11
>            Reporter: Andreas Würl
>
> Starting with 2.7.11, the wsdl cannot be parsed by clients, because the imported schema only shows the filename of the included subschema.
> The setup is like this:
> {code:title="wsdl-file"}
> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ...>
>     <wsdl:types>
>         <schema xmlns="http://www.w3.org/2001/XMLSchema">
>             <import namespace="any"> schemaLocation="xsd/level1.xsd"/>
>         </schema>
>     </wsdl:types>
> ...
> </wsdl:definitions>
> {code}
> {code:title="level1.xsd"}
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"...>
>     <xsd:include schemaLocation="xsd/level2.xsd"/>
> ...
> </xsd:schema>
> {code}
> In the resulting wsdl 'level1.xsd' is correctly linked, but when retrieving the "level1.xsd' the reference to 'level2.xsd' only shows the file name instead of an URL. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)