cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r763364 - in /cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest: wssc/src/main/java/interop/client/Client.java wssec10/src/main/java/interop/client/Client.java wssec11/src/main/java/interop/client/Client.java
Date Wed, 08 Apr 2009 19:47:06 GMT
Author: dkulp
Date: Wed Apr  8 19:47:06 2009
New Revision: 763364

URL: http://svn.apache.org/viewvc?rev=763364&view=rev
Log:
Fix some arrayindex issues when run from eclipse

Modified:
    cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssc/src/main/java/interop/client/Client.java
    cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec10/src/main/java/interop/client/Client.java
    cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssc/src/main/java/interop/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssc/src/main/java/interop/client/Client.java?rev=763364&r1=763363&r2=763364&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssc/src/main/java/interop/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssc/src/main/java/interop/client/Client.java
Wed Apr  8 19:47:06 2009
@@ -56,8 +56,8 @@
         if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])) {
             local = true;
         }
-        if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])
-            || "ms".equalsIgnoreCase(argv[0])) {        
+        if (argv.length > 0 && ("local".equalsIgnoreCase(argv[0])
+            || "ms".equalsIgnoreCase(argv[0]))) {        
             String tmp[] = new String[argv.length - 1];
             System.arraycopy(argv, 1, tmp, 0, tmp.length);
             argv = tmp;
@@ -66,7 +66,7 @@
         if (argv.length < 1 || "".equals(argv[0]) 
             || argv[0] == null || "ALL".equals(argv[0])) {
             argv = new String[] {
-                //"SecureConversation_UserNameOverTransport_IPingService", 
+                "SecureConversation_UserNameOverTransport_IPingService", 
                              //service not running on the https port
                 "SecureConversation_MutualCertificate10SignEncrypt_IPingService",
                 "AC_IPingService",
@@ -107,7 +107,7 @@
                 //"_KD-SEES_IPingService",
             };
         }
-        //argv = new String[] {argv[4]};
+        //argv = new String[] {argv[0]};
         //argv = new String[] {"_X10_IPingService"};
         
         

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec10/src/main/java/interop/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec10/src/main/java/interop/client/Client.java?rev=763364&r1=763363&r2=763364&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec10/src/main/java/interop/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec10/src/main/java/interop/client/Client.java
Wed Apr  8 19:47:06 2009
@@ -53,8 +53,8 @@
         if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])) {
             local = true;
         }
-        if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])
-            || "ms".equalsIgnoreCase(argv[0])) {        
+        if (argv.length > 0 && ("local".equalsIgnoreCase(argv[0])
+            || "ms".equalsIgnoreCase(argv[0]))) {        
             String tmp[] = new String[argv.length - 1];
             System.arraycopy(argv, 1, tmp, 0, tmp.length);
             argv = tmp;
@@ -67,7 +67,7 @@
                 "MutualCertificate10SignEncryptRsa15TripleDes"
             };
         }
-
+        //argv = new String[] {argv[1]};
         new SpringBusFactory().createBus("etc/client.xml");
         
         List<String> results = new ArrayList<String>();

Modified: cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java?rev=763364&r1=763363&r2=763364&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_security/interopfest/wssec11/src/main/java/interop/client/Client.java
Wed Apr  8 19:47:06 2009
@@ -46,13 +46,13 @@
      */
     public static void main(String argv[])
         throws Exception {
-        boolean local = false;
+        boolean local = true;
 
         if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])) {
             local = true;
         }
-        if (argv.length > 0 && "local".equalsIgnoreCase(argv[0])
-            || "ms".equalsIgnoreCase(argv[0])) {        
+        if (argv.length > 0 && ("local".equalsIgnoreCase(argv[0])
+            || "ms".equalsIgnoreCase(argv[0]))) {        
             String tmp[] = new String[argv.length - 1];
             System.arraycopy(argv, 1, tmp, 0, tmp.length);
             argv = tmp;
@@ -77,13 +77,9 @@
                                  "XD",
                                  "XD-ES",
                                  "XD-SEES",
-                                 //"K",   //NOT YET WORKING [1]
-                                 //"K-NoTimestamp",     //NOT YET WORKING  [1]
-                                 //"KD",   //NOT YET WORKING  [1]
-                                 //"KD-ES"   //NOT YET WORKING  [1]
             };
         }
-        //argv = new String[] {argv[2]};
+        //argv = new String[] {argv[7]};
         URL wsdlLocation = null;
 
         new SpringBusFactory().createBus("etc/client.xml");
@@ -108,12 +104,6 @@
                         IPingService.class
                     );
                 
-                /*
-                ((BindingProvider)port)
-                    .getRequestContext()
-                        .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
-                             "http://localhost:9001/" + portPrefix + "PingService");
-                */
                 
                 final String output = port.echo(INPUT);
                 if (!INPUT.equals(output)) {



Mime
View raw message