axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r473774 - in /webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring: README.txt build.xml src/client/WeatherSpringRPCClient.java
Date Sat, 11 Nov 2006 19:02:40 GMT
Author: sanka
Date: Sat Nov 11 11:02:39 2006
New Revision: 473774

URL: http://svn.apache.org/viewvc?view=rev&rev=473774
Log:
Removed the option of parsing the targetEPR.
Cleaned the build.xml


Modified:
    webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/README.txt
    webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml
    webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java

Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/README.txt?view=diff&rev=473774&r1=473773&r2=473774
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/README.txt Sat Nov
11 11:02:39 2006
@@ -11,21 +11,26 @@
 Introduction
 ============
 
+This sample shows how to expose the getters and setters of WeatherSpringService that takes
Weather type Java Object as the argument and the return type. It uses the Spring framework
to initialize the weather property of the WeatherSpringService.
+
 
 Pre-Requisites
 ==============
 
 Apache Ant 1.6.2 or later
 
+Spring-1.2.6.jar or later 
+You need to have this jar in your build and runtime class path. The easiest way to do this
is to copy it to AXIS2HOME/lib directory.
+
 Building the Service
 ====================
 
-Type "ant" from Axis2_HOME/samples/pojoguidespring directory.
+Type: $ant
 
 
 Running the Client
 ==================
-
+Type: $ant rpc.client
 
 Help
 ====

Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml?view=diff&rev=473774&r1=473773&r2=473774
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml Sat Nov
11 11:02:39 2006
@@ -1,111 +1,86 @@
-<project basedir="." default="build" name="WeatherSpringService">
+<project basedir="." default="generate.service" name="WeatherSpringService">
 
-    <property environment="env"/>
-    <property name="service-name" value="WeatherSpringService.aar"/>
-    <property name="dest.dir" value="target"/>
-    <property name="axis2.home" value="c:\apps\axis2" />
+	<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>
+		<fileset dir="src/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>
 
-	<property name="repository.path" value="${axis2.home}/repository/services" />
-
-    <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>
-        <fileset dir="src/lib">
-            <include name="*.jar"/>
-        </fileset>
-    </path>
-
-    <target name="clean">
-        <delete dir="${dest.dir}"/>
-    </target>
-
-    <target name="prepare" depends="clean">
-
-        <mkdir dir="${dest.dir}"/>
-
-        <mkdir dir="${dest.dir.classes}"/>
-
-        <mkdir dir="${dest.dir.classes}/META-INF"/>
-
-    </target>
-
-    <target name="build" depends="prepare">
-
-        <mkdir dir="${dest.dir}"/>
-
-        <mkdir dir="${dest.dir.classes}"/>
-        <mkdir dir="${dest.dir.classes}/lib"/>
-        <mkdir dir="${dest.dir.classes}/META-INF"/>
-
-        <copy file="src/applicationContext.xml"
-              todir="${dest.dir.classes}"
-              overwrite="true"/>
+	<target name="clean">
+		<delete dir="${dest.dir}" />
+	</target>
 
-        <copy file="src/META-INF/services.xml"
-              tofile="${dest.dir.classes}/META-INF/services.xml"
-              overwrite="true"/>
+	<target name="prepare" depends="clean">
 
-        <copy todir="target/classes/lib">
-          <fileset dir="src/lib"/>
-        </copy>
+		<mkdir dir="${dest.dir}" />
 
-        <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
-            <classpath refid="build.class.path"/>
-        </javac>
+		<mkdir dir="${dest.dir.classes}" />
 
-        <jar basedir="${dest.dir.classes}"
-             destfile="${dest.dir}/${service-name}"/>
+		<mkdir dir="${dest.dir.classes}/META-INF" />
 
-    </target>
+	</target>
 
-     <target name="generate.service" depends="prepare">
+	<target name="generate.service" depends="prepare">
 
-        <mkdir dir="${dest.dir}"/>
+		<mkdir dir="${dest.dir}" />
 
-        <mkdir dir="${dest.dir.classes}"/>
-        <mkdir dir="${dest.dir.classes}/META-INF"/>
+		<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/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml"
overwrite="true" />
 
-        <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
-            <classpath refid="build.class.path"/>
-        </javac>
+		<javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
+			<classpath refid="build.class.path" />
+		</javac>
 
-        <jar basedir="${dest.dir.classes}"
-             destfile="${repository.path}/${service-name}"/>
+		<jar basedir="${dest.dir.classes}" destfile="${dest.dir}/${service-name}.aar" />
 
-    </target>
+		<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="run.client" depends="prepare">
-        <mkdir dir="${dest.dir}"/>
-        <mkdir dir="${dest.dir.classes}"/>
+	<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>
 
-        <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="client/**">
-            <classpath refid="build.class.path"/>
-        </javac>
+	<target name="rpc.client.run" depends="rpc.client.compile">
+		<echo message="${ant.file}" />
+		<java classname="client.WeatherSpringRPCClient">
+			<classpath refid="client.class.path" />
+		</java>
+	</target>
 
-        <java classname="client.WeatherSpringRPCClient">
-            <classpath>
-                <pathelement location="${dest.dir.classes}"/>
-                <fileset dir="${axis2.home}/lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </java>
+	<target name="copy.to.tomcat" depends="generate.service">
+		<copy file="${dest.dir}/${service-name}.aar" todir="${catalina-modules}" />
 	</target>
-    <target name="copy.to.tomcat" depends="build">
-        <copy file="${dest.dir}/${service-name}" todir="${catalina-modules}"/>
-    </target>
 
 </project>

Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java?view=diff&rev=473774&r1=473773&r2=473774
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java
Sat Nov 11 11:02:39 2006
@@ -17,8 +17,10 @@
 
         Options options = serviceClient.getOptions();
 
-        EndpointReference targetEPR = new EndpointReference(
-                "http://localhost:8080/axis2/services/WeatherSpringService");
+        EndpointReference targetEPR 
+                = new EndpointReference(
+                "http://localhost:8080/axis2/services/WeatherSpringService"); 
+        
         options.setTo(targetEPR);
 
         // Get the weather (no setting, the Spring Framework has already initialized it for
us)



---------------------------------------------------------------------
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