axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua.Wh...@hartfordlife.com
Subject Re: AXIS 1.3: Unable to generate client code using wsdl2java ant task
Date Fri, 05 May 2006 15:21:32 GMT

<br><font size=2 face="sans-serif">Anne,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help. &nbsp;Is there anything
else I can provide to assist?</font>
<br>
<br><font size=2 face="sans-serif">Joshua</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Anne Thomas Manes&quot;
&lt;atmanes@gmail.com&gt;</b></font>
<p><font size=1 face="sans-serif">05/05/2006 10:57 AM</font>
<br><font size=1 face="sans-serif">Please respond to axis-user</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
To: &nbsp; &nbsp; &nbsp; &nbsp;axis-user@ws.apache.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: AXIS 1.3: Unable to generate client
code using wsdl2java ant task</font></table>
<br>
<br>
<br><font size=3 face="Times New Roman">Can you provide the wsdl/schema that's
causing the error please?<br>
</font>
<br><font size=3 face="Times New Roman">On 5/5/06, </font><a href=mailto:Joshua.White@hartfordlife.com><font
size=3 color=blue face="Times New Roman"><b><u>Joshua.White@hartfordlife.com</u></b></font></a><font
size=3 face="Times New Roman"><b> </b>&lt;</font><a href=mailto:Joshua.White@hartfordlife.com><font
size=3 color=blue face="Times New Roman"><u>Joshua.White@hartfordlife.com</u></font></a><font
size=3 face="Times New Roman">&gt; wrote:</font>
<br><font size=2 face="sans-serif"><br>
More coffee... &nbsp;This error is caused by Axis 1.3.</font><font size=3 face="Times
New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
-Joshua<br>
<br>
</font><font size=3 face="Times New Roman"><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=2%>
<td width=30%><a href=mailto:Joshua.White@hartfordlife.com target=_blank><font
size=1 color=blue face="sans-serif"><b><u>Joshua.White@hartfordlife.com</u></b></font></a><font
size=3 face="Times New Roman"> </font>
<p><font size=1 face="sans-serif">05/05/2006 10:24 AM</font><font size=3
face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
Please respond to axis-user</font><font size=3 face="Times New Roman"> </font>
<td width=66%><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp;
</font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; &nbsp;</font><a
href="mailto:axis-user@ws.apache.org" target=_blank><font size=1 color=blue face="sans-serif"><u>axis-user@ws.apache.org</u></font></a><font
size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font
size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;AXIS
1.3: Unable to generate client code using wsdl2java ant task</font></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="sans-serif"><br>
<br>
All,</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
When i run the wsdl2java ant task, it blows up with a StackOverflowError. &nbsp; &nbsp;The
tool works when my web service only contains simple datatypes, but blows up when I have a
complex return type. &nbsp;When putting together the wsdd file, I had to add several &quot;beanMapping&quot;
elements (See below). &nbsp;Is there a similar construct needed for the wsdl2java tool?
&nbsp;Has anyone run into this problem? </font><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="sans-serif"><b><br>
<br>
SAMPLE FROM WSDD FILE</b></font><font size=3 face="Times New Roman"> </font><font
size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Address&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.BaseDomainObject&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.BaseDomainObjectWithHistory&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&lt;beanMapping
qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Case&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Consumer&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.ContactLocation&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.ContactLocationPreference&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.ContactLocationType&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;beanMapping qname=&quot;ns:local&quot;
xmlns:ns=&quot;java:mycompany.webservice.dto&quot; languageSpecificType=&quot;java:mycompany.webservice.dto.ContactMethod&quot;/&gt;
<br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.DomainObject&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.EligibilityProfile&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Email&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.ExternalSystemKey&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Occupation&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&lt;beanMapping
qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Gender&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Party&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.Phone&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.PhoneType&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.ReferenceObject&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;beanMapping qname=&quot;ns:local&quot;
xmlns:ns=&quot;java:mycompany.webservice.dto&quot; languageSpecificType=&quot;java:mycompany.webservice.dto.SourceSystem&quot;/&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;beanMapping qname=&quot;ns:local&quot; xmlns:ns=&quot;java:mycompany.webservice.dto&quot;
languageSpecificType=&quot;java:mycompany.webservice.dto.State&quot;/&gt;</font><font
size=3 face="Times New Roman"> <br>
<br>
</font><font size=2 face="sans-serif"><b><br>
<br>
SAMPLE FROM ANT FILE</b></font><font size=3 face="Times New Roman"> </font><font
size=2 face="sans-serif"><br>
 &nbsp;&lt;target name=&quot;generate&quot; depends=&quot;init&quot;
description=&quot;executes axis wsdl2java&quot;&gt;</font><font size=3
face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;axis-wsdl2java</font><font size=3 face="Times
New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output=&quot;${generated.dir}&quot;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testcase=&quot;false&quot;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verbose=&quot;true&quot;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; typemappingversion=&quot;1.2&quot;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url=&quot;${wsdl.url}&quot;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug=&quot;true&quot;&gt;</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &lt;/axis-wsdl2java&gt;</font><font size=3
face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &lt;/target&gt;</font><font size=3 face="Times New Roman">
<br>
</font><font size=2 face="sans-serif"><b><br>
<br>
SAMPLE ERROR MESSAGE</b></font><font size=3 face="Times New Roman"> </font><font
size=2 face="sans-serif"><br>
[axis-wsdl2java] Exception in thread &quot;Thread-0&quot; java.lang.StackOverflowError</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
[axis-wsdl2java] &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.axis.wsdl.symbolTable.SchemaUtils.getComplexElementExtensionBase(SchemaUtils.java:1067)</font><font
size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
[axis-wsdl2java] &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.axis.wsdl.symbolTable.SchemaUtils.getBaseType(SchemaUtils.java:2051)</font><font
size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif">[axis-wsdl2java] &nbsp; &nbsp; &nbsp;
&nbsp;at org.apache.axis.wsdl.toJava.JavaGeneratorFactory.javifyTypeEntryName(JavaGeneratorFactory.java:529)</font><font
size=3 face="Times New Roman"> <br>
<br>
*************************************************************************<br>
This communication, including attachments, is<br>
for the exclusive use of addressee and may contain proprietary,<br>
confidential and/or privileged information. If you are not the intended<br>
recipient, any use, copying, disclosure, dissemination or distribution is<br>
strictly prohibited. If you are not the intended recipient, please notify<br>
the sender immediately by return e-mail, delete this communication and<br>
destroy all copies.<br>
************************************************************************* <br>
</font>
<br>
<br>
<br>

Mime
View raw message