You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2004/07/07 06:12:46 UTC
cvs commit: ws-axis/c/tests/client/interop/round1 Client.cpp
damitha 2004/07/06 21:12:46
Modified: c/tests/client/interop/round1 Tag: Release1-2-branch
Client.cpp
Log:
(null)
Revision Changes Path
No revision
No revision
1.3.2.1 +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.3.2.1
diff -u -r1.3 -r1.3.2.1
--- Client.cpp 24 Jun 2004 11:43:14 -0000 1.3
+++ Client.cpp 7 Jul 2004 04:12:46 -0000 1.3.2.1
@@ -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 exeption has occured\n");
+ }
+ //getchar();
return 0;
}