You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by ja...@apache.org on 2005/05/19 14:04:00 UTC

cvs commit: ws-fx/sandesha/interop sandesha-interop.properties

jaliya      2005/05/19 05:04:00

  Modified:    sandesha/interop/org/apache/sandesha/samples/interop
                        AsyncPingClient.java EchoClientAsyncAck.java
                        EchoClientSyncAck.java
               sandesha/interop/org/apache/sandesha/samples/interop/testclient
                        InteropCallback.java
               sandesha/interop sandesha-interop.properties
  Log:
  Changes were made to handle the interop, testings
  
  Revision  Changes    Path
  1.12      +3 -2      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/AsyncPingClient.java
  
  Index: AsyncPingClient.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/AsyncPingClient.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AsyncPingClient.java	19 May 2005 08:35:52 -0000	1.11
  +++ AsyncPingClient.java	19 May 2005 12:04:00 -0000	1.12
  @@ -39,14 +39,15 @@
           System.out.println("Client started...... Asynchronous ");
           try {
   
  -            RMInitiator.initClient(false);
  +            RMInitiator.initClient();
   
               Service service = new Service();
               Call call = (Call) service.createCall();
   
  -            call.setProperty(Constants.ClientProperties.SYNC, new Boolean(false));
               call.setProperty(Constants.ClientProperties.ACTION, "urn:wsrm:ping");
   
  +            //We need this since we need to see the results in the Monitor.
  +            //For the actual usagd AcksTo will be set by the RM endpoint.
               call.setProperty(Constants.ClientProperties.ACKS_TO,
                       "http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
               
  
  
  
  1.6       +1 -3      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/EchoClientAsyncAck.java
  
  Index: EchoClientAsyncAck.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/EchoClientAsyncAck.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EchoClientAsyncAck.java	19 May 2005 08:35:52 -0000	1.5
  +++ EchoClientAsyncAck.java	19 May 2005 12:04:00 -0000	1.6
  @@ -44,7 +44,7 @@
           try {
               //A separate listner will be started if the value of the input parameter for the mehthod
               // initClient is "false". If the service is of type request/response the parameter value shoule be "false"
  -            RMInitiator.initClient(false);
  +            RMInitiator.initClient();
   
               UUIDGen uuidGen = UUIDGenFactory.getUUIDGen(); //Can use this for continuous testing.
               String str = uuidGen.nextUUID();
  @@ -53,8 +53,6 @@
               Service service = new Service();
               Call call = (Call) service.createCall();
   
  -            //To obtain the
  -            call.setProperty(Constants.ClientProperties.SYNC, new Boolean(false));
               call.setProperty(Constants.ClientProperties.ACTION, "urn:wsrm:echoString");
   
               //These two are additional
  
  
  
  1.6       +1 -3      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/EchoClientSyncAck.java
  
  Index: EchoClientSyncAck.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/EchoClientSyncAck.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EchoClientSyncAck.java	19 May 2005 08:35:52 -0000	1.5
  +++ EchoClientSyncAck.java	19 May 2005 12:04:00 -0000	1.6
  @@ -46,7 +46,7 @@
               //A separate listner will be started if the value of the input parameter for the mehthod
               // initClient is "false". If the service is of type request/response the parameter value
               // shoule be "false"
  -            RMInitiator.initClient(false);
  +            RMInitiator.initClient();
   
               UUIDGen uuidGen = UUIDGenFactory.getUUIDGen(); //Can use this for continuous testing.
               String str = uuidGen.nextUUID();
  @@ -54,8 +54,6 @@
               Service service = new Service();
               Call call = (Call) service.createCall();
   
  -            //Action is required.
  -            call.setProperty(Constants.ClientProperties.SYNC, new Boolean(false));
               call.setProperty(Constants.ClientProperties.ACTION, "urn:wsrm:echoString");
   
               //These two are additional, We need them since we need to monitor the messages using
  
  
  
  1.5       +7 -6      ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/testclient/InteropCallback.java
  
  Index: InteropCallback.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/org/apache/sandesha/samples/interop/testclient/InteropCallback.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- InteropCallback.java	17 May 2005 07:23:46 -0000	1.4
  +++ InteropCallback.java	19 May 2005 12:04:00 -0000	1.5
  @@ -54,8 +54,7 @@
           String entry = "";
           if (result.getMessageId() != null && result.getMessageId() != "")
               entry = "<br /><font color='green' size='2' > Received " + msgType + " Message. ID : " +
  -                    result.getMessageId() +
  -                    "</font>";  // + result.getSequenceId() + " </font>";
  +                    result.getMessageId() + "</font>";  // + result.getSequenceId() + " </font>";
           else
               entry = "<br /><font color='green' size='2' > Received " + msgType + "</font>";
   
  @@ -86,8 +85,7 @@
           String entry = "";
           if (result.getMessageId() != null && result.getMessageId() != "")
               entry = "<br /><font color='blue' size='2' > Sent " + msgType + " Message. ID : " +
  -                    result.getMessageId() +
  -                    "</font>";// + result.getSequenceId() + " </font>";
  +                    result.getMessageId() + "</font>";// + result.getSequenceId() + " </font>";
           else {
               entry = "<br /><font color='blue' size='2' > Sent " + msgType + "</font>";
           }
  @@ -103,8 +101,11 @@
       }
   
       public synchronized void onError(Exception exp) {
  -        String entry = "<br /><font color='red' size='2' > Error : " +  exp.getLocalizedMessage() +
  -                "</font>";// + result.getSequenceId() + " </font>";
  +        String message = "Error Occured During the Interop Test";
  +        if (exp.getMessage() != null) {
  +            message = exp.getMessage();
  +        }
  +        String entry = "<br /><font color='red' size='2' > Error : " + message + "</font>";// + result.getSequenceId() + " </font>";
           boolean b = writer.write(entry);
           if (!b)
               setTestFinished(true);
  
  
  
  1.2       +1 -1      ws-fx/sandesha/interop/sandesha-interop.properties
  
  Index: sandesha-interop.properties
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/interop/sandesha-interop.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sandesha-interop.properties	18 May 2005 12:57:54 -0000	1.1
  +++ sandesha-interop.properties	19 May 2005 12:04:00 -0000	1.2
  @@ -1,3 +1,3 @@
  -IP = 127.0.0.1
  +IP = 127.0.0.l
   PORT = 8080
   WAR_NAME = sandesha-interop
  \ No newline at end of file