You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/06/28 08:01:16 UTC

cvs commit: ws-axis/c/samples/client/interoptests/groupB InteropGroupBClient.cpp

damitha     2004/06/27 23:01:16

  Modified:    c/samples/client/interoptests/doclitbase
                        InteropBaseClient.cpp
               c/samples/client/interoptests/doclitgroupB
                        InteropGroupBClient.cpp
               c/samples/client/interoptests/groupB InteropGroupBClient.cpp
  Log:
  (null)
  
  Revision  Changes    Path
  1.7       +15 -0     ws-axis/c/samples/client/interoptests/doclitbase/InteropBaseClient.cpp
  
  Index: InteropBaseClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/doclitbase/InteropBaseClient.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- InteropBaseClient.cpp	6 Apr 2004 05:37:50 -0000	1.6
  +++ InteropBaseClient.cpp	28 Jun 2004 06:01:15 -0000	1.7
  @@ -13,6 +13,8 @@
   	char endpoint[256];
   	const char* server="localhost";
   	const char* port="80";
  +	try
  +	{
   	if (argc == 3)
   	{
   		server = argv[1];
  @@ -199,5 +201,18 @@
   		printf("failed\n");
   		
   	getchar();
  +        }
  +        catch(AxisException& e)
  +        {
  +            printf("Exception : %s\n", e.what());
  +        }
  +        catch(exception& e)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
  +        catch(...)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
   	return 0;
   }
  
  
  
  1.4       +15 -1     ws-axis/c/samples/client/interoptests/doclitgroupB/InteropGroupBClient.cpp
  
  Index: InteropGroupBClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/doclitgroupB/InteropGroupBClient.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InteropGroupBClient.cpp	27 Apr 2004 09:24:23 -0000	1.3
  +++ InteropGroupBClient.cpp	28 Jun 2004 06:01:15 -0000	1.4
  @@ -18,7 +18,8 @@
   	printf("Usage :\n %s <server> <port>\n\n", argv[0]);
   	printf("Sending Requests to Server http://%s:%s ........\n\n", server, port);
   	sprintf(endpoint, "http://%s:%s/axis/groupBDL", server, port);	
  -
  +        try
  +	{
   	InteropTestPortTypeB ws(endpoint);
   	/*we do not support multi-dimensional arrays.*/
   	/*ws.echo2DStringArray*/
  @@ -78,5 +79,18 @@
   	else
   		printf("failed\n");	
   	getchar();
  +        }
  +        catch(AxisException& e)
  +        {
  +            printf("Exception : %s\n", e.what());
  +        }
  +        catch(exception& e)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
  +        catch(...)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
   	return 0;
   }
  
  
  
  1.6       +15 -1     ws-axis/c/samples/client/interoptests/groupB/InteropGroupBClient.cpp
  
  Index: InteropGroupBClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/groupB/InteropGroupBClient.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- InteropGroupBClient.cpp	6 Apr 2004 05:37:50 -0000	1.5
  +++ InteropGroupBClient.cpp	28 Jun 2004 06:01:15 -0000	1.6
  @@ -18,7 +18,8 @@
   	printf("Usage :\n %s <server> <port>\n\n", argv[0]);
   	printf("Sending Requests to Server http://%s:%s ........\n\n", server, port);
   	sprintf(endpoint, "http://%s:%s/axis/groupB", server, port);	
  -
  +        try
  +	{
   	InteropTestPortTypeB ws(endpoint);
   	/*we do not support multi-dimensional arrays.*/
   	/*ws.echo2DStringArray*/
  @@ -78,5 +79,18 @@
   	else
   		printf("failed\n");	
   	getchar();
  +        }
  +        catch(AxisException& e)
  +        {
  +            printf("Exception : %s\n", e.what());
  +        }
  +        catch(exception& e)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
  +        catch(...)
  +        {
  +            printf("Unknown exception has occured\n");
  +        }
   	return 0;
   }