axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Thome <mth...@bbn.com>
Subject Re: axis on-the-fly wsdl generation problem
Date Thu, 17 Feb 2005 18:37:00 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Final followup, FYI.<br>
<br>
In the end, the problem turned out to be java2wsdl of wsdl2java of the
following type of xsd fragment:<br>
<blockquote><tt>&nbsp;&lt;xsd:element name="nest"&gt;<br>
&nbsp;&nbsp; &lt;xsd:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element ref="nest"
minOccurs="0"
maxOccurs="unbounded"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element ref="atom"
minOccurs="0"
maxOccurs="unbounded"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsd:sequence&gt;<br>
&nbsp;&nbsp; &lt;/xsd:complexType&gt;<br>
&nbsp;&lt;/xsd:element&gt;<br>
  </tt></blockquote>
It appears that it cannot handle the anonymous complexType when
referenced by a subelement.&nbsp; For instance, the approximate equivalent
below is handled properly:<br>
<blockquote><tt>&nbsp;&lt;xsd:complexType name="NestType"&gt;<br>
&nbsp;&nbsp; &lt;xsd:sequence&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element ref="nest" minOccurs="0" maxOccurs="unbounded"/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsd:element ref="atom" minOccurs="0" maxOccurs="unbounded"/&gt;<br>
&nbsp;&nbsp; &lt;/xsd:sequence&gt;<br>
&nbsp;&lt;/xsd:complexType&gt;<br>
&nbsp;&lt;xsd:element name="nest" type="NestType"/&gt;<br>
  </tt></blockquote>
I've no idea why this change should make a difference, but ?wsdl is
working again for me.<br>
<br>
Cheers,<br>
&nbsp;&nbsp;&nbsp; Michael<br>
<br>
Michael Thome wrote:
<blockquote cite="mid4213BAA5.5000701@bbn.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
As an in-progress followup, the lack of a stack dump is due to java bug
4872096 (see <a class="moz-txt-link-freetext"
 href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4872096">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4872096</a>
) which can be worked around by adding -Xint to the vm arguments.<br>
  <br>
I'm currently getting (with the middle cut out):<br>
java.lang.StackOverflowError<br>
...<br>
</blockquote>
</body>
</html>

Mime
View raw message