Emil Genov bio photo

Emil Genov

Software developer living in Barcelona

LinkedIn Github Stackoverflow

If you must use preexisting WSDL file, You can use tool in XFire to generate you an Java implementation of it. It's like issuing this ant script:

<target name="wsdl" depends="createDirs">
<path id="xfire-classpath">
<fileset dir="${libDir}/xfire">
<include name="*.jar" />
</fileset>
</path>

<taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask"
classpathref="xfire-classpath"/>


<wsgen outputDirectory="${basedir}/target/generated-source"
wsdl="${basedir}/src/com/industria/tea/soap/TaskEscalation.wsdl" package="com.industria.tea.soap" overwrite="true"/>
</target>

where $libDir/xfire contains all jars taken from XFire distribution to avoid version mismatch

where:


  • wsdl - location of wsdl file ( can be any valid url )
  • outputDirectory - output directory for generated classes
  • package - package where client code will be placed
  • overwrite - allows to overwrite previously generated classes ( without this option, generator will refuse to generate classes if such already exists )