Hi,
In the answer provided to me below, there were two possible ways of including the
class that was referenced but not defined. I use -e option and included the
CommonCacheInetrface as shown below. The java2wsdl generates wsdl without any
problem, but when I try to do wsdl2java "CommonCacheInterface" gives the error --
referenced but not defined.
I would appreciate an answere please.
Thanks
Sagar
-----Original Message-----
From: Sagar Pidaparthi
Sent: Friday, July 09, 2004 3:54 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you get around "referenced but not defined" in wsdl2java tool
Thanks for your response. I still have a problem. Here is my ant script for java2wsdl
<target name="CwapiClientAgent" depends="_init" description="Java to WSDL for
CwapiClientAgent">
<java fork="true" classname="org.apache.axis.wsdl.Java2WSDL"
classpathref="classpath.testers" jvm="${tester.jvm}" >
<arg value="-o"/>
<arg value="WebContent/WSDL/CwapiClientAgent.wsdl"/>
<arg value="-e"/>
<arg value="com.chordiant.jxw.efa.CommonCacheInterface"/>
<arg value="-l"/>
<arg value="http://localhost/WebServices/services/CwapiClientAgent"/>
<arg value="com.chordiant.cwapi.client.CwapiClientAgent"/>
<!-- @appclient.configuration@ -->
</java>
</target>
Here is my ant script for wsdl2java
<target name="CwapiClientAgent" depends="_init" description="WSDL to Java for
CwapiClientAgent">
<java fork="true" classname="org.apache.axis.wsdl.WSDL2Java"
classpathref="classpath.testers" jvm="${tester.jvm}" >
<arg value="-o"/>
<arg value="../WebServicesProxyProject"/>
<arg value="WebContent/WSDL/CwapiClientAgent.wsdl"/>
<arg value="-d"/>
<arg value="Session"/>
<arg value="-s"/>
<arg value="-S"/>
<arg value="true"/>
<!-- @appclient.configuration@ -->
</java>
</target>
In my java2wsdl, I see no errors. I see same error as in the past when I execute
wsdl2java
Thanks
Sagar
-----Original Message-----
From: Christophe Roudet [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:27 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you get around "referenced but not defined" in wsdl2java tool
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:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 6:15 PM
To: [EMAIL PROTECTED]
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