axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r545866 [6/7] - in /webservices/axis2/branches/java/jaxws21: modules/adb-codegen/src/org/apache/axis2/schema/ modules/adb/src/org/apache/axis2/databinding/types/ modules/adb/src/org/apache/axis2/databinding/utils/ modules/adb/src/org/apache...
Date Sun, 10 Jun 2007 11:42:22 GMT
Modified: webservices/axis2/branches/java/jaxws21/modules/samples/jms/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/jms/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/jms/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/jms/build.xml Sun Jun 10 04:42:12 2007
@@ -1,115 +1,114 @@
-
-<project basedir="." default="generate.service">
-
-	<property name="dest.dir" value="build" />
-
-	<property name="dest.dir.classes" value="${dest.dir}/classes" />
-
-	<property name="dest.dir.lib" value="${dest.dir}/lib" />
-
-	<property name="axis2.home" value="../../" />
-
-	<property name="repository.path" value="${axis2.home}/repository/services" />
-
-	<property name="server.repository" value="server_repository" />
-
-	<property name="client.repository" value="client_repository" />
-
-	<path id="build.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<path id="client.class.path">
-		<fileset dir="${dest.dir.lib}">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${client.repository}/lib">
-			<include name="*.jar" />
-		</fileset>
-
-	</path>
-
-	<path id="server.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${dest.dir.lib}">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${server.repository}/lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<target name="clean">
-		<delete dir="${dest.dir}" />
-		<delete file="${server.repo}/services/EchoXMLService.aar" />
-	</target>
-
-	<target name="prepare">
-
-		<mkdir dir="${dest.dir}" />
-
-		<mkdir dir="${dest.dir.classes}" />
-
-		<mkdir dir="${dest.dir.lib}" />
-
-		<mkdir dir="${dest.dir.classes}/META-INF" />
-
-	</target>
-
-	<target name="generate.service" depends="clean,prepare">
-
-		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/service/Echo.java">
-			<classpath refid="build.class.path" />
-		</javac>
-
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/EchoXMLService.aar" />
-
-		<copy file="${dest.dir}/EchoXMLService.aar" tofile="${repository.path}/EchoXMLService.aar" overwrite="true" />
-		<copy file="${dest.dir}/EchoXMLService.aar" tofile="${server.repository}/services/EchoXMLService.aar" overwrite="true" />
-
-	</target>
-
-	<target name="prepare.server">
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/server/SampleJMSServer.java">
-			<classpath refid="build.class.path" />
-		</javac>
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/server.jar" includes="sample/jms/server/**" />
-		<copy file="${dest.dir}/server.jar" tofile="${dest.dir.lib}/server.jar" overwrite="true" />
-	</target>
-
-
-	<target name="start.server" depends="prepare.server">
-
-		<java classname="sample.jms.server.SampleJMSServer" fork="true">
-			<classpath refid="server.class.path" />
-			<arg value="${server.repository}" />
-		</java>
-
-	</target>
-
-	<target name="client.compile">
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/client/**">
-			<classpath refid="build.class.path" />
-		</javac>
-	</target>
-
-	<target name="client.jar">
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/client.jar" includes="sample/jms/client/**" />
-	</target>
-
-	<target name="client.run">
-		<java classname="sample.jms.client.JMSEchoClient" fork="true">
-			<classpath refid="client.class.path" />
-		</java>
-	</target>
-	
-</project>
+<project name="jms" basedir="." default="generate.service">
+
+	<property name="dest.dir" value="build" />
+
+	<property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+	<property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+	<property name="axis2.home" value="../../" />
+
+	<property name="repository.path" value="${axis2.home}/repository/services" />
+
+	<property name="server.repository" value="server_repository" />
+
+	<property name="client.repository" value="client_repository" />
+
+	<path id="build.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<path id="client.class.path">
+		<fileset dir="${dest.dir.lib}">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${client.repository}/lib">
+			<include name="*.jar" />
+		</fileset>
+
+	</path>
+
+	<path id="server.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${dest.dir.lib}">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${server.repository}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<target name="clean">
+		<delete dir="${dest.dir}" />
+		<delete file="${server.repo}/services/EchoXMLService.aar" />
+	</target>
+
+	<target name="prepare">
+
+		<mkdir dir="${dest.dir}" />
+
+		<mkdir dir="${dest.dir.classes}" />
+
+		<mkdir dir="${dest.dir.lib}" />
+
+		<mkdir dir="${dest.dir.classes}/META-INF" />
+
+	</target>
+
+	<target name="generate.service" depends="clean,prepare">
+
+		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/service/Echo.java">
+			<classpath refid="build.class.path" />
+		</javac>
+
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/EchoXMLService.aar" />
+
+		<copy file="${dest.dir}/EchoXMLService.aar" tofile="${repository.path}/EchoXMLService.aar" overwrite="true" />
+		<copy file="${dest.dir}/EchoXMLService.aar" tofile="${server.repository}/services/EchoXMLService.aar" overwrite="true" />
+
+	</target>
+
+	<target name="prepare.server">
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/server/SampleJMSServer.java">
+			<classpath refid="build.class.path" />
+		</javac>
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/server.jar" includes="sample/jms/server/**" />
+		<copy file="${dest.dir}/server.jar" tofile="${dest.dir.lib}/server.jar" overwrite="true" />
+	</target>
+
+
+	<target name="start.server" depends="prepare.server">
+
+		<java classname="sample.jms.server.SampleJMSServer" fork="true">
+			<classpath refid="server.class.path" />
+			<arg value="${server.repository}" />
+		</java>
+
+	</target>
+
+	<target name="client.compile">
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/jms/client/**">
+			<classpath refid="build.class.path" />
+		</javac>
+	</target>
+
+	<target name="client.jar">
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/client.jar" includes="sample/jms/client/**" />
+	</target>
+
+	<target name="client.run">
+		<java classname="sample.jms.client.JMSEchoClient" fork="true">
+			<classpath refid="client.class.path" />
+		</java>
+	</target>
+	
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/mex/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/mex/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/mex/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/mex/build.xml Sun Jun 10 04:42:12 2007
@@ -1,119 +1,119 @@
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
-<project name="samples" default="generate.service">
-    <property name="mainDir" value="../.."/>
-    <property name="classes.dir" value="build/classes"/>
-    <path id="axis.classpath">
-        <fileset dir="../../lib">
-            <include name="*.jar"/>
-        </fileset>
-        <pathelement location="build/userguideMex.jar"/>
-    </path>
-
-    <target name="run.client.all"
-            depends="run.client.default,run.client.service,run.client.wsdl">
-    </target>
-    
-    <target name="compile">
-    		<mkdir dir="${classes.dir}" />
-		<javac srcdir="src" destdir="${classes.dir}">
-			<classpath refid="axis.classpath" />
-		</javac>
-		<jar destfile="build/userguideMex.jar">
-            		<fileset dir="${classes.dir}">
-                		<include name="userguide/**"/>
-            		</fileset>
-       		</jar>
-    </target>
-    
-    <target name="generate.service" depends="compile">
-            <jar destfile="build/DefaultAxis2DataLocatorDemoService.aar">
-            <fileset dir="src/userguide/mex/services/example1/">
-                <include name="META-INF/**"/>
-            </fileset>
-            <fileset dir="${classes.dir}">
-                <include name="userguide/mex/services/example1/**/*.class"/>
-            </fileset>
-        </jar>
-        <copy file="build/DefaultAxis2DataLocatorDemoService.aar" tofile="../../repository/services/DefaultAxis2DataLocatorDemoService.aar" overwrite="true"/>
-        <jar destfile="build/ServiceLevelDataLocatorDemoService.aar" >
-            <fileset dir="src/userguide/mex/services/example2/">
-                <include name="META-INF/**"/>
-            </fileset>
-            <fileset dir="${classes.dir}">
-                <include name="userguide/mex/services/example2/**/*.class"/>
-            </fileset>
-        </jar>
-        <copy file="build/ServiceLevelDataLocatorDemoService.aar" tofile="../../repository/services/ServiceLevelDataLocatorDemoService.aar" overwrite="true"/>
-        <jar destfile="build/WSDLDataLocatorDemoService.aar">
-            <fileset dir="src/userguide/mex/services/example3/">
-                <include name="META-INF/**"/>
-            </fileset>
-            <fileset dir="${classes.dir}">
-                <include name="userguide/mex/services/example3/**/*.class"/>
-            </fileset>
-        </jar>
-        <copy file="build/WSDLDataLocatorDemoService.aar" tofile="../../repository/services/WSDLDataLocatorDemoService.aar" overwrite="true"/>
-    </target>
-    
-     <target name="run.client.default" depends="compile">
-        <java classname="userguide.mex.clients.DemoDefaultDataLocator"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
-        </java>
-    </target>
-    <target name="run.client.service" depends="compile">
-        <java classname="userguide.mex.clients.DemoServiceLevelDataLocator"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
-        </java>
-    </target>
-    
-    <target name="run.client.wsdl" depends="compile">
-        <java classname="userguide.mex.clients.DemoWSDLServiceDataLocator"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
-        </java>
-    </target>
-    
-  
-    <target name="run.datalocators.service" depends="compile">
-        <java classname="userguide.mex.datalocators.ServiceLevelDataLocator"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
-        </java>
-    </target>
-
-    <target name="run.datalocators.wsdl" depends="compile">
-        <java classname="userguide.mex.datalocators.WSDLDataLocator"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
-        </java>
-    </target>
-    
-    <target name="run.client">
-	<echo message="Please use the following ant targets to run the clients" />
-	<echo message="run.client.default" />
-	<echo message="run.client.service" />
-	<echo message="run.client.wsdl" />
-	<echo message="run.client.all  -  run all clients" />
-    </target>
-    <target name="clean">
-	<delete dir="build" />
-    </target>
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project name="mex" default="generate.service">
+    <property name="mainDir" value="../.."/>
+    <property name="classes.dir" value="build/classes"/>
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="build/userguideMex.jar"/>
+    </path>
+
+    <target name="run.client.all"
+            depends="run.client.default,run.client.service,run.client.wsdl">
+    </target>
+    
+    <target name="compile">
+    		<mkdir dir="${classes.dir}" />
+		<javac srcdir="src" destdir="${classes.dir}">
+			<classpath refid="axis.classpath" />
+		</javac>
+		<jar destfile="build/userguideMex.jar">
+            		<fileset dir="${classes.dir}">
+                		<include name="userguide/**"/>
+            		</fileset>
+       		</jar>
+    </target>
+    
+    <target name="generate.service" depends="compile">
+            <jar destfile="build/DefaultAxis2DataLocatorDemoService.aar">
+            <fileset dir="src/userguide/mex/services/example1/">
+                <include name="META-INF/**"/>
+            </fileset>
+            <fileset dir="${classes.dir}">
+                <include name="userguide/mex/services/example1/**/*.class"/>
+            </fileset>
+        </jar>
+        <copy file="build/DefaultAxis2DataLocatorDemoService.aar" tofile="../../repository/services/DefaultAxis2DataLocatorDemoService.aar" overwrite="true"/>
+        <jar destfile="build/ServiceLevelDataLocatorDemoService.aar" >
+            <fileset dir="src/userguide/mex/services/example2/">
+                <include name="META-INF/**"/>
+            </fileset>
+            <fileset dir="${classes.dir}">
+                <include name="userguide/mex/services/example2/**/*.class"/>
+            </fileset>
+        </jar>
+        <copy file="build/ServiceLevelDataLocatorDemoService.aar" tofile="../../repository/services/ServiceLevelDataLocatorDemoService.aar" overwrite="true"/>
+        <jar destfile="build/WSDLDataLocatorDemoService.aar">
+            <fileset dir="src/userguide/mex/services/example3/">
+                <include name="META-INF/**"/>
+            </fileset>
+            <fileset dir="${classes.dir}">
+                <include name="userguide/mex/services/example3/**/*.class"/>
+            </fileset>
+        </jar>
+        <copy file="build/WSDLDataLocatorDemoService.aar" tofile="../../repository/services/WSDLDataLocatorDemoService.aar" overwrite="true"/>
+    </target>
+    
+     <target name="run.client.default" depends="compile">
+        <java classname="userguide.mex.clients.DemoDefaultDataLocator"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
+        </java>
+    </target>
+    <target name="run.client.service" depends="compile">
+        <java classname="userguide.mex.clients.DemoServiceLevelDataLocator"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
+        </java>
+    </target>
+    
+    <target name="run.client.wsdl" depends="compile">
+        <java classname="userguide.mex.clients.DemoWSDLServiceDataLocator"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
+        </java>
+    </target>
+    
+  
+    <target name="run.datalocators.service" depends="compile">
+        <java classname="userguide.mex.datalocators.ServiceLevelDataLocator"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
+        </java>
+    </target>
+
+    <target name="run.datalocators.wsdl" depends="compile">
+        <java classname="userguide.mex.datalocators.WSDLDataLocator"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}/repository"/>
+        </java>
+    </target>
+    
+    <target name="run.client">
+	<echo message="Please use the following ant targets to run the clients" />
+	<echo message="run.client.default" />
+	<echo message="run.client.service" />
+	<echo message="run.client.wsdl" />
+	<echo message="run.client.all  -  run all clients" />
+    </target>
+    <target name="clean">
+	<delete dir="build" />
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/mtom/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/mtom/README.txt?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/mtom/README.txt (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/mtom/README.txt Sun Jun 10 04:42:12 2007
@@ -14,12 +14,12 @@
 
 Running the Sample:
 ===================
-1. Use ant generate.service or just ant command in the Axis2_HOME/sample/mtom/ to build the service.
+1. Use ant generate.service or just the ant command alone in the Axis2_HOME/sample/mtom/ to build the service.
 2. Generated service gets copied to the Axis2_HOME/repository/services automatically.
 3. Run the Axis2_HOME/bin/axis2server.{sh.bat} to start the standalone axis2 server. (Alternatively
-  you can drop the sample to the services directory of a Axis2 server running in a servlet container)
-4. Use ant run.client -Dfile "file to be send" -Ddest "destination file name" to build and run the
- client.
+  you can drop the sample into the services directory of a Axis2 server running in a servlet container)
+4. Use ant generate.client to build the client.
+5. Use ant run.client -Dfile "file to be sent" -Ddest "destination file name" to run the client.
 
 
 Help

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/mtom/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/mtom/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/mtom/build.xml Sun Jun 10 04:42:12 2007
@@ -1,124 +1,126 @@
-<!--
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
-<project basedir="." default="generate.service">
-
-	<property environment="env" />
-	<property name="build.dir" value="build" />
-	<property name="client.dir" value="${build.dir}/client" />
-	<property name="service.dir" value="${build.dir}/service" />
-	<property name="client.classes.dir" value="${client.dir}/classes" />
-	<property name="skeleton.path" value="src/sample/mtom/service/MTOMSampleSkeleton.java" />
-	<property name="client.path" value="src/sample/mtom/client/Client.java" />
-	<!-- USE AXIS2_HOME FOR THIS -->
-	<property name="lib.dir" value="../lib" />
-
-	<path id="class.path">
-		<fileset dir="../../lib">
-			<include name="**/*.jar" />
-		</fileset>
-	</path>
-
-	<!-- Create Service -->
-	<target name="generate.service">
-
-		<java classname="org.apache.axis2.wsdl.WSDL2Java">
-			<arg value="-uri" />
-			<arg value="${basedir}/resources/MTOMSample.wsdl" />
-			<arg value="-ss" />
-			<arg value="-sd" />
-			<arg value="-p" />
-			<arg value="sample.mtom.service" />
-			<arg value="-o" />
-			<arg value="${service.dir}" />
-			<classpath refid="class.path" />
-		</java>
-		<copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
-		<antcall target="jar.server"/>
-		<copy file="${service.dir}/sample-mtom.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true"/>
-	</target>
-	<target name="check-parameters">
-		<condition property="parameters.set">
-			<and>
-				<isset property="dest" />
-				<isset property="file" />
-			</and>
-		</condition>
-		<!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
-		<antcall target="print-usage" />
-	</target>
-
-	<target name="print-usage" unless="parameters.set">
-		<echo message="ant -Dfile &lt;file to be transfered&gt;  -Ddest &lt;name of the destination file&gt;" />
-	</target>
-
-	<!-- Run Client -->
-	<target name="run.client" depends="check-parameters" if="parameters.set">
-		<java classname="org.apache.axis2.wsdl.WSDL2Java">
-			<arg value="-uri" />
-			<arg value="resources/MTOMSample.wsdl" />
-			<arg value="-p" />
-			<arg value="sample.mtom.service" />
-			<arg value="-o" />
-			<arg value="${client.dir}" />
-			<classpath refid="class.path" />
-		</java>
-
-		<copy file="${client.path}" tofile="${client.dir}/${client.path}" overwrite="true" />
-
-		<mkdir dir="${client.classes.dir}" />
-		<!-- Compile client -->
-		<javac srcdir="${client.dir}/src" destdir="${client.classes.dir}">
-			<classpath refid="class.path" />
-		</javac>
-
-		<!-- Run client -->
-		<!-- Accept two arguments from the command line, Also use the class.path set earlier -->
-		<java classname="sample.mtom.client.Client" fork="true">
-			<arg value="-file" />
-			<arg value="${file}" />
-			<arg value="-dest" />
-			<arg value="${dest}" />
-			<classpath>
-				<fileset dir="../../lib">
-					<include name="**/*.jar" />
-				</fileset>
-				<dirset dir="${client.classes.dir}" />
-			</classpath>
-		</java>
-	</target>
-	<target  name="jar.server">
-		<mkdir dir="${service.dir}/classes" />
-		<javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" 		destdir="${service.dir}/classes" srcdir="${service.dir}/src">
-		<classpath refid="class.path"/>
-		</javac>
-
-		<copy toDir="${service.dir}/classes/META-INF" failonerror="false">
-		<fileset dir="${service.dir}/resources">
-		<include name="*.xml"/>
-		<include name="*.wsdl"/>
-		<include name="*.xsd"/>
-		</fileset>
-		</copy>
-		<jar destfile="${service.dir}/sample-mtom.aar">
-		<fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
-		</jar>
-	</target>
-	<target name="clean">
-		<delete dir="build" />
-	</target>
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project name="mtom" basedir="." default="generate.service">
+
+	<property environment="env" />
+	<property name="build.dir" value="build" />
+	<property name="client.dir" value="${build.dir}/client" />
+	<property name="service.dir" value="${build.dir}/service" />
+	<property name="client.classes.dir" value="${client.dir}/classes" />
+	<property name="skeleton.path" value="src/sample/mtom/service/MTOMSampleSkeleton.java" />
+	<property name="client.path" value="src/sample/mtom/client/Client.java" />
+	<!-- USE AXIS2_HOME FOR THIS -->
+	<property name="lib.dir" value="../lib" />
+
+	<path id="class.path">
+		<fileset dir="../../lib">
+			<include name="**/*.jar" />
+		</fileset>
+	</path>
+
+	<!-- Create Service -->
+	<target name="generate.service">
+
+		<java classname="org.apache.axis2.wsdl.WSDL2Java">
+			<arg value="-uri" />
+			<arg value="${basedir}/resources/MTOMSample.wsdl" />
+			<arg value="-ss" />
+			<arg value="-sd" />
+			<arg value="-p" />
+			<arg value="sample.mtom.service" />
+			<arg value="-o" />
+			<arg value="${service.dir}" />
+			<classpath refid="class.path" />
+		</java>
+		<copy file="${skeleton.path}" tofile="${service.dir}/${skeleton.path}" overwrite="true" />
+		<antcall target="jar.server"/>
+		<copy file="${service.dir}/sample-mtom.aar" tofile="../../repository/services/sample-mtom.aar" overwrite="true"/>
+	</target>
+	<target name="check-parameters">
+		<condition property="parameters.set">
+			<and>
+				<isset property="dest" />
+				<isset property="file" />
+			</and>
+		</condition>
+		<!-- This is a hack to get an if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
+		<antcall target="print-usage" />
+	</target>
+
+	<target name="print-usage" unless="parameters.set">
+		<echo message="ant -Dfile &lt;file to be transferred&gt;  -Ddest &lt;name of the destination file&gt;" />
+	</target>
+
+	<!-- Generate Client -->
+	<target name="generate.client">
+		<java classname="org.apache.axis2.wsdl.WSDL2Java">
+			<arg value="-uri" />
+			<arg value="resources/MTOMSample.wsdl" />
+			<arg value="-p" />
+			<arg value="sample.mtom.service" />
+			<arg value="-o" />
+			<arg value="${client.dir}" />
+			<classpath refid="class.path" />
+		</java>
+
+		<copy file="${client.path}" tofile="${client.dir}/${client.path}" overwrite="true" />
+
+		<mkdir dir="${client.classes.dir}" />
+		<!-- Compile client -->
+		<javac srcdir="${client.dir}/src" destdir="${client.classes.dir}">
+			<classpath refid="class.path" />
+		</javac>
+    </target>	
+
+	<!-- Run Client -->
+	<target name="run.client" depends="check-parameters" if="parameters.set">
+		<!-- Accept two arguments from the command line, Also use the class.path set earlier -->
+		<java classname="sample.mtom.client.Client" fork="true">
+			<arg value="-file" />
+			<arg value="${file}" />
+			<arg value="-dest" />
+			<arg value="${dest}" />
+			<classpath>
+				<fileset dir="../../lib">
+					<include name="**/*.jar" />
+				</fileset>
+				<dirset dir="${client.classes.dir}" />
+			</classpath>
+		</java>
+	</target>
+	<target  name="jar.server">
+		<mkdir dir="${service.dir}/classes" />
+		<javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" 		destdir="${service.dir}/classes" srcdir="${service.dir}/src">
+		<classpath refid="class.path"/>
+		</javac>
+
+		<copy toDir="${service.dir}/classes/META-INF" failonerror="false">
+		<fileset dir="${service.dir}/resources">
+		<include name="*.xml"/>
+		<include name="*.wsdl"/>
+		<include name="*.xsd"/>
+		</fileset>
+		</copy>
+		<jar destfile="${service.dir}/sample-mtom.aar">
+		<fileset excludes="**/Test.class" dir="${service.dir}/classes"/>
+		</jar>
+	</target>
+	<target name="clean">
+		<delete dir="build" />
+	</target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/ping/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/ping/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/ping/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/ping/build.xml Sun Jun 10 04:42:12 2007
@@ -1,4 +1,4 @@
-<project basedir="." default="generate.service">
+<project name="ping" basedir="." default="generate.service">
 
     <property environment="env"/>
     <property name="AXIS2_HOME" value="../../"/>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/pojo/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/pojo/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/pojo/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/pojo/build.xml Sun Jun 10 04:42:12 2007
@@ -1,148 +1,147 @@
-
-<project basedir="." default="generate.service">
-
-	<property name="dest.dir" value="build" />
-
-	<property name="dest.dir.classes" value="${dest.dir}/classes" />
-
-	<property name="dest.dir.lib" value="${dest.dir}/lib" />
-
-	<property name="axis2.home" value="../../" />
-
-	<property name="repository.path" value="${axis2.home}/repository/services" />
-
-	<path id="build.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<path id="client.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${dest.dir.lib}">
-			<include name="*.jar" />
-		</fileset>
-
-	</path>
-	<target name="clean">
-		<delete dir="${dest.dir}" />
-		<delete dir="src" includes="sample/addressbook/stub/**"/>
-	</target>
-
-	<target name="prepare">
-
-		<mkdir dir="${dest.dir}" />
-
-		<mkdir dir="${dest.dir.classes}" />
-
-		<mkdir dir="${dest.dir.lib}" />
-
-		<mkdir dir="${dest.dir.classes}/META-INF" />
-
-	</target>
-
-	<target name="generate.service" depends="clean,prepare">
-
-		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
-			<classpath refid="build.class.path" />
-		</javac>
-
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
-
-		<copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
-
-	</target>
-
-	<target name="rpc.client" depends="clean,prepare">
-
-		<antcall target="rpc.client.compile" />
-
-		<antcall target="rpc.client.jar" />
-
-		<antcall target="rpc.client.run">
-			<param name="uri" value="${uri}"/>
-		</antcall>
-
-	</target>
-
-	<target name="rpc.client.compile">
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
-			<classpath refid="build.class.path" />
-		</javac>
-	</target>
-
-	<target name="rpc.client.jar">
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
-	</target>
-
-	<target name="rpc.client.run">
-		<java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
-			<classpath refid="client.class.path" />
-			<arg value="${uri}" />
-		</java>
-	</target>
-
-	<target name="check-parameters">
-		<condition property="parameters.set">
-			<and>
-				<isset property="wsdl" />
-			</and>
-		</condition>
-		<!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
-		<antcall target="print-usage" />
-	</target>
-
-	<target name="print-usage" unless="parameters.set">
-		<echo message="ant adb.client -Dwsdl='http://&lt;yourhost>:&lt;yourport>/axis2/services/AdressBookService?wsdl'" />
-	</target>
-
-	<target name="adb.client" depends="check-parameters" if="parameters.set">
-
-		<antcall target="clean" />
-		<antcall target="prepare" />
-		<antcall target="adb.client.codegen-stub">
-			<param name="wsdl" value="${wsdl}"/>
-		</antcall>
-
-		<antcall target="adb.client.compile" />
-
-		<antcall target="adb.client.jar" />
-
-		<antcall target="adb.client.run" />
-
-	</target>
-
-	<target name="adb.client.codegen-stub">
-		<java classname="org.apache.axis2.wsdl.WSDL2Java">
-			<arg value="-uri" />
-			<arg value="${wsdl}" />
-			<arg value="-p" />
-			<arg value="sample.addressbook.stub" />
-			<arg value="-o" />
-			<arg value="src" />
-			<arg value="-f" />
-			<classpath refid="build.class.path" />
-		</java>
-	</target>
-
-	<target name="adb.client.compile">
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
-			<classpath refid="build.class.path" />
-		</javac>
-	</target>
-
-	<target name="adb.client.jar">
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
-	</target>
-
-	<target name="adb.client.run">
-		<java classname="sample.addressbook.adbclient.AddressBookADBClient">
-			<classpath refid="client.class.path" />
-		</java>
-	</target>
-
-</project>
+<project name="pojo" basedir="." default="generate.service">
+
+	<property name="dest.dir" value="build" />
+
+	<property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+	<property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+	<property name="axis2.home" value="../../" />
+
+	<property name="repository.path" value="${axis2.home}/repository/services" />
+
+	<path id="build.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<path id="client.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${dest.dir.lib}">
+			<include name="*.jar" />
+		</fileset>
+
+	</path>
+	<target name="clean">
+		<delete dir="${dest.dir}" />
+		<delete dir="src" includes="sample/addressbook/stub/**"/>
+	</target>
+
+	<target name="prepare">
+
+		<mkdir dir="${dest.dir}" />
+
+		<mkdir dir="${dest.dir.classes}" />
+
+		<mkdir dir="${dest.dir.lib}" />
+
+		<mkdir dir="${dest.dir.classes}/META-INF" />
+
+	</target>
+
+	<target name="generate.service" depends="clean,prepare">
+
+		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
+			<classpath refid="build.class.path" />
+		</javac>
+
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
+
+		<copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
+
+	</target>
+
+	<target name="rpc.client" depends="clean,prepare">
+
+		<antcall target="rpc.client.compile" />
+
+		<antcall target="rpc.client.jar" />
+
+		<antcall target="rpc.client.run">
+			<param name="uri" value="${uri}"/>
+		</antcall>
+
+	</target>
+
+	<target name="rpc.client.compile">
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
+			<classpath refid="build.class.path" />
+		</javac>
+	</target>
+
+	<target name="rpc.client.jar">
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
+	</target>
+
+	<target name="rpc.client.run">
+		<java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
+			<classpath refid="client.class.path" />
+			<arg value="${uri}" />
+		</java>
+	</target>
+
+	<target name="check-parameters">
+		<condition property="parameters.set">
+			<and>
+				<isset property="wsdl" />
+			</and>
+		</condition>
+		<!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
+		<antcall target="print-usage" />
+	</target>
+
+	<target name="print-usage" unless="parameters.set">
+		<echo message="ant adb.client -Dwsdl='http://&lt;yourhost>:&lt;yourport>/axis2/services/AdressBookService?wsdl'" />
+	</target>
+
+	<target name="adb.client" depends="check-parameters" if="parameters.set">
+
+		<antcall target="clean" />
+		<antcall target="prepare" />
+		<antcall target="adb.client.codegen-stub">
+			<param name="wsdl" value="${wsdl}"/>
+		</antcall>
+
+		<antcall target="adb.client.compile" />
+
+		<antcall target="adb.client.jar" />
+
+		<antcall target="adb.client.run" />
+
+	</target>
+
+	<target name="adb.client.codegen-stub">
+		<java classname="org.apache.axis2.wsdl.WSDL2Java">
+			<arg value="-uri" />
+			<arg value="${wsdl}" />
+			<arg value="-p" />
+			<arg value="sample.addressbook.stub" />
+			<arg value="-o" />
+			<arg value="src" />
+			<arg value="-f" />
+			<classpath refid="build.class.path" />
+		</java>
+	</target>
+
+	<target name="adb.client.compile">
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
+			<classpath refid="build.class.path" />
+		</javac>
+	</target>
+
+	<target name="adb.client.jar">
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
+	</target>
+
+	<target name="adb.client.run">
+		<java classname="sample.addressbook.adbclient.AddressBookADBClient">
+			<classpath refid="client.class.path" />
+		</java>
+	</target>
+
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/pojoguide/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/pojoguide/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/pojoguide/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/pojoguide/build.xml Sun Jun 10 04:42:12 2007
@@ -1,77 +1,76 @@
-
-<project basedir="." default="generate.service">
-
-	<property name="service.name" value="WeatherService" />
-	<property name="dest.dir" value="build" />
-	<property name="dest.dir.classes" value="${dest.dir}/${service.name}" />
-	<property name="dest.dir.lib" value="${dest.dir}/lib" />	
-	<property name="axis2.home" value="../../" />
-	<property name="repository.path" value="${axis2.home}/repository" />
-
-	<path id="build.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<path id="client.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<fileset dir="${dest.dir.lib}">
-			<include name="*.jar" />
-		</fileset>
-
-	</path>
-	<target name="clean">
-		<delete dir="${dest.dir}" />
-		<delete dir="src" includes="sample/pojo/stub/**"/>
-	</target>
-
-	<target name="prepare">
-		<mkdir dir="${dest.dir}" />
-		<mkdir dir="${dest.dir}/lib" />
-		<mkdir dir="${dest.dir.classes}" />
-		<mkdir dir="${dest.dir.classes}/META-INF" />
-	</target>
-
-	<target name="generate.service" depends="clean,prepare">
-
-		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/pojo/service/**,sample/pojo/data/**">
-			<classpath refid="build.class.path" />
-		</javac>
-		
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service.name}.aar" />
-
-		<copy file="${dest.dir}/${service.name}.aar" tofile="${repository.path}/services/${service.name}.aar" overwrite="true" />
-		
-	</target>
-
-	<target name="rpc.client" depends="clean,prepare">
-
-		<antcall target="rpc.client.compile" />
-
-		<antcall target="rpc.client.jar" />
-
-		<antcall target="rpc.client.run" />
-
-	</target>
-
-	<target name="rpc.client.compile">
-		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/pojo/rpcclient/**,sample/pojo/data/**">
-			<classpath refid="build.class.path" />
-		</javac>
-	</target>
-
-	<target name="rpc.client.jar">
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/pojo/rpcclient/**,sample/pojo/data/**" />
-	</target>
-
-	<target name="rpc.client.run">
-		<java classname="sample.pojo.rpcclient.WeatherRPCClient">
-			<classpath refid="client.class.path" />
-		</java>
-	</target>
-</project>
+<project name="pojoguide" basedir="." default="generate.service">
+
+	<property name="service.name" value="WeatherService" />
+	<property name="dest.dir" value="build" />
+	<property name="dest.dir.classes" value="${dest.dir}/${service.name}" />
+	<property name="dest.dir.lib" value="${dest.dir}/lib" />	
+	<property name="axis2.home" value="../../" />
+	<property name="repository.path" value="${axis2.home}/repository" />
+
+	<path id="build.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<path id="client.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<fileset dir="${dest.dir.lib}">
+			<include name="*.jar" />
+		</fileset>
+
+	</path>
+	<target name="clean">
+		<delete dir="${dest.dir}" />
+		<delete dir="src" includes="sample/pojo/stub/**"/>
+	</target>
+
+	<target name="prepare">
+		<mkdir dir="${dest.dir}" />
+		<mkdir dir="${dest.dir}/lib" />
+		<mkdir dir="${dest.dir.classes}" />
+		<mkdir dir="${dest.dir.classes}/META-INF" />
+	</target>
+
+	<target name="generate.service" depends="clean,prepare">
+
+		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/pojo/service/**,sample/pojo/data/**">
+			<classpath refid="build.class.path" />
+		</javac>
+		
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service.name}.aar" />
+
+		<copy file="${dest.dir}/${service.name}.aar" tofile="${repository.path}/services/${service.name}.aar" overwrite="true" />
+		
+	</target>
+
+	<target name="rpc.client" depends="clean,prepare">
+
+		<antcall target="rpc.client.compile" />
+
+		<antcall target="rpc.client.jar" />
+
+		<antcall target="rpc.client.run" />
+
+	</target>
+
+	<target name="rpc.client.compile">
+		<javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/pojo/rpcclient/**,sample/pojo/data/**">
+			<classpath refid="build.class.path" />
+		</javac>
+	</target>
+
+	<target name="rpc.client.jar">
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/pojo/rpcclient/**,sample/pojo/data/**" />
+	</target>
+
+	<target name="rpc.client.run">
+		<java classname="sample.pojo.rpcclient.WeatherRPCClient">
+			<classpath refid="client.class.path" />
+		</java>
+	</target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/pojoguidespring/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/pojoguidespring/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/pojoguidespring/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/pojoguidespring/build.xml Sun Jun 10 04:42:12 2007
@@ -1,112 +1,112 @@
-<project basedir="." default="generate.service" name="WeatherSpringService">
-
-	<property environment="env" />
-	<property name="service-name" value="WeatherSpringService" />
-	<property name="dest.dir" value="target" />
-	<property name="axis2.home" value="../../" />
-
-	<property name="repository.path" value="${axis2.home}/repository" />
-
-	<property name="dest.dir.classes" value="${dest.dir}/classes" />
-
-	<property name="dest.dir.lib" value="${dest.dir}/lib" />
-
-	<property name="catalina-modules" value="${env.CATALINA_HOME}/webapps/axis2/WEB-INF/services" />
-
-	<path id="build.class.path">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<!--add downloaded spring jars to classpath-->
-		<fileset dir="lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<path id="client.class.path">
-		<pathelement location="${dest.dir.classes}" />
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-	</path>
-
-	<target name="clean">
-		<delete dir="${dest.dir}" />
-		<delete dir="lib"/>
-	</target>
-
-	<target name="prepare" depends="clean">
-
-		<mkdir dir="${dest.dir}" />
-
-		<mkdir dir="${dest.dir.classes}" />
-
-		<mkdir dir="${dest.dir.classes}/META-INF" />
-		<antcall target="download.jars"/>
-	</target>
-
-	<target name="generate.service" depends="prepare">
-
-		<mkdir dir="${dest.dir}" />
-
-		<mkdir dir="${dest.dir.classes}" />
-		<mkdir dir="${dest.dir.classes}/META-INF" />
-
-		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-		<copy file="src/applicationContext.xml" tofile="${dest.dir.classes}/applicationContext.xml" overwrite="true" />
-
-		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
-			<classpath refid="build.class.path" />
-		</javac>
-
-		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service-name}.aar" />
-
-		<copy file="${dest.dir}/${service-name}.aar" tofile="${repository.path}/services/${service-name}.aar" overwrite="true" />
-
-	</target>
-
-	<target name="rpc.client">
-		<antcall target="rpc.client.run" />
-	</target>
-
-	<target name="rpc.client.compile" depends="prepare">
-		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="client/**">
-			<classpath refid="build.class.path" />
-		</javac>
-	</target>
-
-	<target name="rpc.client.run" depends="rpc.client.compile">
-		<echo message="${ant.file}" />
-		<java classname="client.WeatherSpringRPCClient">
-			<classpath refid="client.class.path" />
-		</java>
-	</target>
-
-	<target name="copy.to.tomcat" depends="generate.service">
-		<copy file="${dest.dir}/${service-name}.aar" todir="${catalina-modules}" />
-	</target>
-
-        <!--We are not shipping spring jar with the release. This target can be used to
-        download spring jar to run this sample.-->
-	<target name="checkSpringJarAvailability">
-	    <!--if either one of jar is not available, spring_available will set to false-->
-	    <condition property="spring_available">
-		<and>
-		        <available file="lib/spring-core-1.2.8.jar" />
-			<available file="lib/spring-context-1.2.8.jar" />			
-	         	<available file="lib/spring-beans-1.2.8.jar" />
-		</and>
-	    </condition>
-	</target>
-
-	<target name="download.jars" depends="checkSpringJarAvailability" unless="spring_available">
-	    <echo message="Spring jars not available.Downloading...."/>
-	    <mkdir dir="lib"/>
-            <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-core-1.2.8.jar"
-	             dest="lib/spring-core-1.2.8.jar" verbose="true"/>
-	    <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-context-1.2.8.jar"
-	             dest="lib/spring-context-1.2.8.jar" verbose="true"/>
-	    <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-beans-1.2.8.jar"
-	             dest="lib/spring-beans-1.2.8.jar" verbose="true"/>
-	</target>
-</project>
+<project name="pojoguidespring" basedir="." default="generate.service" name="WeatherSpringService">
+
+	<property environment="env" />
+	<property name="service-name" value="WeatherSpringService" />
+	<property name="dest.dir" value="target" />
+	<property name="axis2.home" value="../../" />
+
+	<property name="repository.path" value="${axis2.home}/repository" />
+
+	<property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+	<property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+	<property name="catalina-modules" value="${env.CATALINA_HOME}/webapps/axis2/WEB-INF/services" />
+
+	<path id="build.class.path">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<!--add downloaded spring jars to classpath-->
+		<fileset dir="lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<path id="client.class.path">
+		<pathelement location="${dest.dir.classes}" />
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+
+	<target name="clean">
+		<delete dir="${dest.dir}" />
+		<delete dir="lib"/>
+	</target>
+
+	<target name="prepare" depends="clean">
+
+		<mkdir dir="${dest.dir}" />
+
+		<mkdir dir="${dest.dir.classes}" />
+
+		<mkdir dir="${dest.dir.classes}/META-INF" />
+		<antcall target="download.jars"/>
+	</target>
+
+	<target name="generate.service" depends="prepare">
+
+		<mkdir dir="${dest.dir}" />
+
+		<mkdir dir="${dest.dir.classes}" />
+		<mkdir dir="${dest.dir.classes}/META-INF" />
+
+		<copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+		<copy file="src/applicationContext.xml" tofile="${dest.dir.classes}/applicationContext.xml" overwrite="true" />
+
+		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
+			<classpath refid="build.class.path" />
+		</javac>
+
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service-name}.aar" />
+
+		<copy file="${dest.dir}/${service-name}.aar" tofile="${repository.path}/services/${service-name}.aar" overwrite="true" />
+
+	</target>
+
+	<target name="rpc.client">
+		<antcall target="rpc.client.run" />
+	</target>
+
+	<target name="rpc.client.compile" depends="prepare">
+		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="client/**">
+			<classpath refid="build.class.path" />
+		</javac>
+	</target>
+
+	<target name="rpc.client.run" depends="rpc.client.compile">
+		<echo message="${ant.file}" />
+		<java classname="client.WeatherSpringRPCClient">
+			<classpath refid="client.class.path" />
+		</java>
+	</target>
+
+	<target name="copy.to.tomcat" depends="generate.service">
+		<copy file="${dest.dir}/${service-name}.aar" todir="${catalina-modules}" />
+	</target>
+
+        <!--We are not shipping spring jar with the release. This target can be used to
+        download spring jar to run this sample.-->
+	<target name="checkSpringJarAvailability">
+	    <!--if either one of jar is not available, spring_available will set to false-->
+	    <condition property="spring_available">
+		<and>
+		        <available file="lib/spring-core-1.2.8.jar" />
+			<available file="lib/spring-context-1.2.8.jar" />			
+	         	<available file="lib/spring-beans-1.2.8.jar" />
+		</and>
+	    </condition>
+	</target>
+
+	<target name="download.jars" depends="checkSpringJarAvailability" unless="spring_available">
+	    <echo message="Spring jars not available.Downloading...."/>
+	    <mkdir dir="lib"/>
+            <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-core-1.2.8.jar"
+	             dest="lib/spring-core-1.2.8.jar" verbose="true"/>
+	    <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-context-1.2.8.jar"
+	             dest="lib/spring-context-1.2.8.jar" verbose="true"/>
+	    <get src="http://ws.zones.apache.org/repository/org.springframework/jars/spring-beans-1.2.8.jar"
+	             dest="lib/spring-beans-1.2.8.jar" verbose="true"/>
+	</target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstart/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstart/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstart/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstart/build.xml Sun Jun 10 04:42:12 2007
@@ -1,57 +1,57 @@
-<project basedir="." default="generate.service">
-
-    <property environment="env"/>
-    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
-    <property name="build.dir" value="build"/>
-
-    <path id="axis2.classpath">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-
-    <target name="compile.service">
-        <mkdir dir="${build.dir}"/>
-        <mkdir dir="${build.dir}/classes"/>
-
-        <!--First let's compile the classes-->
-        <javac debug="on" 
-               fork="true"
-               destdir="${build.dir}/classes" 
-               srcdir="${basedir}/src"
-               classpathref="axis2.classpath">
-        </javac>
-    </target>
-
-    <target name="generate.wsdl" depends="compile.service">
-        <taskdef name="java2wsdl"
-                 classname="org.apache.ws.java2wsdl.Java2WSDLTask"
-                 classpathref="axis2.classpath"/>
-        <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
-                   outputLocation="${build.dir}"
-                   targetNamespace="http://quickstart.samples/"
-                   schemaTargetNamespace="http://quickstart.samples/xsd">
-            <classpath>
-                <pathelement path="${axis2.classpath}"/>
-                <pathelement location="${build.dir}/classes"/>
-            </classpath>
-        </java2wsdl>
-    </target>
-
-    <target name="generate.service" depends="compile.service">
-        <!--aar them up -->
-        <copy toDir="${build.dir}/classes" failonerror="false">
-            <fileset dir="${basedir}/resources">
-                <include name="**/*.xml"/>
-            </fileset>
-        </copy>
-        <jar destfile="${build.dir}/StockQuoteService.aar">
-            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
-        </jar>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-    </target>
-</project>
+<project name="quickstart" basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+
+    <target name="compile.service">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/classes"/>
+
+        <!--First let's compile the classes-->
+        <javac debug="on" 
+               fork="true"
+               destdir="${build.dir}/classes" 
+               srcdir="${basedir}/src"
+               classpathref="axis2.classpath">
+        </javac>
+    </target>
+
+    <target name="generate.wsdl" depends="compile.service">
+        <taskdef name="java2wsdl"
+                 classname="org.apache.ws.java2wsdl.Java2WSDLTask"
+                 classpathref="axis2.classpath"/>
+        <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
+                   outputLocation="${build.dir}"
+                   targetNamespace="http://quickstart.samples/"
+                   schemaTargetNamespace="http://quickstart.samples/xsd">
+            <classpath>
+                <pathelement path="${axis2.classpath}"/>
+                <pathelement location="${build.dir}/classes"/>
+            </classpath>
+        </java2wsdl>
+    </target>
+
+    <target name="generate.service" depends="compile.service">
+        <!--aar them up -->
+        <copy toDir="${build.dir}/classes" failonerror="false">
+            <fileset dir="${basedir}/resources">
+                <include name="**/*.xml"/>
+            </fileset>
+        </copy>
+        <jar destfile="${build.dir}/StockQuoteService.aar">
+            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+        </jar>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstartadb/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstartadb/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstartadb/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstartadb/build.xml Sun Jun 10 04:42:12 2007
@@ -1,81 +1,81 @@
-<project basedir="." default="generate.service">
-
-    <property environment="env"/>
-    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
-    <property name="build.dir" value="build"/>
-
-    <path id="axis2.classpath">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-    <path id="client.class.path">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar" />
-        </fileset>
-        <fileset dir="${build.dir}/client/build/lib" >
-            <include name="*.jar" />
-        </fileset>
-    </path>
-
-    <target name="init">
-        <mkdir dir="${build.dir}"/>
-        <mkdir dir="${build.dir}/service"/>
-    </target>
-
-    <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.quickstart.service.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>
-
-    <target name="generate.client" 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}/client"
-                   packageName="samples.quickstart.service.adb"
-                   databindingName="adb"
-                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
-                   language="java"
-                   synconly="true"/>
-        <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
-              toDir="${build.dir}/client/src/samples/quickstart/clients/"
-              overwrite="yes">
-        </copy>
-        <ant dir="${build.dir}/client"/>
-    </target>
-
-    <target name="generate.all" depends="generate.service, generate.client"/>
-
-    <target name="run.client" depends="generate.client">
-        <java classname="samples.quickstart.clients.ADBClient">
-            <classpath refid="client.class.path" />
-        </java>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-    </target>
-</project>
+<project name="quickstartadb" basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    <path id="client.class.path">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar" />
+        </fileset>
+        <fileset dir="${build.dir}/client/build/lib" >
+            <include name="*.jar" />
+        </fileset>
+    </path>
+
+    <target name="init">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/service"/>
+    </target>
+
+    <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.quickstart.service.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>
+
+    <target name="generate.client" 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}/client"
+                   packageName="samples.quickstart.service.adb"
+                   databindingName="adb"
+                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
+                   language="java"
+                   synconly="true"/>
+        <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
+              toDir="${build.dir}/client/src/samples/quickstart/clients/"
+              overwrite="yes">
+        </copy>
+        <ant dir="${build.dir}/client"/>
+    </target>
+
+    <target name="generate.all" depends="generate.service, generate.client"/>
+
+    <target name="run.client" depends="generate.client">
+        <java classname="samples.quickstart.clients.ADBClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/build.xml Sun Jun 10 04:42:12 2007
@@ -1,55 +1,55 @@
-<project basedir="." default="generate.service">
-
-    <property environment="env"/>
-    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
-    <property name="build.dir" value="build"/>
-
-    <path id="axis2.classpath">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-	<path id="client.class.path">
-		<fileset dir="${AXIS2_HOME}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<pathelement location="${build.dir}/classes" />
-	</path>
-
-    <target name="compile">
-        <mkdir dir="${build.dir}"/>
-        <mkdir dir="${build.dir}/classes"/>
-
-        <!--First let's compile the classes-->
-        <javac debug="on" 
-               fork="true"
-               destdir="${build.dir}/classes" 
-               srcdir="${basedir}/src"
-               classpathref="axis2.classpath">
-        </javac>
-    </target>
-
-    <target name="generate.service" depends="compile">
-        <!--aar them up -->
-        <copy toDir="${build.dir}/classes" failonerror="false">
-            <fileset dir="${basedir}/resources">
-                <include name="**/*.xml"/>
-                <include name="**/*.wsdl"/>
-            </fileset>
-        </copy>
-        <jar destfile="${build.dir}/StockQuoteService.aar">
-            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
-        </jar>
-    </target>
-
-    <target name="run.client" depends="compile">
-        <java classname="samples.quickstart.clients.AXIOMClient">
-            <classpath refid="client.class.path" />
-        </java>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-    </target>
-</project>
+<project name="quickstartaxiom" basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+	<path id="client.class.path">
+		<fileset dir="${AXIS2_HOME}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<pathelement location="${build.dir}/classes" />
+	</path>
+
+    <target name="compile">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/classes"/>
+
+        <!--First let's compile the classes-->
+        <javac debug="on" 
+               fork="true"
+               destdir="${build.dir}/classes" 
+               srcdir="${basedir}/src"
+               classpathref="axis2.classpath">
+        </javac>
+    </target>
+
+    <target name="generate.service" depends="compile">
+        <!--aar them up -->
+        <copy toDir="${build.dir}/classes" failonerror="false">
+            <fileset dir="${basedir}/resources">
+                <include name="**/*.xml"/>
+                <include name="**/*.wsdl"/>
+            </fileset>
+        </copy>
+        <jar destfile="${build.dir}/StockQuoteService.aar">
+            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+        </jar>
+    </target>
+
+    <target name="run.client" depends="compile">
+        <java classname="samples.quickstart.clients.AXIOMClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java Sun Jun 10 04:42:12 2007
@@ -1,6 +1,8 @@
 package samples.quickstart.service.axiom;
 
 import javax.xml.stream.XMLStreamException;
+import javax.xml.namespace.QName;
+
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
@@ -10,6 +12,8 @@
 public class StockQuoteService {
     private HashMap map = new HashMap();
 
+    private String namespace = "http://quickstart.samples/xsd";
+
     public OMElement getPrice(OMElement element) throws XMLStreamException {
         element.build();
         element.detach();
@@ -24,7 +28,7 @@
         }
         OMFactory fac = OMAbstractFactory.getOMFactory();
         OMNamespace omNs =
-            fac.createOMNamespace("http://quickstart.samples/xsd", "ns");
+            fac.createOMNamespace(namespace, "ns");
         OMElement method = fac.createOMElement("getPriceResponse", omNs);
         OMElement value = fac.createOMElement("return", omNs);
         value.addChild(fac.createOMText(value, returnText));
@@ -36,10 +40,10 @@
         element.build();
         element.detach();
 
-        OMElement symbolElement = element.getFirstElement();
+        OMElement symbolElement = element.getFirstChildWithName(new QName(namespace, "symbol"));
         String symbol = symbolElement.getText();
 
-        OMElement priceElement = (OMElement)symbolElement.getNextOMSibling();
+        OMElement priceElement = element.getFirstChildWithName(new QName(namespace, "price"));
         String price = priceElement.getText();
 
         map.put(symbol, new Double(price));

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstartjibx/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstartjibx/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstartjibx/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstartjibx/build.xml Sun Jun 10 04:42:12 2007
@@ -1,83 +1,83 @@
-<project basedir="." default="generate.all">
-
-    <property environment="env"/>
-    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
-    <property name="build.dir" value="build"/>
-
-    <path id="axis2.classpath">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-    <path id="client.class.path">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar" />
-        </fileset>
-        <fileset dir="${build.dir}/client/build/lib" >
-            <include name="*.jar" />
-        </fileset>
-    </path>
-
-    <target name="init">
-        <delete dir="${build.dir}"/>
-        <mkdir dir="${build.dir}"/>
-    </target>
-
-    <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.jibx"
-                   language="java"
-                   databindingName="jibx"
-                   unwrap="true"
-                   synconly="true"
-                   serverside="true"
-                   serverSideInterface="true"
-                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
-                   generateservicexml="true"/>
-        <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
-              toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
-              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>
-
-    <target name="generate.client" 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}/client"
-                   packageName="samples.quickstart.service.jibx"
-                   databindingName="jibx"
-                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
-                   language="java"
-                   unwrap="true"
-                   synconly="true"/>
-        <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.java"
-              toDir="${build.dir}/client/src/samples/quickstart/clients/"
-              overwrite="yes">
-        </copy>
-        <ant dir="${build.dir}/client"/>
-    </target>
-
-    <target name="generate.all" depends="generate.service, generate.client"/>
-
-    <target name="run.client" depends="generate.client">
-        <java classname="samples.quickstart.clients.JiBXClient">
-            <classpath refid="client.class.path" />
-        </java>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-    </target>
-</project>
+<project name="quickstartjibx" basedir="." default="generate.all">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    <path id="client.class.path">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar" />
+        </fileset>
+        <fileset dir="${build.dir}/client/build/lib" >
+            <include name="*.jar" />
+        </fileset>
+    </path>
+
+    <target name="init">
+        <delete dir="${build.dir}"/>
+        <mkdir dir="${build.dir}"/>
+    </target>
+
+    <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.jibx"
+                   language="java"
+                   databindingName="jibx"
+                   unwrap="true"
+                   synconly="true"
+                   serverside="true"
+                   serverSideInterface="true"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+                   generateservicexml="true"/>
+        <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
+              toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
+              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>
+
+    <target name="generate.client" 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}/client"
+                   packageName="samples.quickstart.service.jibx"
+                   databindingName="jibx"
+                   namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+                   language="java"
+                   unwrap="true"
+                   synconly="true"/>
+        <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.java"
+              toDir="${build.dir}/client/src/samples/quickstart/clients/"
+              overwrite="yes">
+        </copy>
+        <ant dir="${build.dir}/client"/>
+    </target>
+
+    <target name="generate.all" depends="generate.service, generate.client"/>
+
+    <target name="run.client" depends="generate.client">
+        <java classname="samples.quickstart.clients.JiBXClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/quickstartxmlbeans/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/quickstartxmlbeans/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/quickstartxmlbeans/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/quickstartxmlbeans/build.xml Sun Jun 10 04:42:12 2007
@@ -1,81 +1,81 @@
-<project basedir="." default="generate.service">
-
-    <property environment="env"/>
-    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
-    <property name="build.dir" value="build"/>
-
-    <path id="axis2.classpath">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-    <path id="client.class.path">
-        <fileset dir="${AXIS2_HOME}/lib">
-            <include name="*.jar" />
-        </fileset>
-        <fileset dir="${build.dir}/client/build/lib" >
-            <include name="*.jar" />
-        </fileset>
-    </path>
-
-    <target name="init">
-        <mkdir dir="${build.dir}"/>
-        <mkdir dir="${build.dir}/service"/>
-    </target>
-
-    <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.xmlbeans"
-                   language="java"
-                   databindingName="xmlbeans"
-                   synconly="true"
-                   serverside="true"
-                   serverSideInterface="true"
-                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
-                   generateservicexml="true"/>
-        <copy file="${basedir}/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java"
-              toDir="${build.dir}/service/src/samples/quickstart/service/xmlbeans/"
-              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>
-
-    <target name="generate.client" 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}/client"
-                   packageName="samples.quickstart.service.xmlbeans"
-                   databindingName="xmlbeans"
-                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
-                   language="java"
-                   synconly="true"/>
-        <copy file="${basedir}/src/samples/quickstart/clients/XMLBEANSClient.java"
-              toDir="${build.dir}/client/src/samples/quickstart/clients/"
-              overwrite="yes">
-        </copy>
-        <ant dir="${build.dir}/client"/>
-    </target>
-
-    <target name="generate.all" depends="generate.service, generate.client"/>
-
-    <target name="run.client" depends="generate.client">
-        <java classname="samples.quickstart.clients.XMLBEANSClient">
-            <classpath refid="client.class.path" />
-        </java>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.dir}"/>
-    </target>
-</project>
+<project name="quickstartxmlbeans" basedir="." default="generate.service">
+
+    <property environment="env"/>
+    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+    <property name="build.dir" value="build"/>
+
+    <path id="axis2.classpath">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    <path id="client.class.path">
+        <fileset dir="${AXIS2_HOME}/lib">
+            <include name="*.jar" />
+        </fileset>
+        <fileset dir="${build.dir}/client/build/lib" >
+            <include name="*.jar" />
+        </fileset>
+    </path>
+
+    <target name="init">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/service"/>
+    </target>
+
+    <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.xmlbeans"
+                   language="java"
+                   databindingName="xmlbeans"
+                   synconly="true"
+                   serverside="true"
+                   serverSideInterface="true"
+                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
+                   generateservicexml="true"/>
+        <copy file="${basedir}/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java"
+              toDir="${build.dir}/service/src/samples/quickstart/service/xmlbeans/"
+              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>
+
+    <target name="generate.client" 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}/client"
+                   packageName="samples.quickstart.service.xmlbeans"
+                   databindingName="xmlbeans"
+                   namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
+                   language="java"
+                   synconly="true"/>
+        <copy file="${basedir}/src/samples/quickstart/clients/XMLBEANSClient.java"
+              toDir="${build.dir}/client/src/samples/quickstart/clients/"
+              overwrite="yes">
+        </copy>
+        <ant dir="${build.dir}/client"/>
+    </target>
+
+    <target name="generate.all" depends="generate.service, generate.client"/>
+
+    <target name="run.client" depends="generate.client">
+        <java classname="samples.quickstart.clients.XMLBEANSClient">
+            <classpath refid="client.class.path" />
+        </java>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+</project>

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/script/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/script/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/script/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/script/build.xml Sun Jun 10 04:42:12 2007
@@ -1,4 +1,4 @@
-<project name="samples" default="alltests">
+<project name="script" default="alltests">
     <property name="mainDir" value="../.."/>
     <path id="axis.classpath">
         <fileset dir="../../lib">

Modified: webservices/axis2/branches/java/jaxws21/modules/samples/security/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/jaxws21/modules/samples/security/build.xml?view=diff&rev=545866&r1=545865&r2=545866
==============================================================================
--- webservices/axis2/branches/java/jaxws21/modules/samples/security/build.xml (original)
+++ webservices/axis2/branches/java/jaxws21/modules/samples/security/build.xml Sun Jun 10 04:42:12 2007
@@ -15,7 +15,7 @@
  ! See the License for the specific language governing permissions and
  ! limitations under the License.
  !-->
-<project basedir="." default="setup">
+<project name="security" basedir="." default="setup">
 
 	<property name="lib.dir" value="../lib"/>
 	<property name="modules.dir" value="../"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message