Thanks a lot well
Ant really does not have a direct task like <wsdl2java>
So finally a wrote this and my wsdl file is getting converted to java file
and the code is like
<property name="Google.dir" value="Google"/>
<property name="Google-gen.dir" value="${Google.dir}/generated-files"/>
<property name="Google-classes.dir" value="${Google.dir}/classes"/>
<property name="jar.name" value="amazon-test.jar"/>
<path id="axis.classpath">
<fileset dir="E:/unzipped/axis-src-1_2_1[1]/axis-1_2_1/lib">
<include name="*.jar"/>
</fileset>
<pathelement location="${Google.dir}"/>
</path>
<taskdef name="wsdl2java"
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
loaderref="axis" >
<classpath refid="axis.classpath"/>
</taskdef>
<target name="create-stubs">
<mkdir dir="${Google-gen.dir}"/>
<echo message="Before generation of files."/>
<wsdl2java url="http://api.google.com/GoogleSearch.wsdl"
output="${Google-gen.dir}"
deployscope="session"
serverside="true"
noimports="no"
verbose="no"
typeMappingVersion="1.1"
skeletondeploy="false"
testcase="no">
</wsdl2java>
<echo message="After generating java files."/>
</target>
Disclaimer
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom it is addressed. If you
have received this communication in error, please immediately notify the [EMAIL
PROTECTED] and destroy the original message. The recipient should check this
email and any attachments for the presence of viruses. Ness has taken every
reasonable precaution to minimize this risk, and accepts no liability for any
damage caused by any virus transmitted in this email. Ness reserves the rights
to monitor and review the content of all messages sent to or from this E-mail
address, and store them on the Ness E-mail system.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]