users@glassfish.java.net

Importing multiple schemas with same namespace....

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jun 2007 14:04:09 PDT

I've got a wsdl that imports multiple schemas under the same namespace, like so...

[i]...
<types>
  <schema targetNamespace="http://mynamespace.org">
    <import namespace="http://anotherspace.org" schemaLocation="Foo.xsd"/>
    <import namespace="http://anotherspace.org" schemaLocation="Bar.xsd"/>
  </schema>
</types>
...[/i]

A co-worker of mine did some research and found that Xerces has an issue with importing multiple schema documents using the same namespace. See these links...

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4980862

http://www-1.ibm.com/support/docview.wss?rs=457&context=SSBRLP&dc=DB520&uid=swg21220355&loc=en_US&cs=UTF-8&lang=en&rss=ct457websphere

http://marc.info/?l=xerces-j-dev&m=108734363319300&w=2,

I was wondering if anyone else had experienced this problem and if there was a solution to it without editing the WSDL file. Is Xerces stil the culprit?

Thanks.
[Message sent by forum member 'jzacker' (jzacker)]

http://forums.java.net/jive/thread.jspa?messageID=224089