axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r397747 [12/17] - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/
Date Fri, 28 Apr 2006 03:04:04 GMT
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutputClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutputClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutputClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutputClient.cpp Thu Apr 27 20:03:51 2006
@@ -13,6 +13,15 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
+/* NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE   */
+/* ----------------------------------------------------------------   */
+/* CHANGES TO THIS FILE MAY ALSO REQUIRE CHANGES TO THE               */
+/* C-EQUIVALENT FILE. PLEASE ENSURE THAT IT IS DONE.                  */
+/* ----------------------------------------------------------------   */
+/* NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE   */
+/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
+
 #include "SimpleTypeInnerUnboundedInOutputWS.hpp" 
 #include <stdlib.h> // For malloc(), calloc(), strdup() and free()
 #include <iostream>
@@ -38,11 +47,11 @@
 
   endpoint_set = parse_args_for_endpoint(&argc, argv, &endpoint);
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        bool bSuccess = false;
+        int    iRetryIterationCount = 3;
 
-		do
-		{
+        do
+        {
   try {
     if(endpoint_set) {
       ws = new SimpleTypeInnerUnboundedInOutputWS(endpoint, APTHTTP1_1);
@@ -85,44 +94,44 @@
         }
       returnValue = 0; // Success
     }
-	bSuccess = true;
+    bSuccess = true;
   } catch(AxisException &e) {
-			bool bSilent = false;
+            bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                if( iRetryIterationCount > 0)
+                {
+                    bSilent = true;
+                }
+            }
+            else
+            {
+                iRetryIterationCount = 0;
+            }
 
             if( !bSilent)
-			{
+            {
     cout << e.what() << endl;
-			}
+            }
   } catch(...) {
     cout << "Unknown Exception occured." << endl;
   }
 // clean up
   try
   {
-  	delete ws;
+      delete ws;
   }
   catch(exception& exception)
   {
-  	cout << "Exception on clean up of ws: " << exception.what()<<endl;
+      cout << "Exception on clean up of ws: " << exception.what()<<endl;
   }
   catch(...)
   {
-  	cout << "Unknown exception on clean up of ws: " << endl;
+      cout << "Unknown exception on clean up of ws: " << endl;
   }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+        iRetryIterationCount--;
+        } while( iRetryIterationCount > 0 && !bSuccess);
     if(endpoint_set) {
         free(endpoint);
     }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutput_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutput_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutput_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutput_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -55,52 +55,52 @@
              url=p;
           SimpleTypeInnerUnboundedInOutputWS *ws;
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 sprintf(endpoint, "%s", url);
                 ws=new  SimpleTypeInnerUnboundedInOutputWS(endpoint, APTHTTP1_1);
                 Type1* result;
-				int i;
-				int size = 10;
+                                int i;
+                                int size = 10;
 
-				result = ws->getInput(size);
+                                result = ws->getInput(size);
 
-				if ( result == NULL )
-					cout << "NULL" << endl;
-				else {
-					i=0;
-					char **pTemp = result->ident.m_Array;				
-					cout << "Result [" << i << "] : " << pTemp[i] << endl;
-				}	
-				delete ws;
+                                if ( result == NULL )
+                                        cout << "NULL" << endl;
+                                else {
+                                        i=0;
+                                        char **pTemp = result->ident.m_Array;                           
+                                        cout << "Result [" << i << "] : " << pTemp[i] << endl;
+                                }       
+                                delete ws;
 
-				bSuccess = true;
+                                bSuccess = true;
        }
         catch(AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch(exception& e)
         {
@@ -110,8 +110,8 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
                 #ifndef WIN32
                         pthread_exit(0);
                 #endif
@@ -124,60 +124,60 @@
 int main(int argc, char *argv[])
 {
     Axis::initialize(false);
-	try{
-		 int i;
-		 #ifdef WIN32
-			/*Windows specific code comes here */
-			HANDLE hThread[NUM_THREADS];
-			for(i=0;i<NUM_THREADS;i++){
-					DWORD dwThreadId;
-					//LPVOID dwThrdParam = LPVOID(argv[1]);
-					hThread[i] = CreateThread(
-											NULL,                        // no security attributes
-											0,                           // use default stack size
-											ThreadFunc,                  // thread function
-											LPVOID(argv[1]),             // argument to thread function
-											0,   
-										&dwThreadId);              // returns the thread identifier
-
-			if (hThread[i] == NULL)
-			{
-			cout<<"Thread creation Failed";
-			}
-			}
-			/* Waiting for threads to terminate */
-			WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
-			for(i=0;i<NUM_THREADS;i++)
-					CloseHandle( hThread[i] );
-
-		#else	
-			pthread_t thread[NUM_THREADS];
-			pthread_attr_t attr;
-			int rc, t;
+        try{
+                 int i;
+                 #ifdef WIN32
+                        /*Windows specific code comes here */
+                        HANDLE hThread[NUM_THREADS];
+                        for(i=0;i<NUM_THREADS;i++){
+                                        DWORD dwThreadId;
+                                        //LPVOID dwThrdParam = LPVOID(argv[1]);
+                                        hThread[i] = CreateThread(
+                                                                                        NULL,                        // no security attributes
+                                                                                        0,                           // use default stack size
+                                                                                        ThreadFunc,                  // thread function
+                                                                                        LPVOID(argv[1]),             // argument to thread function
+                                                                                        0,   
+                                                                                &dwThreadId);              // returns the thread identifier
+
+                        if (hThread[i] == NULL)
+                        {
+                        cout<<"Thread creation Failed";
+                        }
+                        }
+                        /* Waiting for threads to terminate */
+                        WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
+                        for(i=0;i<NUM_THREADS;i++)
+                                        CloseHandle( hThread[i] );
+
+                #else   
+                        pthread_t thread[NUM_THREADS];
+                        pthread_attr_t attr;
+                        int rc, t;
             void *status;
-		//   Initialize and set thread detached attribute
-			pthread_attr_init(&attr);
-			pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
-			for (t = 0; t < NUM_THREADS; t++)
-			{
-			/*Creating threads */
-				rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
-				if (rc)
-				{
-					cout<<"Thread Creation Failed";
-				}
-			}
-		//Free attribute and wait for the other threads
-		pthread_attr_destroy(&attr);
-		/* Wait for the threads to terminate  */
-		for(t=0;t<NUM_THREADS;t++){
-			rc = pthread_join(thread[t], &status);
-				if (rc)
-				{
-					cout<<"ERROR from pthread_join()"<<endl;
-				}
-		}
-	#endif
+                //   Initialize and set thread detached attribute
+                        pthread_attr_init(&attr);
+                        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+                        for (t = 0; t < NUM_THREADS; t++)
+                        {
+                        /*Creating threads */
+                                rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
+                                if (rc)
+                                {
+                                        cout<<"Thread Creation Failed";
+                                }
+                        }
+                //Free attribute and wait for the other threads
+                pthread_attr_destroy(&attr);
+                /* Wait for the threads to terminate  */
+                for(t=0;t<NUM_THREADS;t++){
+                        rc = pthread_join(thread[t], &status);
+                                if (rc)
+                                {
+                                        cout<<"ERROR from pthread_join()"<<endl;
+                                }
+                }
+        #endif
   }catch(exception &e){
            cout<< e.what();
   }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnbounded_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnbounded_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnbounded_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnbounded_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -53,63 +53,63 @@
         const char* url="http://localhost:9080/SimpleTypeInnerUnbounded/services/sampleWS";
         if(p!=NULL)
              url=p;
-		SimpleTypeInnerUnboundedWS *ws;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                SimpleTypeInnerUnboundedWS *ws;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
             sprintf(endpoint, "%s", url);
             ws= new   SimpleTypeInnerUnboundedWS(endpoint, APTHTTP1_1);
-			Type1 *input =  new Type1();
-			Type1* result;
-			char *idents[10];
-			int i;
-
-			input->enum_int = ENUMTYPEINT_1;
-			input->enum_string = strdup("one");
-			input->att_enum_kind = strdup("CHEQUE");
-			input->att_enum_string = strdup("one");
-			input->att_enum_int = ENUMTYPEINT_1;
-
-			input->ident.m_Array = idents;
-			input->ident.m_Size = 10;
-			for ( i = 0; i < 10; i++ ) {
-			idents[i] = strdup ("Hello world");
-			}
-
-			result = ws->getInput(input);
-			if ( result == NULL )
-				cout << "NULL" << endl;
-			else {
-				cout << "att_enum_int " << result->att_enum_int << endl;		
-				
+                        Type1 *input =  new Type1();
+                        Type1* result;
+                        char *idents[10];
+                        int i;
+
+                        input->enum_int = ENUMTYPEINT_1;
+                        input->enum_string = strdup("one");
+                        input->att_enum_kind = strdup("CHEQUE");
+                        input->att_enum_string = strdup("one");
+                        input->att_enum_int = ENUMTYPEINT_1;
+
+                        input->ident.m_Array = idents;
+                        input->ident.m_Size = 10;
+                        for ( i = 0; i < 10; i++ ) {
+                        idents[i] = strdup ("Hello world");
+                        }
+
+                        result = ws->getInput(input);
+                        if ( result == NULL )
+                                cout << "NULL" << endl;
+                        else {
+                                cout << "att_enum_int " << result->att_enum_int << endl;                
+                                
           }
-			delete ws;
+                        delete ws;
 
-			bSuccess = true;
-		}catch(AxisException& e)
+                        bSuccess = true;
+                }catch(AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch(exception& e)
         {
@@ -119,8 +119,8 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
                 #ifndef WIN32
                         pthread_exit(0);
                 #endif
@@ -133,60 +133,60 @@
 int main(int argc, char *argv[])
 {
     Axis::initialize(false);
-	try{
-		 int i;
-		 #ifdef WIN32
-			/*Windows specific code comes here */
-			HANDLE hThread[NUM_THREADS];
-			for(i=0;i<NUM_THREADS;i++){
-					DWORD dwThreadId;
-					//LPVOID dwThrdParam = LPVOID(argv[1]);
-					hThread[i] = CreateThread(
-											NULL,                        // no security attributes
-											0,                           // use default stack size
-											ThreadFunc,                  // thread function
-											LPVOID(argv[1]),             // argument to thread function
-											0,   
-										&dwThreadId);              // returns the thread identifier
-
-			if (hThread[i] == NULL)
-			{
-			cout<<"Thread creation Failed";
-			}
-			}
-			/* Waiting for threads to terminate */
-			WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
-			for(i=0;i<NUM_THREADS;i++)
-					CloseHandle( hThread[i] );
-
-		#else	
-			pthread_t thread[NUM_THREADS];
-			pthread_attr_t attr;
-			int rc, t;
+        try{
+                 int i;
+                 #ifdef WIN32
+                        /*Windows specific code comes here */
+                        HANDLE hThread[NUM_THREADS];
+                        for(i=0;i<NUM_THREADS;i++){
+                                        DWORD dwThreadId;
+                                        //LPVOID dwThrdParam = LPVOID(argv[1]);
+                                        hThread[i] = CreateThread(
+                                                                                        NULL,                        // no security attributes
+                                                                                        0,                           // use default stack size
+                                                                                        ThreadFunc,                  // thread function
+                                                                                        LPVOID(argv[1]),             // argument to thread function
+                                                                                        0,   
+                                                                                &dwThreadId);              // returns the thread identifier
+
+                        if (hThread[i] == NULL)
+                        {
+                        cout<<"Thread creation Failed";
+                        }
+                        }
+                        /* Waiting for threads to terminate */
+                        WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
+                        for(i=0;i<NUM_THREADS;i++)
+                                        CloseHandle( hThread[i] );
+
+                #else   
+                        pthread_t thread[NUM_THREADS];
+                        pthread_attr_t attr;
+                        int rc, t;
             void *status;
-		//   Initialize and set thread detached attribute
-			pthread_attr_init(&attr);
-			pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
-			for (t = 0; t < NUM_THREADS; t++)
-			{
-			/*Creating threads */
-				rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
-				if (rc)
-				{
-					cout<<"Thread Creation Failed";
-				}
-			}
-		//Free attribute and wait for the other threads
-		pthread_attr_destroy(&attr);
-		/* Wait for the threads to terminate  */
-		for(t=0;t<NUM_THREADS;t++){
-			rc = pthread_join(thread[t], &status);
-				if (rc)
-				{
-					cout<<"ERROR from pthread_join()"<<endl;
-				}
-		}
-	#endif
+                //   Initialize and set thread detached attribute
+                        pthread_attr_init(&attr);
+                        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+                        for (t = 0; t < NUM_THREADS; t++)
+                        {
+                        /*Creating threads */
+                                rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
+                                if (rc)
+                                {
+                                        cout<<"Thread Creation Failed";
+                                }
+                        }
+                //Free attribute and wait for the other threads
+                pthread_attr_destroy(&attr);
+                /* Wait for the threads to terminate  */
+                for(t=0;t<NUM_THREADS;t++){
+                        rc = pthread_join(thread[t], &status);
+                                if (rc)
+                                {
+                                        cout<<"ERROR from pthread_join()"<<endl;
+                                }
+                }
+        #endif
   }catch(exception &e){
            cout<< e.what();
   }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp Thu Apr 27 20:03:51 2006
@@ -40,11 +40,11 @@
 
   endpoint_set = parse_args_for_endpoint(&argc, argv, &endpoint);
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
   try {
     if(endpoint_set) {
       ws = new XSD_byte(endpoint, APTHTTP1_1);
@@ -55,64 +55,64 @@
 
     SimpleComplexType1* input = new SimpleComplexType1();
 
-	AnyType* any1 = new AnyType();
+        AnyType* any1 = new AnyType();
 
-	AnyType *pAny = new AnyType();
+        AnyType *pAny = new AnyType();
     pAny->_size = 1;
     pAny->_array = new char*[1];
-	pAny->_array[0]=strdup("<mybook>WSCC</mybook>");
+        pAny->_array[0]=strdup("<mybook>WSCC</mybook>");
 
-	input->setany1(pAny);
-	input->setfield2("WebServices");
-	input->setfield3(123);
+        input->setany1(pAny);
+        input->setfield2("WebServices");
+        input->setfield3(123);
     
     SimpleComplexType1* result = NULL;
     result = ws->asComplexType(input);
 
-	if( result == NULL )
-			cout << "result object is NULL" << endl;
+        if( result == NULL )
+                        cout << "result object is NULL" << endl;
 
-	AnyType* pAnyReturn = result->getany1();
-	xsd__string f2 = result->getfield2();
-	xsd__int f3 = result->getfield3();
-
-	char * p = strstr( pAnyReturn->_array[0], "<mybook");
-
-	if( p && strstr( p, ">WSCC</mybook>"))
-	{
-	    cout << "Result field1 is = <mybook>WSCC</mybook>" << endl;
-	}
-	else
-	{
-	    cout << "Result field1 is = " << pAnyReturn->_array[0] << endl;
-	}
+        AnyType* pAnyReturn = result->getany1();
+        xsd__string f2 = result->getfield2();
+        xsd__int f3 = result->getfield3();
+
+        char * p = strstr( pAnyReturn->_array[0], "<mybook");
+
+        if( p && strstr( p, ">WSCC</mybook>"))
+        {
+            cout << "Result field1 is = <mybook>WSCC</mybook>" << endl;
+        }
+        else
+        {
+            cout << "Result field1 is = " << pAnyReturn->_array[0] << endl;
+        }
 
-	cout << "Result field2 is = " << f2 << endl;
-	cout << "Result field3 is = " << f3 << endl;
+        cout << "Result field2 is = " << f2 << endl;
+        cout << "Result field3 is = " << f3 << endl;
 
-	bSuccess = true;
+        bSuccess = true;
 
     returnValue = 0; // Success
 
   } catch(AxisException &e) {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
+                        {
     cout << e.what() << endl;
-			}
+                        }
   } catch(...) {
     cout << "Unknown Exception occured." << endl;
   }
@@ -120,18 +120,18 @@
   // Samisa : clean up memory allocated for stub
   try
   {
-	  delete ws; 
+          delete ws; 
   }
   catch(exception& exception)
   {
-  	cout << "Exception on clean up of ws : " << exception.what()<<endl;
+        cout << "Exception on clean up of ws : " << exception.what()<<endl;
   }
   catch(...)
   {
-  	cout << "Unknown exception on clean up of ws : " << endl;
+        cout << "Unknown exception on clean up of ws : " << endl;
   }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
     if(endpoint_set)
       free(endpoint);
   cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestGetNamespacePrefixClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestGetNamespacePrefixClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestGetNamespacePrefixClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestGetNamespacePrefixClient.cpp Thu Apr 27 20:03:51 2006
@@ -24,66 +24,66 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-	int rc=1;
-	const AxisChar *ch=NULL;
-
-	url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		MathOps ws(endpoint);
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader1", "http://ws.apache.org/axisCppTest/","th1");
-		phb->createNamespaceDecl("th1", "http://ws.apache.org/axisCppTest1/");
-		
-		
-		iResult = ws.div(15,3);
-		cout << "Result is = " << iResult << endl;
-		//This method is no more defined in Stub API
-		//cout << ws.getNamespacePrefix("http://ws.apache.org/axisCppTest1/") << endl;
-		rc=0;
-
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+        int rc=1;
+        const AxisChar *ch=NULL;
+
+        url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                MathOps ws(endpoint);
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader1", "http://ws.apache.org/axisCppTest/","th1");
+                phb->createNamespaceDecl("th1", "http://ws.apache.org/axisCppTest1/");
+                
+                
+                iResult = ws.div(15,3);
+                cout << "Result is = " << iResult << endl;
+                //This method is no more defined in Stub API
+                //cout << ws.getNamespacePrefix("http://ws.apache.org/axisCppTest1/") << endl;
+                rc=0;
+
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception2 has occured" <<endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-		
-	return rc;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception2 has occured" <<endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+                
+        return rc;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetEndpointClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetEndpointClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetEndpointClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetEndpointClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,61 +22,61 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* bogus_url="http://no-one.home/rubbish";
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-
-	if(argc>1)
-		url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		Calculator* ws = new Calculator(bogus_url);
-		ws->setEndPoint(url);
-
-		iResult = ws->add(2,3);
-		cout << iResult << endl;;
-				bSuccess = true;
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char endpoint[256];
+        const char* bogus_url="http://no-one.home/rubbish";
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+
+        if(argc>1)
+                url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                Calculator* ws = new Calculator(bogus_url);
+                ws->setEndPoint(url);
+
+                iResult = ws->add(2,3);
+                cout << iResult << endl;;
+                                bSuccess = true;
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
         {
-	    cout << "Unpecified exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	return 0;
+            cout << "Unpecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetHandlerPropertyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetHandlerPropertyClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetHandlerPropertyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetHandlerPropertyClient.cpp Thu Apr 27 20:03:51 2006
@@ -30,68 +30,68 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-	
-
-	url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		char buffer[100];
-		char* pbuff=buffer; 
-		
-		ws.setHandlerProperty("prop1", (void*)"value1", 7);
-		ws.setHandlerProperty("prop2", &pbuff, 100);
-		
-		iResult = ws.add(2,3);
-		cout << iResult << endl;
-		cout << "value of prop2 printed in client is = " << buffer << endl;
-
-		bSuccess = true;
-	
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+        
+
+        url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                char buffer[100];
+                char* pbuff=buffer; 
+                
+                ws.setHandlerProperty("prop1", (void*)"value1", 7);
+                ws.setHandlerProperty("prop2", &pbuff, 100);
+                
+                iResult = ws.add(2,3);
+                cout << iResult << endl;
+                cout << "value of prop2 printed in client is = " << buffer << endl;
+
+                bSuccess = true;
+        
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    printf("Unknown exception has occured\n" );
-	}
-	catch(...)
-	{
-	    printf("Unknown exception has occured\n" );
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout << "---------------- TEST COMPLETE ----------------" << endl;
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            printf("Unknown exception has occured\n" );
+        }
+        catch(...)
+        {
+            printf("Unknown exception has occured\n" );
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout << "---------------- TEST COMPLETE ----------------" << endl;
+        return 0;
 }
 
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp Thu Apr 27 20:03:51 2006
@@ -22,7 +22,7 @@
 
 int main(int argc, char *argv[])
 {
-	char endpoint[256];
+        char endpoint[256];
     const char* url="http://localhost:80/axis/MathOps";
     int iResult=0;
     
@@ -32,8 +32,8 @@
     ws.setEndPoint(url);
 
 
-	/*create a header of the form:
-	<SOAP-ENV:Header>
+        /*create a header of the form:
+        <SOAP-ENV:Header>
     <th:TestHeader xmlns:th="http://ws.apache.org/axisCppTest/">
     <Credentials1>
     <username>Test User</username>
@@ -41,9 +41,9 @@
     </Credentials1>
     </th:TestHeader>
     </SOAP-ENV:Header>
-	*/
-	
-	
+        */
+        
+        
 
     //creating  first SOAP header block 
     IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader1", "http://ws.apache.org/axisCppTest/");
@@ -66,10 +66,10 @@
     childNode->addChild(valueNode);
     parentNode->addChild(childNode);
 
-	phb->addChild(parentNode);
-	
-	//Creating second SOAP header block
-	phb = ws.createSOAPHeaderBlock("TestHeader2",
+        phb->addChild(parentNode);
+        
+        //Creating second SOAP header block
+        phb = ws.createSOAPHeaderBlock("TestHeader2",
                                    "http://ws.apache.org/axisCppTest/");
                                                                                                                                                                             
     //create parent node
@@ -99,92 +99,92 @@
 
     phb->addChild(parentNode);
 
-	cout << "invoking MathOps div..." << endl;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-		{
+        cout << "invoking MathOps div..." << endl;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+                {
                 iResult = ws.div(15,5);
-                cout << iResult << endl;		
-				bSuccess = true;
+                cout << iResult << endl;                
+                                bSuccess = true;
         }
         catch (AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch(...)
         {
                 cout << "Unknown exception" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        
    
    IHeaderBlock *header = NULL;
    header = ws.getFirstSOAPHeaderBlock();
    ws.deleteSOAPHeaderBlock(ws.getCurrentSOAPHeaderBlock());
    ws.deleteCurrentSOAPHeaderBlock();  
 
-		bSuccess = false;
-		iRetryIterationCount = 3;
+                bSuccess = false;
+                iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
     try
     {
                 iResult = ws.div(15,5);
                 cout << iResult << endl;
-				bSuccess = true;
+                                bSuccess = true;
     }
     catch (AxisException& e)
     {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
     }
     catch(...)
     {
         cout << "Unknown exception" << endl;
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
-	
+        
     return 0;
 }
                                  

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp Thu Apr 27 20:03:51 2006
@@ -21,7 +21,7 @@
 #include <iostream>
 int main(int argc, char *argv[])
 {
-	char endpoint[256];
+        char endpoint[256];
     const char* url="http://localhost:80/axis/MathOps";
     int iResult=0;
     
@@ -31,8 +31,8 @@
     ws.setEndPoint(url);
 
 
-	/*create a header of the form:
-	<SOAP-ENV:Header>
+        /*create a header of the form:
+        <SOAP-ENV:Header>
     <th:TestHeader xmlns:th="http://ws.apache.org/axisCppTest/">
     <Credentials1>
     <username>Test User</username>
@@ -40,13 +40,13 @@
     </Credentials1>
     </th:TestHeader>
     </SOAP-ENV:Header>
-	*/
-	
-	
+        */
+        
+        
 
     //creating  first SOAP header block 
     IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader1", "http://ws.apache.org/axisCppTest/");
-	
+        
     //create parent node
     BasicNode *parentNode = phb->createChild(ELEMENT_NODE);
     parentNode->setLocalName("Credentials1");
@@ -65,10 +65,10 @@
     childNode->addChild(valueNode);
     parentNode->addChild(childNode);
 
-	phb->addChild(parentNode);
-	
-	//Creating second SOAP header block
-	phb = ws.createSOAPHeaderBlock("TestHeader2",
+        phb->addChild(parentNode);
+        
+        //Creating second SOAP header block
+        phb = ws.createSOAPHeaderBlock("TestHeader2",
                                    "http://ws.apache.org/axisCppTest/");
                                                                                                                                                                             
     //create parent node
@@ -98,46 +98,46 @@
 
     phb->addChild(parentNode);
 
-	cout << "invoking MathOps div..." << endl;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-		{
+        cout << "invoking MathOps div..." << endl;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+                {
                 iResult = ws.div(15,5);
-                cout << iResult << endl;		
-				bSuccess = true;
+                cout << iResult << endl;                
+                                bSuccess = true;
         }
         catch (AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch(...)
         {
                 cout << "Unknown exception" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        
    
    IHeaderBlock *header = NULL;
    header = ws.getFirstSOAPHeaderBlock();
@@ -149,50 +149,50 @@
    //to test weather getNextSOAPHeaderBlock returns NULL when there are no header blocks exist.
    header = ws.getNextSOAPHeaderBlock();
    if ( header == NULL)
-	   cout << "header is null" << endl ;
+           cout << "header is null" << endl ;
    else
-	   cout << header << endl ;
+           cout << header << endl ;
 
-		bSuccess = false;
-		iRetryIterationCount = 3;
+                bSuccess = false;
+                iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
     try
     {
         iResult = ws.div(15,5);
         cout << iResult << endl;
-				bSuccess = true;
+                                bSuccess = true;
     }
     catch (AxisException& e)
     {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
     }
     catch(...)
     {
         cout << "Unknown exception\n" << endl;
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
-	
+        
     return 0;
 }
                                  

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,7 +22,7 @@
 
 int main(int argc, char *argv[])
 {
-	char endpoint[256];
+        char endpoint[256];
     const char* url="http://localhost:80/axis/MathOps";
     int iResult=0;
     //AxisChar * localname = "    " ;
@@ -33,8 +33,8 @@
     ws.setEndPoint(url);
 
 
-	/*create a header of the form:
-	<SOAP-ENV:Header>
+        /*create a header of the form:
+        <SOAP-ENV:Header>
     <th:TestHeader xmlns:th="http://ws.apache.org/axisCppTest/">
     <Credentials>
     <username>Test User</username>
@@ -42,7 +42,7 @@
     </Credentials>
     </th:TestHeader>
     </SOAP-ENV:Header>
-	*/
+        */
 
     //set SOAP headers
     IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader", "http://ws.apache.org/axisCppTest/","th1");
@@ -75,89 +75,89 @@
 
     cout << "invoking MathOps div..." << endl;
     //testing add function
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 iResult = ws.div(15,5);
                 cout << iResult << endl;
 
-				bSuccess = true;
+                                bSuccess = true;
         }
         catch (AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
+                        {
                 cout << e.what() << endl;
-			}
+                        }
         }
         catch(...)
         {
                 cout << "Unknown exception" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
     //test removing SOAP header block using pointer
     IHeaderBlock *header = NULL;
     header = ws.getFirstSOAPHeaderBlock();
     ws.deleteSOAPHeaderBlock(header);
 
-		bSuccess = false;
-		iRetryIterationCount = 3;
+                bSuccess = false;
+                iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
     try
     {
                 iResult = ws.div(15,5);
                 cout << iResult << endl;
-				bSuccess = true;
+                                bSuccess = true;
     }
     catch (AxisException& e)
     {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
+                        {
                 cout << e.what() << endl;
-			}
+                        }
     }
     catch(...)
     {
         cout << "Unknown exception\n" << endl;
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
 
     return 0;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp Thu Apr 27 20:03:51 2006
@@ -23,7 +23,7 @@
 
 int main(int argc, char *argv[])
 {
-	char endpoint[256];
+        char endpoint[256];
     const char* url="http://localhost:80/axis/MathOps";
     int iResult=0;
 
@@ -31,54 +31,54 @@
     sprintf(endpoint, "%s", url);
     
 
-		MathOps ws(endpoint);
-		//setSOAPMethodAttribute call does not belong to Stub class any more
-		//ws.setSOAPMethodAttribute("div","ns5","10");
-		//ws.setSOAPMethodAttribute("add", "", "http://soapinteroptest.org", "value");
-		
+                MathOps ws(endpoint);
+                //setSOAPMethodAttribute call does not belong to Stub class any more
+                //ws.setSOAPMethodAttribute("div","ns5","10");
+                //ws.setSOAPMethodAttribute("add", "", "http://soapinteroptest.org", "value");
+                
 
     cout << "invoking MathOps div..." << endl;
     
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 
-			iResult = ws.div(15,5);
-			cout << "Result is = " << iResult << endl;
+                        iResult = ws.div(15,5);
+                        cout << "Result is = " << iResult << endl;
                 
-		bSuccess = true;
+                bSuccess = true;
         }
         catch (AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch(...)
         {
                 cout << "Unknown exception" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
     cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportPropertiesClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportPropertiesClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportPropertiesClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportPropertiesClient.cpp Thu Apr 27 20:03:51 2006
@@ -27,124 +27,124 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-	int rc=1;
-
-	url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		ws.setTransportProtocol(APTHTTP1_1);
-		ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
-		ws.setTransportProperty("Accept-Language", "l1");
-		ws.setTransportProperty("Date", "Mon Dec  6 13:37:06 GMT 2004");
-		ws.setTransportProperty("Accept-Language", "l22");
-		
-		cout << "Full properties list " << endl;
-		printProperties(&ws);
-
-		//deleting the transport with specific key value
-		ws.deleteTransportProperty("Accept-Language",2);
-
-		cout << "After deleteTransportProperty(key,int) method  " << endl;
-		printProperties(&ws);
-
-		//Go to the last property and delete
-		ws.getFirstTransportPropertyKey(false);
-		ws.getNextTransportPropertyKey(false);
-		ws.getNextTransportPropertyKey(false);
-		ws.deleteCurrentTransportProperty(false);
-		cout << "After deleteCurrentProperty method " << endl;
-		printProperties(&ws);
-		
-		iResult = ws.add(2,3);
-		cout << iResult << endl;
-		rc=0;
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+        int rc=1;
+
+        url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                ws.setTransportProtocol(APTHTTP1_1);
+                ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7");
+                ws.setTransportProperty("Accept-Language", "l1");
+                ws.setTransportProperty("Date", "Mon Dec  6 13:37:06 GMT 2004");
+                ws.setTransportProperty("Accept-Language", "l22");
+                
+                cout << "Full properties list " << endl;
+                printProperties(&ws);
+
+                //deleting the transport with specific key value
+                ws.deleteTransportProperty("Accept-Language",2);
+
+                cout << "After deleteTransportProperty(key,int) method  " << endl;
+                printProperties(&ws);
+
+                //Go to the last property and delete
+                ws.getFirstTransportPropertyKey(false);
+                ws.getNextTransportPropertyKey(false);
+                ws.getNextTransportPropertyKey(false);
+                ws.deleteCurrentTransportProperty(false);
+                cout << "After deleteCurrentProperty method " << endl;
+                printProperties(&ws);
+                
+                iResult = ws.add(2,3);
+                cout << iResult << endl;
+                rc=0;
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-		cout << "Unknown exception has occured: "<< e.what() << endl;
-	}
-	catch(...)
-	{
-		cout << "Unspecified exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-  cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;	
-	return rc;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+                cout << "Unknown exception has occured: "<< e.what() << endl;
+        }
+        catch(...)
+        {
+                cout << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+  cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;  
+        return rc;
 }
 
 void printProperties(Calculator *obj)
 {
-	cout << " ** Request Properties **" << endl;
-	printProperties(obj, false);
+        cout << " ** Request Properties **" << endl;
+        printProperties(obj, false);
 
-	cout << " ** Response Properties **" << endl;
-	printProperties(obj, true);
-	cout << " ****************************************************** " << endl;
+        cout << " ** Response Properties **" << endl;
+        printProperties(obj, true);
+        cout << " ****************************************************** " << endl;
 }
 
 void printProperties(Calculator *obj, bool response)
 {
-	const char* transprop1;
-	transprop1 = obj->getFirstTransportPropertyKey(response);
-	do
-	{
-		transprop1 = obj->getCurrentTransportPropertyKey(response);
-		cout << "     current transport property key = ";
-		if (transprop1)
-		{
-			cout  << transprop1 ;
-		}
-		else
-		{
-			cout << "<NULL>";
-		}
-
-		transprop1 = obj->getCurrentTransportPropertyValue(response);
-		cout << " value = ";
-		if (transprop1)
-		{
-			cout << transprop1;
-		}
-		else
-		{
-			cout << "<NULL>";
-		}
-		cout << endl;
-	}
-	while ( (transprop1 = obj->getNextTransportPropertyKey(response)) != NULL);
-	return ;	
+        const char* transprop1;
+        transprop1 = obj->getFirstTransportPropertyKey(response);
+        do
+        {
+                transprop1 = obj->getCurrentTransportPropertyKey(response);
+                cout << "     current transport property key = ";
+                if (transprop1)
+                {
+                        cout  << transprop1 ;
+                }
+                else
+                {
+                        cout << "<NULL>";
+                }
+
+                transprop1 = obj->getCurrentTransportPropertyValue(response);
+                cout << " value = ";
+                if (transprop1)
+                {
+                        cout << transprop1;
+                }
+                else
+                {
+                        cout << "<NULL>";
+                }
+                cout << endl;
+        }
+        while ( (transprop1 = obj->getNextTransportPropertyKey(response)) != NULL);
+        return ;        
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolClient.cpp Thu Apr 27 20:03:51 2006
@@ -19,64 +19,64 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-	int rc=1;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+        int rc=1;
 
-	url = argv[1];
+        url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		ws.setTransportProtocol(APTHTTP1_0);
-		cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
-		iResult = ws.add(2,3);
-		cout << "Result is = " << iResult << endl;
-		ws.setTransportProtocol(APTHTTP1_1);
-		cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
-		iResult = ws.add(5,6);
-		cout << "Result is = " << iResult << endl;
-		rc=0;
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                ws.setTransportProtocol(APTHTTP1_0);
+                cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
+                iResult = ws.add(2,3);
+                cout << "Result is = " << iResult << endl;
+                ws.setTransportProtocol(APTHTTP1_1);
+                cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
+                iResult = ws.add(5,6);
+                cout << "Result is = " << iResult << endl;
+                rc=0;
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" <<endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-  cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;		
-	return rc;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" <<endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+  cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;          
+        return rc;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolFaultClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolFaultClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolFaultClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolFaultClient.cpp Thu Apr 27 20:03:51 2006
@@ -24,60 +24,60 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	int iResult;
-	int rc=1;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        int iResult;
+        int rc=1;
 
-	url = argv[1];
+        url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		ws.setTransportProtocol(APTFTP);
-		cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
-		iResult = ws.add(2,3);
-		cout << "Result is = " << iResult << endl;
-		rc=0;
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                ws.setTransportProtocol(APTFTP);
+                cout << "Protocol used by the transport is  = " << ws.getTransportProtocol() << endl;
+                iResult = ws.add(2,3);
+                cout << "Result is = " << iResult << endl;
+                rc=0;
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" <<endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-		
-	return rc;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" <<endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+                
+        return rc;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProxyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProxyClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProxyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProxyClient.cpp Thu Apr 27 20:03:51 2006
@@ -55,11 +55,11 @@
         
         
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 sprintf(endpoint, "%s", url);
@@ -68,29 +68,29 @@
                 iResult = ws.add(2,3);
                 cout<<  iResult << endl;
                 rc=0;
-				bSuccess = true;
+                                bSuccess = true;
         }
         catch(AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-				
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                                
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
+                        {
                 cout << "Inside AxisException block: " << e.what() << endl;
-			}
+                        }
         }
         catch(exception& e)
         {
@@ -100,9 +100,9 @@
         {
                 cout << "Unspecified exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
         return rc;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportTimeoutClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportTimeoutClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportTimeoutClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportTimeoutClient.cpp Thu Apr 27 20:03:51 2006
@@ -23,76 +23,76 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/TestTransportTimeout";
-	int iResult;
-	int rc=1;
-
-	signal(SIGILL, sig_handler);
-	signal(SIGABRT, sig_handler);
-	signal(SIGSEGV, sig_handler);
-	signal(SIGFPE, sig_handler);
-
-	if(argc>1)
-		url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Timeout ws(endpoint);
-		ws.setTransportTimeout(2);	
-
-		iResult = ws.add(2,3);
-		cout << iResult << endl;
-		rc=0;
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/TestTransportTimeout";
+        int iResult;
+        int rc=1;
+
+        signal(SIGILL, sig_handler);
+        signal(SIGABRT, sig_handler);
+        signal(SIGSEGV, sig_handler);
+        signal(SIGFPE, sig_handler);
+
+        if(argc>1)
+                url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Timeout ws(endpoint);
+                ws.setTransportTimeout(2);      
+
+                iResult = ws.add(2,3);
+                cout << iResult << endl;
+                rc=0;
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "in AxisException block" << endl;
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                        {
+                                cout << "in AxisException block" << endl;
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;	
-	return rc;
+        cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;    
+        return rc;
 }
 
 void sig_handler(int sig) {
-	signal(sig, sig_handler);
-	cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+        signal(sig, sig_handler);
+        cout << "SIGNAL RECEIVED " << sig << endl;
+        exit(1);
 }
 
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedChoiceClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedChoiceClient.cpp Thu Apr 27 20:03:51 2006
@@ -7,55 +7,55 @@
 
 int main(int argc, char *argv[])
 {
-	
-	try
-	{
-		const char* url="http://localhost:80/axis/UnboundedChoice";
-		ChoiceComplexType* Value0;
-		ChoiceComplexType* Value1;
-		
-		Value0=new	ChoiceComplexType();
-		Value0->StringValue=NULL;
+        
+        try
+        {
+                const char* url="http://localhost:80/axis/UnboundedChoice";
+                ChoiceComplexType* Value0;
+                ChoiceComplexType* Value1;
+                
+                Value0=new      ChoiceComplexType();
+                Value0->StringValue=NULL;
 
-		cout<< "Calling the Service..."<<endl;
-		xsd__int_Array * arrayIn = new xsd__int_Array();
-		xsd__int ** array = new xsd__int*[5];		
-		for (int x=0; x<5; x++)
-		{
-            array[x] = new xsd__int(x+1);			
-		}
-		arrayIn->set(array,5);
-		Value0->setIntValue(arrayIn);
-		url = argv[1];
-		ChoiceTestSoap ws(url);
+                cout<< "Calling the Service..."<<endl;
+                xsd__int_Array * arrayIn = new xsd__int_Array();
+                xsd__int ** array = new xsd__int*[5];           
+                for (int x=0; x<5; x++)
+                {
+            array[x] = new xsd__int(x+1);                       
+                }
+                arrayIn->set(array,5);
+                Value0->setIntValue(arrayIn);
+                url = argv[1];
+                ChoiceTestSoap ws(url);
 
-		Value1=ws.echoChoice(Value0);
-		int outputSize=0;
-		
-		for(int i=0;i<5;i++)
-			cout << "Value1->IntValue->m_Array[" << i << "] = " << *(Value1->IntValue->get(outputSize)[i]) << endl;
-		  // Clear up input array        
+                Value1=ws.echoChoice(Value0);
+                int outputSize=0;
+                
+                for(int i=0;i<5;i++)
+                        cout << "Value1->IntValue->m_Array[" << i << "] = " << *(Value1->IntValue->get(outputSize)[i]) << endl;
+                  // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < 5 ; deleteIndex++ )
         {
             delete [] array[deleteIndex];
         }
 
-		delete arrayIn;
-	
-	}catch (AxisException & e)
+                delete arrayIn;
+        
+        }catch (AxisException & e)
     {
-	printf ("Exception : %s\n", e.what ());
+        printf ("Exception : %s\n", e.what ());
     }
     catch (exception & e)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
     catch (...)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
 
-	return 0;
+        return 0;
 
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp Thu Apr 27 20:03:51 2006
@@ -7,61 +7,61 @@
 
 int main(int argc, char *argv[])
 {
-	
-	try
-	{
-		const char* url="http://localhost:80/axis/UnboundedStringChoice";
-		ChoiceComplexType* Value0;
-		ChoiceComplexType* Value1;
-		Value0 = new	ChoiceComplexType();
-		
-		cout<< "Calling the Service..."<<endl;
+        
+        try
+        {
+                const char* url="http://localhost:80/axis/UnboundedStringChoice";
+                ChoiceComplexType* Value0;
+                ChoiceComplexType* Value1;
+                Value0 = new    ChoiceComplexType();
+                
+                cout<< "Calling the Service..."<<endl;
 
-		xsd__string_Array * arrayIn =new xsd__string_Array();
-		xsd__string *array = new xsd__string[5];		
+                xsd__string_Array * arrayIn =new xsd__string_Array();
+                xsd__string *array = new xsd__string[5];                
         array[0] = "a"; 
-		array[1] = "b";
-		array[2] = "c";
-		array[3] = "d";
-		array[4] = "e";		
-		arrayIn->set(array,5);
-		Value0->setStringValue(arrayIn);
-	
-		if ( argc > 1 )
+                array[1] = "b";
+                array[2] = "c";
+                array[3] = "d";
+                array[4] = "e";         
+                arrayIn->set(array,5);
+                Value0->setStringValue(arrayIn);
+        
+                if ( argc > 1 )
             url = argv[1];
-		
-		ChoiceTestSoap ws(url);
+                
+                ChoiceTestSoap ws(url);
 
-		Value1 = ws.echoChoice(Value0);
-		int outputSize =0;
-		
-		for (int i=0;i<5;i++)
-			cout << "Value1->StringValue->m_Array[" << i << "] = " << *(Value1->StringValue->get(outputSize)[i]) << endl;
+                Value1 = ws.echoChoice(Value0);
+                int outputSize =0;
+                
+                for (int i=0;i<5;i++)
+                        cout << "Value1->StringValue->m_Array[" << i << "] = " << *(Value1->StringValue->get(outputSize)[i]) << endl;
 
-		  // Clear up input array        
+                  // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < 5 ; deleteIndex++ )
         {
             delete [] array[deleteIndex];
         }
         delete [] array;
-		delete arrayIn;
+                delete arrayIn;
 
 
-	
+        
 
-	}catch (AxisException & e)
+        }catch (AxisException & e)
     {
-	printf ("Exception : %s\n", e.what ());
+        printf ("Exception : %s\n", e.what ());
     }
     catch (exception & e)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
     catch (...)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
-	return 0;
+        return 0;
 
 }
 



Mime
View raw message