I'm using the version included with JBoss AS 5.1.0.GA and it appears the wsdl attribute is using the location of the build file as the base directory for the relative path instead of what is defined in the basedir attribute for the ant project.
For example if I have the following ant build script located in a directory C:/myproject/build
<project name="MyProject" basedir="../"> <property environment="env"/> <path id="jboss.client.classpath"> <fileset dir="${JBoss.client.lib}"> <include name="**/*.jar"/> </fileset> </path> <taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask" classpathref="jboss.client.classpath"/> <target name="generate-service"> <wsconsume keep="true" package="com.whatever" destdir="build/gen" wsdl="build/tmpxml/MyProject.wsdl" verbose="true"/> </target> </project>