Good Afternoon Vikas- my script for executing the service and client @echo on cd %AXIS2_HOME%/samples/quickstartadb set AXIS2_CLASS_PATH=%AXIS2_HOME%/src/modules/adb-codegen/org/apache/axis2/axis2-codegen/1.1;%AXIS2_HOME%/lib;%COMMONS_LOGGING_HOME%AXIS2_HOME%/lib;%JAF_HOME%\jaf-1.0.2 java -cp "%AXIS2_CLASS_PATH%" org.apache.axis2.wsdl.WSDL2Java -uri %AXIS2_HOME%/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl -p samples.quickstart.clients -d adb -s -o build/client
using java to execute the same build.xml ant script and discovered that at inception since the generated classes for service and client-stub do not yet exist One must use the original build.xml to generate.service which will wsdl2Java and <target name="generate.service" depends="init"> <taskdef name="wsdl2java" classname="org.apache.axis2.tool.ant.AntCodegenTask" classpathref="axis2.classpath"/> <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl" output="${build.dir}/service" packageName="samples.quickstart.service.adb" language="java" databindingName="adb" synconly="true" serverside="true" serverSideInterface="true" namespaceToPackages="http://quickstart.samples/xsd=samples.quickstartservice.adb.xsd" generateservicexml="true"/> <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java" toDir="${build.dir}/service/src/samples/quickstart/service/adb/" overwrite="yes"> </copy> <copy file="${basedir}/resources/META-INF/services.xml" toDir="${build.dir}/service/resources/" overwrite="yes"> </copy> <ant dir="${build.dir}/service"/> </target> this will accomplish 2 major objectives- 1)Create the service and accompanying service classes (and create a new /build/service/build.xml for compiling the service classes) 2)Create client and accompanying stub client classes (with a new /build/client/build.xml for compiling the client classes) (In other words these new build.xml scripts are required for compiling the new generated classes) Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: Vikas To: axis user Sent: Tuesday, April 17, 2007 8:38 AM Subject: sample code "quickstartadb" auto generated build.xml file Hi Friends, Whenever we are using WSDL2Java command for given build.xml file from command prompt it generate one extra build.xml file. Before running command dir structure [quickstartadb | +-- resources src build.xml] Command:- WSDL2Java -uri resources/META-INF/StockQuoteService.wsdl -p samples.quickstart.clients -d adb -s -o build/client After running command dir structure [quickstartadb | +-- resources src build.xml +-- build | +-- client | +-- build.xml [auto generated build file] src] It is always creating another "build.xml" file. What is the use of that extra build file? What is the option to NOT generate that build file? With best regards From Vikas R. Khengare