axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r227154 - /webservices/axis/trunk/java/modules/samples/src/userguide/clients/
Date Wed, 03 Aug 2005 03:35:29 GMT
Author: deepal
Date: Tue Aug  2 20:35:01 2005
New Revision: 227154

URL: http://svn.apache.org/viewcvs?rev=227154&view=rev
Log:
applying Saminda's patch

Added:
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientSideModuleEngagement.java
Modified:
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
    webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java?rev=227154&r1=227153&r2=227154&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientForWebServiceWithModule.java
Tue Aug  2 20:35:01 2005
@@ -48,6 +48,7 @@
             result.serializeWithCache(XMLOutputFactory.newInstance()
                     .createXMLStreamWriter(writer));
             writer.flush();
+            System.out.println(writer.toString());
 
 
         } catch (AxisFault axisFault) {

Added: webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientSideModuleEngagement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientSideModuleEngagement.java?rev=227154&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientSideModuleEngagement.java
(added)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/ClientSideModuleEngagement.java
Tue Aug  2 20:35:01 2005
@@ -0,0 +1,32 @@
+package userguide.clients;
+
+import org.apache.axis2.clientapi.Call;
+
+import javax.xml.namespace.QName;
+import java.io.File;
+import java.io.FileNotFoundException;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: saminda
+ * Date: Aug 1, 2005
+ * Time: 1:40:23 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ClientSideModuleEngagement {
+    public static void main(String[] args) throws Exception{
+        String home = System.getProperty("user.home");
+        // create this folder at your home. This folder could be anything
+        //then create the "modules" folder
+
+        File repository = new File(home+File.separator+"client-repository");
+        if (!repository.exists()) {
+            throw new FileNotFoundException("Repository Doesnot Exist");
+        }
+        //copy the LoggingModule.mar to "modules" folder.
+        //then modify the axis2.xml that is generating there according to
+        //phases that being included in the "module.xml"
+        Call call = new Call(repository.getAbsolutePath());
+        call.engageModule(new QName("LoggingModule"));
+    }
+}

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java?rev=227154&r1=227153&r2=227154&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingClient.java
Tue Aug  2 20:35:01 2005
@@ -48,6 +48,7 @@
                     .createXMLStreamWriter(writer));
             writer.flush();
 
+            System.out.println(writer.toString());
 
         } catch (AxisFault axisFault) {
             axisFault.printStackTrace();

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java?rev=227154&r1=227153&r2=227154&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoBlockingDualClient.java
Tue Aug  2 20:35:01 2005
@@ -42,6 +42,7 @@
             result.serializeWithCache(XMLOutputFactory.newInstance()
                     .createXMLStreamWriter(writer));
             writer.flush();
+            System.out.println(writer.toString());
 
 
             //Need to close the Client Side Listener.

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java?rev=227154&r1=227153&r2=227154&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingClient.java
Tue Aug  2 20:35:01 2005
@@ -21,7 +21,7 @@
  * Time: 5:08:44 PM
  */
 public class EchoNonBlockingClient {
-    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:8070/axis2/services/MyService/echo");
 
     public static void main(String[] args) {
         try {
@@ -41,6 +41,7 @@
                         result.getResponseEnvelope().serializeWithCache(XMLOutputFactory.newInstance()
                                 .createXMLStreamWriter(writer));
                         writer.flush();
+                        System.out.println(writer.toString());
 
 
                     } catch (XMLStreamException e) {

Modified: webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java?rev=227154&r1=227153&r2=227154&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
(original)
+++ webservices/axis/trunk/java/modules/samples/src/userguide/clients/EchoNonBlockingDualClient.java
Tue Aug  2 20:35:01 2005
@@ -46,6 +46,7 @@
                         result.getResponseEnvelope().serializeWithCache(XMLOutputFactory.newInstance()
                                 .createXMLStreamWriter(writer));
                         writer.flush();
+                        System.out.println(writer.toString());
 
 
                     } catch (XMLStreamException e) {



Mime
View raw message