axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r290366 - in /webservices/axis2/trunk/java/modules/samples: ./ resources/security/ script/userguide/ src/userguide/clients/
Date Tue, 20 Sep 2005 05:44:08 GMT
Author: ruchithf
Date: Mon Sep 19 22:43:53 2005
New Revision: 290366

URL: http://svn.apache.org/viewcvs?rev=290366&view=rev
Log:
Updated the samples: fixed the EPRs and added ant build scripts

Added:
    webservices/axis2/trunk/java/modules/samples/resources/security/build.xml
    webservices/axis2/trunk/java/modules/samples/script/userguide/
    webservices/axis2/trunk/java/modules/samples/script/userguide/build.xml
Modified:
    webservices/axis2/trunk/java/modules/samples/maven.xml
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
    webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java

Modified: webservices/axis2/trunk/java/modules/samples/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/maven.xml?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/maven.xml Mon Sep 19 22:43:53 2005
@@ -106,6 +106,8 @@
                 <include name="userguide/loggingmodule/**/*.class"/>
             </fileset>
         </jar>
+	<ant:copy file="script/userguide/build.xml" tofile="target/samples/userguide/build.xml"/>
+
     </goal>
     <!-- ================================================================ -->
     <!--- Amazon Qaueing Service Sample -->
@@ -290,6 +292,7 @@
 	<ant:copy file="target/security/SecureService.aar" tofile="target/samples/security/SecureService.aar"/>
 	<ant:copy file="target/security/secUtil.jar" tofile="target/samples/security/secUtil.jar"/>
 	<ant:copy file="resources/security/README.txt" tofile="target/samples/security/README.txt"/>
+	<ant:copy file="resources/security/build.xml" tofile="target/samples/security/build.xml"/>
 
 	<delete dir="target/security/"/>
 

Added: webservices/axis2/trunk/java/modules/samples/resources/security/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/resources/security/build.xml?rev=290366&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/resources/security/build.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/resources/security/build.xml Mon Sep 19 22:43:53
2005
@@ -0,0 +1,16 @@
+<project name="samples" default="securitySample">
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="secUtil.jar"/>
+    </path>
+
+
+    <target name="securitySample">
+        <java classname="sample.security.Client" classpathref="axis.classpath" fork="true">
+		<arg value="client_repo"/>
+		<arg value="8080"/>
+	</java>
+    </target>
+</project>

Added: webservices/axis2/trunk/java/modules/samples/script/userguide/build.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/script/userguide/build.xml?rev=290366&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/script/userguide/build.xml (added)
+++ webservices/axis2/trunk/java/modules/samples/script/userguide/build.xml Mon Sep 19 22:43:53
2005
@@ -0,0 +1,32 @@
+<project name="samples" default="alltests">
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="sample.jar"/>
+    </path>
+
+
+    <target name="alltests" depends="testEchoBlockingClient,testEchoBlockingDualClient,testEchoNonBlockingDualClient,testPingClient,testWebServiceWithModuleClient">
+    </target>
+
+    <target name="testEchoBlockingClient">
+        <java classname="userguide.clients.EchoBlockingClient" classpathref="axis.classpath"/>
+    </target>
+    <target name="testEchoBlockingDualClient">
+        <java classname="userguide.clients.EchoBlockingDualClient" classpathref="axis.classpath"/>
+    </target>
+    <target name="testEchoNonBlockingDualClient">
+        <java classname="userguide.clients.EchoNonBlockingDualClient" classpathref="axis.classpath"/>
+    </target>
+    <target name="testPingClient">
+        <java classname="userguide.clients.PingClient" classpathref="axis.classpath"/>
+    </target>
+    <target name="testWebServiceWithModuleClient">
+        <java classname="userguide.clients.ClientForWebServiceWithModule" classpathref="axis.classpath"/>
+    </target>
+
+    <target name="testEchoNonBlockingClient">
+        <java classname="userguide.clients.EchoNonBlockingClient" classpathref="axis.classpath"/>
+    </target>
+</project>

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
Mon Sep 19 22:43:53 2005
@@ -27,7 +27,7 @@
 import java.io.StringWriter;
 
 public class ClientForWebServiceWithModule {
-    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyServiceWithModule/echo");
+    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyServiceWithModule");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
Mon Sep 19 22:43:53 2005
@@ -32,7 +32,7 @@
  * Message Exchage Pattern IN-OUT
  */
 public class EchoBlockingClient {
-    private static EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/myservice");
+    private static EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/MyService");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
Mon Sep 19 22:43:53 2005
@@ -31,7 +31,7 @@
  * Message Exchage Pattern IN-OUT
  */
 public class EchoBlockingDualClient {
-    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
Mon Sep 19 22:43:53 2005
@@ -34,7 +34,7 @@
  * Message Exchage Pattern IN-OUT
  */
 public class EchoNonBlockingClient {
-    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/myservice");
+    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
(original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
Mon Sep 19 22:43:53 2005
@@ -36,7 +36,7 @@
  * Ulitmate asynchronous service invocation sample.
  */
 public class EchoNonBlockingDualClient {
-    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService/echo");
+    private static EndpointReference targetEPR = new EndpointReference("http://127.0.0.1:8080/axis2/services/MyService");
 
     public static void main(String[] args) {
         try {

Modified: webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java?rev=290366&r1=290365&r2=290366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/src/userguide/clients/PingClient.java Mon
Sep 19 22:43:53 2005
@@ -26,7 +26,7 @@
  * Message Exchage Pattern IN-Only 
  */
 public class PingClient {
-    private static EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/myservice");
+    private static EndpointReference targetEPR = new EndpointReference("http://localhost:8080/axis2/services/MyService");
 
     public static void main(String[] args) {
         try {



Mime
View raw message