Bug 778664 (SOA-1137)

Summary: Duplicate schema types in wsdl generated by EBWS
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Taro Yasuma <tyasuma>
Component: JBossESBAssignee: Mark Little <mark.little>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 GA   
Target Milestone: ---   
Target Release: 4.3 CP01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1137
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-13 15:58:41 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
jboss-esb.xml
none
HelloWorldPubService.wsdl none

Description Taro Yasuma 2009-01-20 04:07:42 UTC
Date of First Response: 2009-03-12 08:00:39
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/256496
project_key: SOA

Duplicate schema types are created in wsdl generated by EBWS when a same schma type is defined in two or more schema files at inXsd, outXsd or/and faultXsd.

Typically,  it leads an issue that JBossWS's wsconsume won't work with such a wsdl due to a validation error of the duplicate schema types. 

HOW TO REPRODUCE:

You can see this issue by running publish_as_webservice example. 

1. replace jboss-esb.xml under publish_as_webservice with the attached one.

2. deploy publish_as_webservice.

for example)

$ant undeploy
$ant deploy

3. find duplicate schema types(x1:sayHi) in wsdl:

http://127.0.0.1:8080/Quickstart_publish_as_webservice/ESBServiceSample/HelloWorldPubService?wsdl

I attached the wsdl for your convenience.

Note 1: in order to understand the behaviour of JBoss ESB easily, the attached jboss-esb.xml has a same 
schema file in inXsd, outXsd and faultXsd.

Note 2: there is an usecase that we use generic / common complex types in the both request and response 
e.g. header information.

Comment 1 Taro Yasuma 2009-01-20 04:10:53 UTC
Added a modified jboss-esb.xml of publish_as_webservice to reproduce the issue.

Comment 2 Taro Yasuma 2009-01-20 04:10:53 UTC
Attachment: Added: jboss-esb.xml


Comment 3 Taro Yasuma 2009-01-20 04:12:17 UTC
Added a sample wsdl which has duplicate schema types.

Comment 4 Taro Yasuma 2009-01-20 04:12:17 UTC
Attachment: Added: HelloWorldPubService.wsdl


Comment 5 Taro Yasuma 2009-01-20 05:10:51 UTC
Link: Added: This issue depends JBESB-2295


Comment 6 Taro Yasuma 2009-01-20 13:54:14 UTC
Linked JBESB-2217 which is duplicated by JBESB-2295.

Comment 7 Taro Yasuma 2009-01-20 13:54:14 UTC
Link: Added: This issue depends JBESB-2217


Comment 8 Taro Yasuma 2009-01-21 15:25:31 UTC
Link: Added: This issue related SOA-1142


Comment 9 Jiri Pechanec 2009-03-12 12:00:39 UTC
CR4 - The issue is still present - the steps to reproduce were followed

Comment 10 Mark Little 2009-03-13 15:58:41 UTC
Will not be supported in CP.

Comment 11 Daniel Bevenius 2009-03-13 16:07:42 UTC
Link: Added: This issue related JBESB-2470