You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sagar Pidaparthi <Sa...@chordiant.com> on 2004/07/10 00:14:44 UTC
How do you get around "referenced but not defined" in wsdl2java tool
Hi,
How do you get around "referenced but not defined" while generating java
from wsdl2java tool? Please see below the error stack trace.
Regards
Sagar
PS:
Type
BaseGroupModel is referenced but not defined.
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab
le.java:631)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:511)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
85)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
62)
[java] at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:334)
[java] at java.lang.Thread.run(Thread.java:513)
[java] Java Result: 1
RE: How do you get around "referenced but not defined" in wsdl2java tool
Posted by Christophe Roudet <cr...@activia.net>.
If you are using java2wsdl to generate your wsdl you can:
- specify an input wsdl file with your types (--input <argument>)
- specify extra-classes to add (-e, --extraClasses <argument>)
See java2wsdl doc http://ws.apache.org/axis/java/reference.html.
Here is the ant target I use:
<target name="java2wsdl">
<axis-java2wsdl
input="${axis.input.wsdl}"
output="${axis.output.wsdl}"
classname="${axis.interface}"
implclass="${axis.interface.impl}"
porttypename="${axis.porttype.name}"
extraclasses="${axis.extraclasses}"
location="${axis.target.protocol}://${axis.target.server}:${axis.target.port
}/${axis.service.path}"
style="RPC"
namespace="urn:activia.cmp.soap">
<mapping
/>
<classpath>
<pathelement path="${build.dir}/debugclasses"/>
<path refid="class.path"/>
</classpath>
</axis-java2wsdl>
</target>
Christophe
________________________________________
From: Sagar Pidaparthi [mailto:Sagar.Pidaparthi@chordiant.com]
Sent: Friday, July 09, 2004 6:15 PM
To: axis-user@ws.apache.org
Subject: How do you get around "referenced but not defined" in wsdl2java
tool
Hi,
How do you get around "referenced but not defined" while generating java
from wsdl2java tool? Please see below the error stack trace.
Regards
Sagar
PS:
Type
BaseGroupModel is referenced but not defined.
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j
ava:631)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:511)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:485)
[java] at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:462)
[java] at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:334)
[java] at java.lang.Thread.run(Thread.java:513)
[java] Java Result: 1