Hi all,
I 'm getting strange errors when trying to compile my WSDL2Java code with ant:
./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p
com.siemens.swa.plugins.webservices.types
[javac]
/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databinding/org/xmlsoap/schemas/TimeDocument.java:19:
package
schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder
does not exist
[javac] public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle("timea4a3doctype");
I think what I need to do is put the
'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After
several attempts, however, I'm not having any luck.
My classpath is:
<path id="axis.classpath">
<pathelement location="build/classes" />
<fileset dir="${axis.home}/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement location="wise/schemaorg_apache_xml" />
</path>
<taskdef resource="axis-tasks.properties"
classpathref="axis.classpath" />
My target is:
<target name="compile_wsdl2" depends="clean,prepare">
<echo message="Compiling wsdl2 files"/>
<javac
srcdir="wise"
destdir="${build}"
deprecation="true"
failonerror="true" debug="true"
>
<include name="**/*.java"/>
<classpath refid="axis.classpath"/>
</javac>
<copy todir="${build}" >
<fileset dir="wise" >
<include name="**/*.properties"/>
<include name="**/*.x*"/>
</fileset>
</copy>
</target>
Please help,
iksrazal