Bug 779163 (SOA-1558) - Schema Validation - import/include of XSD schemas does not work
Summary: Schema Validation - import/include of XSD schemas does not work
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-1558
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB
Version: 5.0.0 ER1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0 GA
Assignee: Kevin Conner
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On: SOA-1142
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-27 09:19 UTC by Jiri Pechanec
Modified: 2011-02-17 11:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-17 11:18:52 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)
XSD.zip (2.38 KB, application/zip)
2009-12-12 17:38 UTC, Burr Sutter
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-1558 0 None None None Never

Description Jiri Pechanec 2009-10-27 09:19:42 UTC
Date of First Response: 2009-10-27 05:32:50
project_key: SOA

I tried to include one schema into tn other and it seems that this functionality does not work. Custom implementation of org.w3c.dom.ls.LSResourceResolver should probably be provided that will support resolving of file, http and classpath based locations.

Comment 1 Kevin Conner 2009-10-27 09:32:50 UTC
This was not part of the original request but we can certainly add it.  Please raise a change request.

Comment 2 Jiri Pechanec 2009-10-27 09:59:36 UTC
Please review the issues and create change requests if you feel the issues are valid, otherwise resolve them as rejected

Comment 3 Burr Sutter 2009-10-30 20:59:05 UTC
It is my understanding that we now support import/include for the EBWS feature (in.xsd, out.xsd and error.xsd).  Is that true?  I will create a change request.

Comment 4 Len DiMaggio 2009-11-02 16:37:17 UTC
See the linked JIRA - from Jan 2009

Comment 5 Len DiMaggio 2009-11-02 16:37:17 UTC
Link: Added: This issue depends SOA-1142


Comment 7 Burr Sutter 2009-12-11 17:03:41 UTC
Just to make sure we have clarity, the specific feature are talking about is
org.jboss.soa.esb.actions.validation.SchemaValidationAction


Comment 8 Kevin Conner 2009-12-11 17:10:31 UTC
That is correct, the linked JIRA is not relevant to this issue.

Comment 9 Burr Sutter 2009-12-12 17:35:01 UTC
It is only relevant in the sense that it works for EBWS but not for SchemaValidationAction, we are inconsistent in our use of XSD include between the two capabilities.

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://www.example.org/policyQuote"
	xmlns:pol="http://www.example.org/policyQuote" elementFormDefault="qualified">

	<xs:include schemaLocation="./types/policyQuoteBase.xsd"/>
	
	<xs:element name="policyQuote">
		<xs:complexType>
			<xs:choice minOccurs="1" maxOccurs="1">
				<xs:element name="receivePolicyQuote" type="pol:ReceivePolicyQuoteType"/>
				<xs:element name="createPolicyQuote" type="pol:CreatePolicyQuoteType"/>
				<xs:element name="deletePolicyQuote" type="pol:DeletePolicyQuoteType"/>
				<xs:element name="getPolicyQuote" type="pol:GetPolicyQuoteType"/>
				<xs:element name="calculatePolicyQuote" type="pol:CalculatePolicyQuoteType"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>

.
.
.

Comment 10 Burr Sutter 2009-12-12 17:38:22 UTC
Jeff D provided me with some sample XSDs that work with the EBWS feature.


Comment 11 Burr Sutter 2009-12-12 17:38:22 UTC
Attachment: Added: XSD.zip


Comment 12 Kevin Conner 2009-12-14 09:37:58 UTC
Nobody is disagreeing that we are inconsistent, but this has no dependency on EBWS.

Comment 13 Anne-Louise Tangring 2010-09-10 19:16:08 UTC
This is optional for SOA 5.1.0. Thus it is downgraded to a Major.

Comment 14 Kevin Conner 2010-11-29 13:58:36 UTC
Link: Added: This issue depends JBESB-3538


Comment 15 Kevin Conner 2010-11-29 14:45:15 UTC
Support has been added in the ESB codebase.

Comment 17 Dana Mison 2011-01-05 00:14:34 UTC
Writer: Added: dlesage


Comment 18 Jiri Pechanec 2011-01-12 07:26:46 UTC
Verified in ER6

Comment 19 Dana Mison 2011-02-17 11:17:09 UTC
Writer: Removed: dlesage Added: Darrin


Comment 20 Dana Mison 2011-02-17 11:18:52 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Release Notes Text: Added: https://issues.jboss.org/browse/JBESB-3538
Support for schema import/include has been added to SchemaValidationAction



Note You need to log in before you can comment on or make changes to this bug.