axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/tests/client/interop/round1/gen_src AxisClientException.cpp
Date Wed, 07 Jul 2004 03:26:09 GMT
damitha     2004/07/06 20:26:09

  Modified:    c/tests/client/interop/round1 Client.cpp
               c/tests/client/interop/round1/gen_src
                        AxisClientException.cpp
  Log:
  (null)
  
  Revision  Changes    Path
  1.4       +19 -6     ws-axis/c/tests/client/interop/round1/Client.cpp
  
  Index: Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/Client.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Client.cpp	24 Jun 2004 11:43:14 -0000	1.3
  +++ Client.cpp	7 Jul 2004 03:26:09 -0000	1.4
  @@ -24,17 +24,18 @@
   	sprintf(endpoint, "http://%s:%s/axis/base", server, port);
   	//endpoint for Axis Java sample
   	//sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
  -
  +	try
  +        {
   	SimpleTestSoap ws(endpoint, APTHTTP);
   
   	//set end point (optional)
           //ws.setEndPoint( "http://localhost:8080/axis/services/echo" );
           //ws.setEndPoint( "http://www.mssoapinterop.org/asmx/simple.asmx" );
  -        ws.setEndPoint( "http://4.34.185.52/ilab/ilab.dll?Handler=Default" );
  +        //ws.setEndPoint( "http://4.34.185.52/ilab/ilab.dll?Handler=Default" );
           //set proxy (optional)
  -        ws.setProxy( "proxy.my.ibm.com", 80 );
  +        //ws.setProxy( "proxy.my.ibm.com", 80 );
   
  -getchar();
  +//getchar();
   	//set timeout
   	ws.setTransportTimeout(5);
           //set HTTP headers
  @@ -198,7 +199,19 @@
   		printf("successful\n");
   	else
   		printf("failed\n");
  -		
  -	getchar();
  +	}
  +	catch(AxisException& e)
  +	{
  +		printf("%s\n", e.what());
  +	}
  +	catch(exception& e)
  +	{
  +		printf("%s\n", e.what());
  +	}
  +	catch(...)
  +	{
  +		printf("Unknown exception has occured\n");
  +	}
  +	//getchar();
   	return 0;
   }
  
  
  
  1.2       +0 -1      ws-axis/c/tests/client/interop/round1/gen_src/AxisClientException.cpp
  
  Index: AxisClientException.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/AxisClientException.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AxisClientException.cpp	6 Jul 2004 13:35:26 -0000	1.1
  +++ AxisClientException.cpp	7 Jul 2004 03:26:09 -0000	1.2
  @@ -52,7 +52,6 @@
   void AxisClientException::processException (ISoapFault* pFault)
   {
   	/*User can do something like deserializing the struct into a string*/
  -        
   	m_sMessage += "Fault Code:";
           m_sMessage += pFault->getFaultcode();
           m_sMessage += "\n";
  
  
  

Mime
View raw message