You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "mustafa (JIRA)" <ji...@apache.org> on 2015/01/30 16:28:34 UTC
[jira] [Comment Edited] (CXF-6234) Invalid ?wsdl response with
relative imports/includes when using jaxws-catalog.xml
[ https://issues.apache.org/jira/browse/CXF-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298761#comment-14298761 ]
mustafa edited comment on CXF-6234 at 1/30/15 3:28 PM:
-------------------------------------------------------
Attached reproducer.
webservice/ contains the reproducer code (as Maven project)
- log/ contains 611response.txt, 633response.txt (without fix), 633fix.txt
- WSDLGetUtils.java the fix (changes commented with SJDE)
- Analysis.txt (the analysis I included in the description).
The intention is that you can follow the URLs provided in the answer.
So: use "http://localhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test.xsd" as next step in 6.3.1. Then you will get a response that has 2 includes relations:
<include schemaLocation="test_included_1a.xsd"/>
<include schemaLocation="test_included_1b.xsd"/>
In the 6.3.1 situation you would get:
<include schemaLocation="http:///localhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=test_included_1a.xsd"/>
<include schemaLocation="http:///localhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=test_included_1b.xsd"/>
In the fixed 6.3. 1 situation (in line with current 6.3.1 design) you'll get:
<include schemaLocation="http:///localhost:80800/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test_included_1a.xsd"/>
<include schemaLocation="http:///localhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test_included_1b.xsd"/>
In relation to JBoss EAP 6.x:
Now, both in the 'old 6.1.1.' situation and 'fixed 6.3.1`this is a valid URL delivering the requested test_included_1a.xsd or test_included_1b.xsd. However in the '6.3.1' situation: "test_included_1a.xsd" is not a valid URL and neither is "test_included_1b.xsd"
was (Author: mmusaji):
Attached reproducer.
webservice/ contains the reproducer code (as Maven project)
- log/ contains 611response.txt, 633response.txt (without fix), 633fix.txt
- WSDLGetUtils.java the fix (changes commented with SJDE)
- Analysis.txt (the analysis I included in the description).
The intention is that you can follow the URLs provided in the answer.
So: use "http://localhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test.xsd" as next step in 6.3.1. Then you will get a response that has 2 includes relations:
<include schemaLocation="test_included_1a.xsd"/>
<include schemaLocation="test_included_1b.xsd"/>
In the 6.3.1 situation you would get:
<include schemaLocation="http://pc-12256:8080/test_schema_validation/service_v1/ServiceBean?xsd=test_included_1a.xsd"/>
<include schemaLocation="http://pc-12256:8080/test_schema_validation/service_v1/ServiceBean?xsd=test_included_1b.xsd"/>
In the fixed 6.3. 1 situation (in line with current 6.3.1 design) you'll get:
<include schemaLocation="http://pc-12256:8080/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test_included_1a.xsd"/>
<include schemaLocation="http://pc-12256:8080/test_schema_validation/service_v1/ServiceBean?xsd=http://www.tno.nl/xsd/test/messages/test_included_1b.xsd"/>
In relation to JBoss EAP 6.x:
Now, both in the 'old 6.1.1.' situation and 'fixed 6.3.1`this is a valid URL delivering the requested test_included_1a.xsd or test_included_1b.xsd. However in the '6.3.1' situation: "test_included_1a.xsd" is not a valid URL and neither is "test_included_1b.xsd"
> Invalid ?wsdl response with relative imports/includes when using jaxws-catalog.xml
> ----------------------------------------------------------------------------------
>
> Key: CXF-6234
> URL: https://issues.apache.org/jira/browse/CXF-6234
> Project: CXF
> Issue Type: Bug
> Components: Simple Frontend
> Affects Versions: 2.7.14
> Reporter: mustafa
> Attachments: getwsdl_problem.zip
>
>
> This issue is related to the bug fix for CXF-4910
> However, in this use case, when you use a jaxws-catalog.xml. When trying to look up the provided schemaLocation after CXF-4910 it doesn't work
> <include schemaLocation="test_included_1a.xsd"/>
> It should be
> <include schemaLocation="http://lcoalhost:8080/test_schema_validation/service_v1/ServiceBean?xsd=test_included_1a.xsd"/>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)