| <?xml version="1.0" ?> |
| <!DOCTYPE project [ |
| <!ENTITY properties SYSTEM "../../../xmls/properties.xml"> |
| <!ENTITY paths SYSTEM "../../../xmls/path_refs.xml"> |
| <!ENTITY taskdefs SYSTEM "../../../xmls/taskdefs.xml"> |
| <!ENTITY taskdefs_post_compile SYSTEM "../../../xmls/taskdefs_post_compile.xml"> |
| <!ENTITY targets SYSTEM "../../../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 mseibert@us.ibm.com |
| |
| Copyright: |
| Copyright (c) 2002-2003 Apache Software Foundation. |
| </description> |
| ==================================================================== --> |
| |
| <project default="compile"> |
| |
| <property name="axis.home" location="../../.." /> |
| <property name="componentName" value="test/wsdl/roundtrip2" /> |
| &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 test.wsdl.roundtrip2"/> |
| |
| <copy todir="${build.dir}/work/test/wsdl/roundtrip2" overwrite="yes"> |
| <fileset dir="${axis.home}/test/wsdl/roundtrip2"> |
| <include name="RoundTrip2SoapBindingImpl.java"/> |
| <include name="RoundTrip2Test.java"/> |
| </fileset> |
| </copy> |
| |
| <javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| debug="${debug}"> |
| <classpath refid="classpath" /> |
| <include name="test/wsdl/roundtrip2/*.java" /> |
| </javac> |
| |
| <java classname="org.apache.axis.wsdl.Java2WSDL" fork="true" |
| classpathref="classpath"> |
| <arg value="-T"/> |
| <arg value="1.3"/> |
| <arg value="-o"/> |
| <arg value="${axis.home}/build/work/test/wsdl/roundtrip2/roundtrip2.wsdl"/> |
| <arg value="--location"/> |
| <arg value="http://localhost:8080/axis/services/RoundTrip2Test"/> |
| <arg value="--namespace"/> |
| <arg value="http://roundtrip2.wsdl.test/"/> |
| <arg value="-s"/> |
| <arg value="RoundTrip2Test"/> |
| <arg value="-P"/> |
| <arg value="RoundTrip2Test"/> |
| <arg value="--style"/> |
| <arg value="RPC"/> |
| <arg value="--use"/> |
| <arg value="ENCODED"/> |
| <arg value="test.wsdl.roundtrip2.RoundTrip2Test"/> |
| </java> |
| |
| <wsdl2java url="${axis.home}/build/work/test/wsdl/roundtrip2/roundtrip2.wsdl" |
| output="${axis.home}/build/work" |
| deployscope="session" |
| typeMappingVersion="1.3" |
| serverSide="yes" |
| testcase="yes"> |
| </wsdl2java> |
| <!-- Please comment the above wsdl2java block and uncomment this block to recreate the problem |
| <wsdl2java url="${axis.home}/build/work/test/wsdl/roundtrip2/roundtrip2.wsdl" |
| output="${axis.home}/build/work" |
| typemappingVersion="1.3" |
| deployscope="session" |
| serverSide="yes" |
| testcase="yes"> |
| </wsdl2java> |
| --> |
| <copy todir="${build.dir}/work/test/wsdl/roundtrip2" overwrite="yes"> |
| <fileset dir="${axis.home}/test/wsdl/roundtrip2"> |
| <include name="*.java"/> |
| </fileset> |
| </copy> |
| |
| <javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| debug="${debug}"> |
| <classpath refid="classpath" /> |
| <include name="test/wsdl/roundtrip2/*.java" /> |
| </javac> |
| |
| </target> |
| |
| <target name="run" > |
| <antcall target="execute-Component" /> |
| </target> |
| |
| </project> |