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 Peter Klotz <pk...@iconet.wn.bawue.de> on 2002/09/30 23:24:04 UTC
wsdl2java produces uncompilable code
Hi,
I have a given WSDL file and want to generate client stubs and server
skeletons for it. The problem is that for whatever reason wsdl2java does
not generate code for some types defined in the WSDL.
I've browsed the list and tried options without success. Esp. I have
specified -all.
Please sse attached WSDL files, which is a bit long.
Problems are e.g. no class for ObjectName is generated although its type
definition is exactly the same as for DisplayName.
No code is generated for all request and response objects such as
NotificationSet, NotificationAvailability, GetNotifications.
The document is not rpc type but document and uses complex types and
contents but still that should work and sometimes does, but not always.
I'm not getting exceptions during generation.
The build.xml snipplet is:
<taskdef name="wsdl2java"
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
classpathref="itm.classpath.tools"/>
<target name="itm_gen_omi" description="generate OMI client stubs and
server skeleton">
<echo message="Generating OMI client and server classes..."/>
<mkdir dir="${itm.dir.build}/gensrc"/>
<wsdl2java url="${itm.dir.source}/com/bes/itm/comp/omi/OMI.wsdl"
output="${itm.dir.build}/gensrc" serverSide="yes"
skeletonDeploy="yes" typeMappingVersion="1.1" helperGen="no"
verbose="yes" all="yes" deployScope="session"
noWrapped="yes" noImports="yes">
<mapping namespace="urn:omi-org:api"
package="com.bes.itm.comp.omi.api"/>
</wsdl2java>
</target>
<target name="itm_java_omi" description="compile OMI client stubs and
server skeleton">
<echo message="Compiling generated OMI Java..."/>
<javac destdir="${itm.dir.build}/classes"
classpathref="itm.classpath.external" debug="on">
<src path="${itm.dir.build}/gensrc"/>
</javac>
</target>
Thanks for any help,
Peter