Unfortunately, I don't believe so. I started with the obvious ones and kept
needing more and more. Here's the Ant classpath that I ended up using:
<path id="websphere.lib.path">
<fileset dir="${websphere.runtime.home}">
<include name="**/*.jar"/>
<exclude name="optionalLibraries/**/*.jar"/>
<exclude name="systemApps/**/*.jar"/>
</fileset>
</path>
Where websphere.runtime.home is something like:
websphere.runtime.home=C:/Program Files/IBM/SDP70/runtimes/base_v61
--
Doug
There is actually an Ant task for wsdl2java so you don't have to fork an
external process.
See
Here are the relevant excerpts from my build.xml:
<path id="websphere.lib.path">
<fileset dir="${websphere.runtime.home}">
<include name="**/*.jar"/>
<exclude name="optionalLibraries/**/*.jar"/>
<exclude name="systemApps/**/*.jar"/>
</fileset>
</path>
<taskdef name="wsdl2java"
classname="com.ibm.websphere.ant.tasks.WSDL2Java">
<classpath refid="websphere.lib.path"/>
</taskdef>
<target name="ws-clean">
<delete quiet="true">
<fileset dir="${src.home}/<my-package-hierarchy>"/>
</delete>
</target>
<target name="ws-proxy" depends="ws-clean">
<wsdl2java url="${wsdlURL}"
noDataBinding="false"
noWrappedOperations="false"
output="${src.home}"
role="client"
container="none"
deployScope="Application"
genjava="IfNotExists">
<mapping namespace="<my-WSDLsnamespace>"
package="<my-package-hierarchy>"/>
</wsdl2java>
</target>
Hope that helps.
--
Doug
If you have all those jars from the RAD WAS runtime environment, you don't
need to have RAD itself, or WAS, installed. I posted my
websphere.runtime.home variable earlier, but in case it's been archived off
the web forums or something, here it is again:
websphere.runtime.home=C:/Program Files/IBM/SDP70/runtimes/base_v61
You should be able to copy this whole directory from a working RAD install and
build on a different machine. (I have no idea whether or not the license
allows that, however.)
I do wish there was an easier packaging of the necessary jars.
--
Doug
Hmmm... it appears something has been lost between my NNTP posting and the Web
forum feed.
The first include under websphere.lib.path should have two asterisks before
the slash. Two asterisks means to traverse all the subdirectories (except the
ones explicitly excluded in the next two lines). One asterisk means to only
use the top level subdirectory. So the value should be like this, but without
any spaces:
* * / *.jar
(Makes me wonder if the OP, Jesse, pulled his hair out trying to get it to
work. Wonder how to get this kind of a forum bug resolved.)
--
Doug
That I haven't seen and may no longer be related to the Ant configuration.
Are you certain that the WSDL is valid? e.g. have you tried generating a
client for it using RSA's wizard? It may be Google time to resolve that one.
--
Doug