| 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 |
Prerequisites: |
| 18 |
|
| 19 |
jakarta-ant from http://jakarta.apache.org |
| 20 |
|
| 21 |
Build Instructions: |
| 22 |
To compile |
| 23 |
ant compile |
| 24 |
To execute |
| 25 |
ant run |
| 26 |
|
| 27 |
Author: |
| 28 |
Matt Seibert [email protected] |
| 29 |
|
| 30 |
Copyright: |
| 31 |
Copyright (c) 2002-2003 Apache Software Foundation. |
| 32 |
</description> |
| 33 |
==================================================================== --> |
| 34 |
|
| 35 |
<project default="compile"> |
| 36 |
|
| 37 |
<property name="axis.home" location="../../.." /> |
| 38 |
<property name="componentName" value="test/wsdl/roundtrip" /> |
| 39 |
&properties; |
| 40 |
&paths; |
| 41 |
&taskdefs; |
| 42 |
&taskdefs_post_compile; |
| 43 |
&targets; |
| 44 |
|
| 45 |
<target name="clean"> |
| 46 |
<echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" /> |
| 47 |
<delete dir="${build.dir}/classes/${componentName}"/> |
| 48 |
<delete dir="${build.dir}/work/${componentName}"/> |
| 49 |
</target> |
| 50 |
|
| 51 |
<target name="copy" depends="setenv"/> |
| 52 |
|
| 53 |
<target name="compile" depends="copy"> |
| 54 |
<echo message="Compiling test.wsdl.roundtrip"/> |
| 55 |
<!-- Roundtrip Test --> |
| 56 |
<!-- To test Java Value Types, copy over the base and subclasses --> |
| 57 |
<copy todir="${build.dir}/work/test/wsdl/roundtrip" overwrite="yes"> |
| 58 |
<fileset dir="${test.dir}/wsdl/roundtrip"> |
| 59 |
<include name="RoundtripPortTypeA.java"/> |
| 60 |
<include name="RoundtripPortTypeB.java"/> |
| 61 |
<include name="RoundtripPortType.java"/> |
| 62 |
<include name="Investment.java"/> |
| 63 |
<include name="StockInvestment.java"/> |
| 64 |
<include name="BondInvestment.java"/> |
| 65 |
<include name="PreferredStockInvestment.java"/> |
| 66 |
<include name="CallOptions.java"/> |
| 67 |
<include name="InvalidTickerSymbol.java"/> |
| 68 |
<include name="InvalidTradeExchange.java"/> |
| 69 |
<include name="InvalidCompanyId.java"/> |
| 70 |
</fileset> |
| 71 |
</copy> |
| 72 |
<copy todir="${build.dir}/work/test/wsdl/roundtrip/holders" overwrite="yes"> |
| 73 |
<fileset dir="${test.dir}/wsdl/roundtrip/holders"> |
| 74 |
<include name="BondInvestmentHolder.java"/> |
| 75 |
</fileset> |
| 76 |
</copy> |
| 77 |
<!-- Compile the Web Service --> |
| 78 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"> |
| 79 |
<classpath refid="classpath" /> |
| 80 |
<include name="test/wsdl/roundtrip/**.java" /> |
| 81 |
<exclude name="test/wsdl/roundtrip/*TestCase.java" /> |
| 82 |
<exclude name="test/wsdl/roundtrip/*Impl.java" /> |
| 83 |
</javac> |
| 84 |
<!-- The following invocation of java2wsdl simply tests whether the |
| 85 |
split wsdl function works. The generated wsdl files are not used. --> |
| 86 |
|
| 87 |
<java2wsdl output="${axis.home}/build/work/test/wsdl/roundtrip/RoundtripIntf.wsdl" |
| 88 |
outputImpl="${axis.home}/build/work/test/wsdl/roundtrip/RoundtripImpl.wsdl" |
| 89 |
className= "test.wsdl.roundtrip.RoundtripPortType" |
| 90 |
useInheritedMethods="false" |
| 91 |
namespace="http://roundtrip.wsdl.test" |
| 92 |
namespaceImpl="http://roundtrip.wsdl.test" |
| 93 |
typeMappingVersion="1.0" |
| 94 |
location="http://localhost:8080/axis/services/RoundtripTest" |
| 95 |
locationImport="file://build/work/test/wsdl/roundtrip/RoundtripIntf.wsdl"> |
| 96 |
<mapping namespace="http://roundtrip.wsdl.test" package="test.wsdl.roundtrip"/> |
| 97 |
</java2wsdl> |
| 98 |
|
| 99 |
<!-- Now create the real WSDL file --> |
| 100 |
<!-- The className must be the RoundtripPortType to properly test multi-inherits --> |
| 101 |
<java2wsdl output="${axis.home}/build/work/test/wsdl/roundtrip/Roundtrip.wsdl" |
| 102 |
className= "test.wsdl.roundtrip.RoundtripPortType" |
| 103 |
useInheritedMethods="false" |
| 104 |
namespace="http://roundtrip.wsdl.test" |
| 105 |
typeMappingVersion="1.0" |
| 106 |
location="http://localhost:8080/axis/services/RoundtripTest"> |
| 107 |
<mapping namespace="http://roundtrip.wsdl.test" package="test.wsdl.roundtrip"/> |
| 108 |
</java2wsdl> |
| 109 |
<!-- Test adding a second port (RoundtripTest2) to the wsdl file --> |
| 110 |
<java2wsdl output="${axis.home}/build/work/test/wsdl/roundtrip/Roundtrip.wsdl" |
| 111 |
input="${axis.home}/build/work/test/wsdl/roundtrip/Roundtrip.wsdl" |
| 112 |
portTypeName="RoundtripPortType" |
| 113 |
servicePortName="RoundtripTest2" |
| 114 |
bindingName="RoundtripTestSoapBinding" |
| 115 |
className= "test.wsdl.roundtrip.RoundtripPortType" |
| 116 |
useInheritedMethods="false" |
| 117 |
namespace="http://roundtrip.wsdl.test" |
| 118 |
typeMappingVersion="1.0" |
| 119 |
location="http://localhost:8080/axis/services/RoundtripTest2"> |
| 120 |
<mapping namespace="http://roundtrip.wsdl.test" package="test.wsdl.roundtrip"/> |
| 121 |
</java2wsdl> |
| 122 |
|
| 123 |
<!-- Delete the intermediate files so we recreate over a clean slate --> |
| 124 |
<delete dir="${build.dir}/classes/test/wsdl/roundtrip"/> |
| 125 |
<!-- Recreate Java files from the new WSDL --> |
| 126 |
<wsdl2java url="${axis.home}/build/work/test/wsdl/roundtrip/Roundtrip.wsdl" |
| 127 |
output="${axis.home}/build/work" |
| 128 |
deployscope="session" |
| 129 |
serverSide="yes" |
| 130 |
skeletonDeploy="yes" |
| 131 |
noimports="no" |
| 132 |
verbose="no" |
| 133 |
testcase="no" |
| 134 |
wrapArrays="yes"> |
| 135 |
<mapping namespace="http://roundtrip.wsdl.test" package="test.wsdl.roundtrip"/> |
| 136 |
</wsdl2java> |
| 137 |
|
| 138 |
<copy todir="${build.dir}/work/test/wsdl/roundtrip" overwrite="yes"> |
| 139 |
<fileset dir="${axis.home}/test/wsdl/roundtrip"> |
| 140 |
<include name="*TestCase.java"/> |
| 141 |
<include name="*Impl.java"/> |
| 142 |
</fileset> |
| 143 |
</copy> |
| 144 |
|
| 145 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| 146 |
debug="${debug}"> |
| 147 |
<classpath refid="classpath" /> |
| 148 |
<include name="test/wsdl/roundtrip/*.java" /> |
| 149 |
<include name="test/wsdl/roundtrip/**/*.java" /> |
| 150 |
</javac> |
| 151 |
|
| 152 |
</target> |
| 153 |
|
| 154 |
<target name="run" > |
| 155 |
<antcall target="execute-Component" /> |
| 156 |
</target> |
| 157 |
|
| 158 |
</project> |