| 1 |
<?xml version="1.0" ?> |
| 2 |
<!DOCTYPE project [ |
| 3 |
<!ENTITY properties SYSTEM "file:../../../xmls/properties.xml"> |
| 4 |
<!ENTITY paths SYSTEM "file:../../../xmls/path_refs.xml"> |
| 5 |
<!ENTITY taskdefs SYSTEM "file:../../../xmls/taskdefs.xml"> |
| 6 |
<!ENTITY taskdefs_post_compile SYSTEM "file:../../../xmls/taskdefs_post_compile.xml"> |
| 7 |
<!ENTITY targets SYSTEM "file:../../../xmls/targets.xml"> |
| 8 |
]> |
| 9 |
|
| 10 |
<!-- =================================================================== |
| 11 |
<description> |
| 12 |
Test/Sample Component file for Axis |
| 13 |
|
| 14 |
Notes: |
| 15 |
This is a build file for use with the Jakarta Ant build tool. |
| 16 |
|
| 17 |
The purpose of this test is to verify the option implementationClassName |
| 18 |
in the wsdl2java emitter. |
| 19 |
|
| 20 |
Prerequisites: |
| 21 |
|
| 22 |
jakarta-ant from http://jakarta.apache.org |
| 23 |
|
| 24 |
Build Instructions: |
| 25 |
To compile |
| 26 |
ant compile |
| 27 |
To execute |
| 28 |
ant run |
| 29 |
|
| 30 |
Author: |
| 31 |
Matt Seibert [email protected] |
| 32 |
Mans Tanneryd [email protected] |
| 33 |
|
| 34 |
Copyright: |
| 35 |
Copyright (c) 2002-2004 Apache Software Foundation. |
| 36 |
</description> |
| 37 |
==================================================================== --> |
| 38 |
|
| 39 |
<project default="compile"> |
| 40 |
|
| 41 |
<property name="axis.home" location="../../.." /> |
| 42 |
<property name="componentName" value="test/wsdl/webref" /> |
| 43 |
&properties; |
| 44 |
&paths; |
| 45 |
&taskdefs; |
| 46 |
&taskdefs_post_compile; |
| 47 |
&targets; |
| 48 |
|
| 49 |
<target name="clean"> |
| 50 |
<echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" /> |
| 51 |
<delete dir="${build.dir}/classes/${componentName}"/> |
| 52 |
<delete dir="${build.dir}/work/${componentName}"/> |
| 53 |
</target> |
| 54 |
|
| 55 |
<!-- main target, always start from scratch --> |
| 56 |
<target name="compile" depends="setenv, clean"> |
| 57 |
<echo message="Compiling test.wsdl.webref"/> |
| 58 |
|
| 59 |
<!-- Compile the implementation class for Java2WSDL --> |
| 60 |
<javac srcdir="${axis.home}/${componentName}" |
| 61 |
destdir="${build.dest}" |
| 62 |
fork="${javac.fork}" |
| 63 |
nowarn="${nowarn}" |
| 64 |
source="${source}" |
| 65 |
debug="${debug}"> |
| 66 |
<classpath refid="classpath" /> |
| 67 |
<include name="DoubleBack.java" /> |
| 68 |
</javac> |
| 69 |
|
| 70 |
<mkdir dir="${build.dir}/work/${componentName}"/> |
| 71 |
|
| 72 |
<!-- Generate WSDL from java --> |
| 73 |
<java2wsdl output="${build.dir}/work/${componentName}/DoubleBackService.wsdl" |
| 74 |
className= "test.wsdl.webref.DoubleBack" |
| 75 |
location="http://localhost:8080/axis/services/DoubleBackService" |
| 76 |
porttypename="DoubleBackPortType" |
| 77 |
style="DOCUMENT" |
| 78 |
namespace="http://webref.wsdl.test/DoubleBack"> |
| 79 |
<mapping package="test.wsdl.webref" namespace="http://webref.wsdl.test/DoubleBack" /> |
| 80 |
</java2wsdl> |
| 81 |
|
| 82 |
<!-- Generate skeletons and stubs for client and server with custom implementation class --> |
| 83 |
<wsdl2java url="${build.dir}/work/${componentName}/DoubleBackService.wsdl" |
| 84 |
output="${axis.home}/build/work" |
| 85 |
all="yes" |
| 86 |
serverside="yes" |
| 87 |
skeletondeploy="no" |
| 88 |
verbose="no" |
| 89 |
testcase="no" |
| 90 |
implementationClassName="test.wsdl.webref.DoubleBack"> |
| 91 |
<mapping namespace="http://webref.wsdl.test/DoubleBack" package="test.wsdl.webref"/> |
| 92 |
</wsdl2java> |
| 93 |
|
| 94 |
<copy todir="${build.dir}/work/${componentName}" overwrite="yes"> |
| 95 |
<fileset dir="${axis.home}/${componentName}"> |
| 96 |
<include name="DoubleBack.java"/> |
| 97 |
<include name="DoubleBackServiceTestCase.java"/> |
| 98 |
</fileset> |
| 99 |
</copy> |
| 100 |
|
| 101 |
<!-- Compile it all --> |
| 102 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| 103 |
debug="${debug}"> |
| 104 |
<classpath refid="classpath" /> |
| 105 |
<include name="${componentName}/*.java" /> |
| 106 |
</javac> |
| 107 |
|
| 108 |
</target> |
| 109 |
|
| 110 |
<target name="run" > |
| 111 |
<antcall target="execute-Component" /> |
| 112 |
</target> |
| 113 |
|
| 114 |
</project> |