Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 71732 invoked from network); 7 Jul 2004 03:26:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jul 2004 03:26:15 -0000 Received: (qmail 65524 invoked by uid 500); 7 Jul 2004 03:26:33 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 65498 invoked by uid 500); 7 Jul 2004 03:26:32 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 65484 invoked by uid 99); 7 Jul 2004 03:26:32 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 06 Jul 2004 20:26:32 -0700 Received: (qmail 71696 invoked by uid 1683); 7 Jul 2004 03:26:09 -0000 Date: 7 Jul 2004 03:26:09 -0000 Message-ID: <20040707032609.71695.qmail@minotaur.apache.org> From: damitha@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/tests/client/interop/round1/gen_src AxisClientException.cpp X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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";