Awesome dude! I wish I saw this a few months ago... it would have save lots of time :) Alex ps: You may want to use ant and accompanying task to do the compilation, code generation and the like.. it's much easier. <?xml version="1.0" ?>
<!DOCTYPE project [ <!ENTITY properties SYSTEM "file:./xmls/properties.xml"> <!ENTITY paths SYSTEM "file:./xmls/path_refs.xml"> <!ENTITY taskdefs SYSTEM "file:./xmls/taskdefs.xml"> <!ENTITY taskdefs_post_compile SYSTEM "file:./xmls/taskdefs_post_compile.xml"> <!ENTITY targets SYSTEM "file:./xmls/targets.xml"> ]> <!-- =================================================================== <description> Test/Sample Component file for Axis Notes: This is a build file for use with the Jakarta Ant build tool. Prerequisites: jakarta-ant from http://jakarta.apache.org Build Instructions: To compile ant compile To execute ant run Author: Matt Seibert [EMAIL PROTECTED] Copyright: Copyright (c) 2002-2003 Apache Software Foundation. </description> ==================================================================== --> <project default="compile"> <property name="axis.home" location="d:/axis-1_1" /> <property name="short.componentName" value="SerializerService" /> <property name="componentName" value="com.ai.services.SerializerService" /> <property name="my.home.url" value="d:/eclipse/workspace/serializerservice" /> <property name="tomcat.axis.home" value="webapps/axis/web-inf"></property> <property name="my.wsdl" value="SerializerService.wsdl"></property> <property name="classname" value="com.ai.services.SerializerService"></property> <property name="package.name" value="com.ai.services"></property> <property name="ImplClass" value="${short.componentName}SoapBindingImpl.class"></property> &properties; &paths; &taskdefs; &taskdefs_post_compile; &targets; <target name="clean"> <echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" /> <delete dir="${build.dir}/classes/${componentName}"/> <delete dir="${build.dir}/work/${componentName}"/> </target> <target name="copy" depends="setenv"/> <target name="compile" depends="copy"> <echo message="Compiling myservice"/> <!-- Compile the Web Service --> <echo message="Source dir: ${my.home}/build/work"/> <echo message="build dest: ${build.dest}"/> <javac srcdir="${my.home}/build/work" destdir="${build.dest}" debug="${debug}" fork="${javac.fork}"> <classpath refid="classpath" /> <include name="**/*.java" /> </javac> <!-- Now create the WSDL file --> <!-- Delete the intermediate files so we recreate over a clean slate --> <!-- delete dir="${build.dir}/work"/> <mkdir dir="${build.dir}/work"/ --> <java2wsdl output="${my.home}/build/work/${my.wsdl}" className= "${classname}" useInheritedMethods="false" namespace="http://localhost:8080/axis/services/${short.componentName}" typeMappingVersion="1.1" location="http://localhost:8080/axis/services/${short.componentName}"> <mapping namespace="http://localhost:8080/axis/services/${short.componentName}" package="${package.name}"/> </java2wsdl> <!-- Delete the intermediate files so we recreate over a clean slate --> <delete file="${build.dir}/classes/com/ai/services/${ImplClass}"/> <!-- Recreate Java files from the new WSDL --> <wsdl2java url="${my.home.url}/build/work/${my.wsdl}" output="${my.home}/build/work" deployscope="session" serverSide="yes" skeletonDeploy="yes" noimports="no" verbose="yes" debug="yes" testcase="no"> <mapping namespace="http://localhost:8080/axis/services/${short.componentName}" package="${package.name}"/> </wsdl2java> <javac srcdir="${build.dir}/work" destdir="${build.dest}" fork="${javac.fork}" debug="${debug}"> <classpath refid="classpath" /> <include name="com/ai/services/*.java" /> <include name="com/ai/services/**/*.java" /> </javac> <!-- Copy the class files to tomcat --> <echo message="Copying to ${tomcat.home}/${tomcat.axis.home}/classes"/> <echo message="Copying from: ${build.dest}"/> <copy todir="${tomcat.home}/${tomcat.axis.home}/classes" overwrite="yes"> <fileset dir="${build.dest}"> <include name="**/*.class"/> </fileset> </copy> <copy todir="${tomcat.home}/${tomcat.axis.home}" overwrite="yes"> <fileset dir="${my.home}/build/work"> <include name="**/*.wsdl"/> </fileset> </copy> </target> <target name="run" > <antcall target="execute-Component" /> </target> <target name="DeployWsdd" > <exec dir="${build.dir}\work\com\ai\services\" executable="${tomcat.home}/webapps/adminClient.bat" > <arg line="deploy.wsdd"/> </exec> </target> <target name="UnDeployWsdd" > <exec dir="${build.dir}\work\com\ai\services\" executable="${tomcat.home}/webapps/adminClient.bat" > <arg line="undeploy.wsdd"/> </exec> </target> <target name="ReDeployWsdd" depends="UnDeployWsdd,DeployWsdd"> </target> <target name="StartTomcat" > <exec dir="${tomcat.home}/bin" executable="${tomcat.home}\bin\startup.bat"/> </target> <target name="StopTomcat" > <exec dir="${tomcat.home}/bin" executable="${tomcat.home}\bin\shutdown.bat"/> </target> <target name="ReStartTomcat" depends="StopTomcat,StartTomcat"> </target> </project> -----Original Message----- From: Sivakumar Jagadeesan [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 4:48 AM To: [EMAIL PROTECTED] Subject: Intro to Web Services and Apache Axis Presentation Hey Guys! I have put a presentation in "Intro to Web Services and Apache Axis" that I presented to Austin JUG. http://java2simple.blog-city.com/read/162200.htm <http://java2simple.blog-city.com/read/162200.htm> Take a look at it and let me know what you guys think. Let me also know if I need to add some more information -------------------- Rgds --Siva Jagadeesan _____ Do you Yahoo!? Yahoo! <http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com> SiteBuilder - Free, easy-to-use web site design software
