[
https://issues.apache.org/jira/browse/CXF-6621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939859#comment-14939859
]
ASF GitHub Bot commented on CXF-6621:
-------------------------------------
GitHub user TomasHofman opened a pull request:
https://github.com/apache/cxf/pull/92
[CXF-6621] Schema imports are not handled correctly in generated WSDL
...and XSD files when using catalog rewrites
Fixes these issues:
- import of nested XSDs that lies in different directory tree from WSDL
files
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/xsd/"/>
WSDL structure:
/wsdl/service.wsdl - imports "http://example.org/uri/schema.xsd"
/xsd/schema.xsd
```
- import and access of nested XSDs with equal relative paths when XSDs
are outside of WSDL directory (previously this was working only when
XSDs were inside WSDL directory)
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/xsd/"/>
WSDL structure:
/wsdl/service.wsdl - imports "http://example.org/uri/schema.xsd"
/xsd/schema.xsd - imports "d/included.xsd"
/xsd/d/included.xsd - imports "d/included.xsd"
/xsd/d/d/included.xsd
```
- accessing nested XSD and WSDL under URIs affected by rewrite rules
which aren't directly used by WSDLs/XSDs
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/wsdl/"/>
WSDL structure:
/wsdl/service.wsdl - imports "./included.wsdl"
/wsdl/included.wsdl
request for: http://example.org/uri/included.wsdl
```
- in some cases imports weren't working when catalog rule rewritePrefix
was "/path" instead of "classpath:/path" - catalog resolves those two
into different values
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/TomasHofman/cxf CXF-6621
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cxf/pull/92.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #92
----
commit 35da54c89f6b18dc2d65f87d57e399cd408b1173
Author: Tomas Hofman <[email protected]>
Date: 2015-10-01T13:43:37Z
[CXF-6621] Schema imports are not handled correctly in generated WSDL
...and XSD files when using catalog rewrites
Fixes these issues:
- import of nested XSDs that lies in different directory tree from WSDL
files
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/xsd/"/>
WSDL structure:
/wsdl/service.wsdl - imports "http://example.org/uri/schema.xsd"
/xsd/schema.xsd
```
- import and access of nested XSDs with equal relative paths when XSDs
are outside of WSDL directory (previously this was working only when
XSDs were inside WSDL directory)
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/xsd/"/>
WSDL structure:
/wsdl/service.wsdl - imports "http://example.org/uri/schema.xsd"
/xsd/schema.xsd - imports "d/included.xsd"
/xsd/d/included.xsd - imports "d/included.xsd"
/xsd/d/d/included.xsd
```
- accessing nested XSD and WSDL under URIs affected by rewrite rules
which aren't directly used by WSDLs/XSDs
example:
```
jax-ws-catalog.xml contains:
<rewriteSystem systemIdStartString="http://example.org/uri/"
rewritePrefix="/wsdl/"/>
WSDL structure:
/wsdl/service.wsdl - imports "./included.wsdl"
/wsdl/included.wsdl
request for: http://example.org/uri/included.wsdl
```
- in some cases imports weren't working when catalog rule rewritePrefix
was "/path" instead of "classpath:/path" - catalog resolves those two
into different values
----
> Schema imports are not handled correctly in generated WSDL and XSD files when
> using catalog rewrites
> ----------------------------------------------------------------------------------------------------
>
> Key: CXF-6621
> URL: https://issues.apache.org/jira/browse/CXF-6621
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Affects Versions: 2.7.18, 3.1.4
> Reporter: Tomas Hofman
> Attachments: getwsdl_problem.zip
>
>
> *Situation:*
> - jax-ws-catalog.xml contains:
> {code:xml}
> <rewriteSystem systemIdStartString="http://apache.org/xsd/"
> rewritePrefix="classpath:/xsd/"/>
> {code}
> - WSDL structure:
> {code}
> /wsdl/service.wsdl - imports "http://apache.org/xsd/schema.xsd"
> /xsd/schema.xsd
> {code}
> *Problem:*
> When accessing "?xsd=http://apache.org/xsd/schema.xsd", import of
> "d/included.xsd" is not transformed into "?xsd=" form.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)