+1 to your suggestion to move both 521 and 522 to warnings.
Lawrence Mandel
Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814 Fax: 905 - 413 - 4920
[EMAIL PROTECTED]
| John Kaputin <[EMAIL PROTECTED]>
01/19/2006 11:05 AM
|
|
Hi Lawrence,
with this specific test case failure that reports the WSDL522 woden message
in the parseSchemaImport method, we know it's because of a bug in XmlSchema
(incorrect context used for relative paths specified in the
'schemaLocation' attribute of nested xs:imports).
In the more general case of an XmlSchemaException (which triggers the
WSDL522 message), I guess we should just consider this a schema
dereferencing problem but not necessarily an error, unless we later fail to
dereference a QName from that schema (i.e. it's a QName dereference problem
that's an error, not the initial failure to dereference a schemaLocation).
So I will change this use of WSDL522 to severity 'Warning' rather than
'Error', as you suggest.
What about the use of WSDL521 in parseSchemaInline, which is also reported
as an error? Once again we start with the DOM element for the top level
(inlined) schema and an XmlSchemaException is caught, but we cannot tell
whether it is a problem parsing the inlined schema components or
dereferencing an xs:import nested within the inlined schema. Unless there
are any objections, I will treat this the same as WSDL522 (i.e. Warning) -
an error only occurs if we later attempt to dereference a QName from that
schema.
John Kaputin
Lawrence Mandel
<[EMAIL PROTECTED]
om> To
[email protected]
18/01/2006 19:40 cc
Subject
Please respond to Should WSDL522 be a warning?
woden-dev
Hi John,
I was taking a look at some of the schema errors and warnings you've
defined to sort out some JUnit failures and came across one I think should
be a warning.
WSDL522=Could not parse a schema imported from URL "{0}".
This error indicates that a schema model could not be created because the
schema could not be parsed. I think this should be a warning as any
imported schemas that cannot be located or read should produce warnings but
not cause errors as other schema import statements may import the same
namespace and still allow the WSDL document to be valid.
Comments?
Lawrence Mandel
Software Developer
IBM Rational Software
Phone: 905 - 413 - 3814 Fax: 905 - 413 - 4920
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
