ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/tests/client/soapHeader/test8/rpc Makefile.am TestClient.cpp
Date Wed, 07 Jul 2004 06:56:26 GMT
roshan      2004/07/06 23:56:26

  Modified:    c/tests/client/soapHeader/test1/rpc Makefile.am
               c/tests/client/soapHeader/test2/rpc TestClient.cpp
                        Makefile.am
               c/tests/client/soapHeader/test3/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/soapHeader/test4/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/soapHeader/test6/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/soapHeader/test8/rpc Makefile.am
                        TestClient.cpp
  Log:
  made changes to reflect the lates changes in the Exceptoin Handling Mechanism
  
  Revision  Changes    Path
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test1/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test1/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	24 Jun 2004 07:45:02 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest1RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest1RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest1RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp
   
   soapHeaderTest1RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.4       +25 -2     ws-axis/c/tests/client/soapHeader/test2/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test2/rpc/TestClient.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestClient.cpp	24 Jun 2004 14:00:44 -0000	1.3
  +++ TestClient.cpp	7 Jul 2004 06:56:26 -0000	1.4
  @@ -20,13 +20,15 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * @author Roshan Weerasuriya (roshan@opensource.lk, roshan@jkcsworld.com)
  + * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
    */
   
   #include <string>
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/IHeaderBlock.h>
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  @@ -122,10 +124,21 @@
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
       //testing echoString 
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
   	printf("successful\n");
       else
   	printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +	printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
   
       //test removing SOAP header block using pointer
       IHeaderBlock *header = NULL;
  @@ -138,11 +151,21 @@
   
       //now the request should have no SOAP headers
   
  +    try 
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
           printf("successful\n");
       else
           printf("failed\n");
  -
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
   
       printf("Soap Header test end\n");
       return 0;
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test2/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test2/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	25 Jun 2004 09:57:41 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest2RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest2RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest2RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   soapHeaderTest2RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test3/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test3/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	25 Jun 2004 04:25:30 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest3RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest3RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest3RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp
   
   soapHeaderTest3RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +26 -1     ws-axis/c/tests/client/soapHeader/test3/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test3/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	25 Jun 2004 04:25:30 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 06:56:26 -0000	1.2
  @@ -27,6 +27,8 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/IHeaderBlock.h>
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  @@ -120,10 +122,22 @@
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
       //testing echoString 
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
   	printf("successful\n");
       else
   	printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
       //test removing SOAP header block using pointer
       IHeaderBlock *header = NULL;
  @@ -135,11 +149,22 @@
       ws.deleteSOAPHeaderBlock(header);
   
       //now the request should have no SOAP headers
  -
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
           printf("successful\n");
       else
           printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
   
       printf("Soap Header test end\n");
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test4/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test4/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	24 Jun 2004 07:45:02 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest4RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest4RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest4RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   soapHeaderTest4RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.3       +26 -3     ws-axis/c/tests/client/soapHeader/test4/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test4/rpc/TestClient.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestClient.cpp	24 Jun 2004 13:53:55 -0000	1.2
  +++ TestClient.cpp	7 Jul 2004 06:56:26 -0000	1.3
  @@ -20,13 +20,15 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * @author Roshan Weerasuriya (roshan@opensource.lk, roshan@jkcsworld.com)
  + * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
    */
   
   #include <string>
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/IHeaderBlock.h>
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  @@ -123,10 +125,22 @@
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
       //testing echoString 
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
   	printf("successful\n");
       else
   	printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
       //test removing SOAP header block using pointer
       IHeaderBlock *header = NULL;
  @@ -136,12 +150,21 @@
       header = ws.getFirstSOAPHeaderBlock();
       ws.deleteSOAPHeaderBlock(header);
       //now the request should have no SOAP headers
  -
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
           printf("successful\n");
       else
           printf("failed\n");
  -
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
   
       printf("Soap Header test end\n");
       return 0;
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test6/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test6/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	24 Jun 2004 07:45:02 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest6RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest6RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest6RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   soapHeaderTest6RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.3       +28 -3     ws-axis/c/tests/client/soapHeader/test6/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test6/rpc/TestClient.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestClient.cpp	25 Jun 2004 04:00:26 -0000	1.2
  +++ TestClient.cpp	7 Jul 2004 06:56:26 -0000	1.3
  @@ -20,13 +20,15 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * @author Roshan Weerasuriya (roshan@opensource.lk, roshan@jkcsworld.com)
  + * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
    */
   
   #include <string>
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/IHeaderBlock.h>
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  @@ -68,22 +70,45 @@
   
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
  -    //testing echoString 
  +    //testing echoString
  +    try
  +    { 
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
   	printf("successful\n");
       else
   	printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
       //test removing SOAP header block using pointer
       IHeaderBlock *header = NULL;
       header = ws.getFirstSOAPHeaderBlock();
       ws.deleteSOAPHeaderBlock(header);
       //now the request should have no SOAP headers
  -
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
           printf("successful\n");
       else
           printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
       printf("Soap Header test end\n");
       return 0;
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/soapHeader/test8/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test8/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	24 Jun 2004 07:45:03 -0000	1.1
  +++ Makefile.am	7 Jul 2004 06:56:26 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = soapHeaderTest8RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -soapHeaderTest8RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +soapHeaderTest8RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   soapHeaderTest8RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.3       +27 -2     ws-axis/c/tests/client/soapHeader/test8/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/test8/rpc/TestClient.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestClient.cpp	25 Jun 2004 04:05:00 -0000	1.2
  +++ TestClient.cpp	7 Jul 2004 06:56:26 -0000	1.3
  @@ -20,13 +20,15 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * @author Roshan Weerasuriya (roshan@opensource.lk, roshan@jkcsworld.com)
  + * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
    */
   
   #include <string>
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/IHeaderBlock.h>
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  @@ -65,10 +67,22 @@
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
       //testing echoString 
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
   	printf("successful\n");
       else
   	printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
       //test removing SOAP header block using pointer
       IHeaderBlock *header = NULL;
  @@ -77,11 +91,22 @@
       header = ws.getFirstSOAPHeaderBlock();
       ws.deleteSOAPHeaderBlock(header);
       //now the request should have no SOAP headers
  -
  +    try
  +    {
       if (0 == strcmp(ws.echoString("hello world"), "hello world"))
           printf("successful\n");
       else
           printf("failed\n");
  +    }
  +    catch(AxisException& e)
  +    {
  +        printf("%s\n", e.what());
  +    }
  +    catch(...)
  +    {
  +        printf("unknown exception\n");
  +    }
  +
   
   
       printf("Soap Header test end\n");
  
  
  

Mime
View raw message