ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r397747 [11/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/ShallowAndDeepCopyingInComplexTypeOfSimpleTypesClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ShallowAndDeepCopyingInComplexTypeOfSimpleTypesClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ShallowAndDeepCopyingInComplexTypeOfSimpleTypesClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ShallowAndDeepCopyingInComplexTypeOfSimpleTypesClient.cpp Thu Apr 27 20:03:51 2006
@@ -35,10 +35,10 @@
     //signal(SIGQUIT, sig_handler);
     //signal(SIGBUS, sig_handler);
     signal(SIGFPE, sig_handler);
-	
-	testDeepCopyUsingDefault();
-	testDeepCopyUsingFlag();
-	testShallowCopy();
+        
+        testDeepCopyUsingDefault();
+        testDeepCopyUsingFlag();
+        testShallowCopy();
 
        
     cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
@@ -69,136 +69,136 @@
 
 void testDeepCopyUsingDefault()
 {
-	ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
-	// Test for string based types
-	complexType->setaStringType("Hello!");
-	complexType->setaStringType("Goodbye!");
-	xsd__string aStringType = new char[9];
-	strcpy(aStringType, "Welcome!");
-	complexType->setaStringType(aStringType);
-	delete [] aStringType;
-	complexType->setaStringType(NULL);
-	
-
-	// Test for nillable numeric types
-	xsd__integer * aNillableIntegerType = new xsd__integer(123);
-	complexType->setaNillableIntegerType(aNillableIntegerType);
-	delete aNillableIntegerType;
-	xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
-	complexType->setaNillableIntegerType(aSecondNillableIntegerType);
-	delete aSecondNillableIntegerType;
-	complexType->setaNillableIntegerType(NULL);
-
-	// Test for optional numeric types
-	xsd__integer * anOptionalIntegerType = new xsd__integer(789);
-	complexType->setanOptionalIntegerType(anOptionalIntegerType);
-	delete anOptionalIntegerType;
-	xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
-	complexType->setanOptionalIntegerType(aSecondOptionalIntegerType);
-	delete aSecondOptionalIntegerType;
-	complexType->setanOptionalIntegerType(NULL);
-
-	// Test correct copying (so repopulate values)
-	complexType->setaStringType("Welcome!");
-	xsd__integer * optionalInteger = new xsd__integer(9876);
-	complexType->setanOptionalIntegerType(optionalInteger);
-	delete optionalInteger;
-	xsd__integer * nillableInteger = new xsd__integer(321);
-	complexType->setaNillableIntegerType(nillableInteger);
-	delete nillableInteger;
-	ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
+        ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
+        // Test for string based types
+        complexType->setaStringType("Hello!");
+        complexType->setaStringType("Goodbye!");
+        xsd__string aStringType = new char[9];
+        strcpy(aStringType, "Welcome!");
+        complexType->setaStringType(aStringType);
+        delete [] aStringType;
+        complexType->setaStringType(NULL);
+        
+
+        // Test for nillable numeric types
+        xsd__integer * aNillableIntegerType = new xsd__integer(123);
+        complexType->setaNillableIntegerType(aNillableIntegerType);
+        delete aNillableIntegerType;
+        xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
+        complexType->setaNillableIntegerType(aSecondNillableIntegerType);
+        delete aSecondNillableIntegerType;
+        complexType->setaNillableIntegerType(NULL);
+
+        // Test for optional numeric types
+        xsd__integer * anOptionalIntegerType = new xsd__integer(789);
+        complexType->setanOptionalIntegerType(anOptionalIntegerType);
+        delete anOptionalIntegerType;
+        xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
+        complexType->setanOptionalIntegerType(aSecondOptionalIntegerType);
+        delete aSecondOptionalIntegerType;
+        complexType->setanOptionalIntegerType(NULL);
+
+        // Test correct copying (so repopulate values)
+        complexType->setaStringType("Welcome!");
+        xsd__integer * optionalInteger = new xsd__integer(9876);
+        complexType->setanOptionalIntegerType(optionalInteger);
+        delete optionalInteger;
+        xsd__integer * nillableInteger = new xsd__integer(321);
+        complexType->setaNillableIntegerType(nillableInteger);
+        delete nillableInteger;
+        ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
 
-	delete complexType;
-	delete aSecondComplexType;
+        delete complexType;
+        delete aSecondComplexType;
 }
 
 void testDeepCopyUsingFlag()
 {
-	ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
-	// Test for string based types
-	complexType->setaStringType("Hello!", true);
-	complexType->setaStringType("Goodbye!", true);
-	xsd__string aStringType = new char[9];
-	strcpy(aStringType, "Welcome!");
-	complexType->setaStringType(aStringType, true);
-	delete [] aStringType;
-	complexType->setaStringType(NULL, true);
-	
-
-	// Test for nillable numeric types
-	xsd__integer * aNillableIntegerType = new xsd__integer(123);
-	complexType->setaNillableIntegerType(aNillableIntegerType, true);
-	delete aNillableIntegerType;
-	xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
-	complexType->setaNillableIntegerType(aSecondNillableIntegerType, true);
-	delete aSecondNillableIntegerType;
-	complexType->setaNillableIntegerType(NULL, true);
-
-	// Test for optional numeric types
-	xsd__integer * anOptionalIntegerType = new xsd__integer(789);
-	complexType->setanOptionalIntegerType(anOptionalIntegerType, true);
-	delete anOptionalIntegerType;
-	xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
-	complexType->setanOptionalIntegerType(aSecondOptionalIntegerType, true);
-	delete aSecondOptionalIntegerType;
-	complexType->setanOptionalIntegerType(NULL, true);
-
-	// Test correct copying (so repopulate values)
-	complexType->setaStringType("Welcome!", true);
-	xsd__integer * optionalInteger = new xsd__integer(9876);
-	complexType->setanOptionalIntegerType(optionalInteger, true);
-	delete optionalInteger;
-	xsd__integer * nillableInteger = new xsd__integer(321);
-	complexType->setaNillableIntegerType(nillableInteger, true);
-	delete nillableInteger;
-	ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
+        ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
+        // Test for string based types
+        complexType->setaStringType("Hello!", true);
+        complexType->setaStringType("Goodbye!", true);
+        xsd__string aStringType = new char[9];
+        strcpy(aStringType, "Welcome!");
+        complexType->setaStringType(aStringType, true);
+        delete [] aStringType;
+        complexType->setaStringType(NULL, true);
+        
+
+        // Test for nillable numeric types
+        xsd__integer * aNillableIntegerType = new xsd__integer(123);
+        complexType->setaNillableIntegerType(aNillableIntegerType, true);
+        delete aNillableIntegerType;
+        xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
+        complexType->setaNillableIntegerType(aSecondNillableIntegerType, true);
+        delete aSecondNillableIntegerType;
+        complexType->setaNillableIntegerType(NULL, true);
+
+        // Test for optional numeric types
+        xsd__integer * anOptionalIntegerType = new xsd__integer(789);
+        complexType->setanOptionalIntegerType(anOptionalIntegerType, true);
+        delete anOptionalIntegerType;
+        xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
+        complexType->setanOptionalIntegerType(aSecondOptionalIntegerType, true);
+        delete aSecondOptionalIntegerType;
+        complexType->setanOptionalIntegerType(NULL, true);
+
+        // Test correct copying (so repopulate values)
+        complexType->setaStringType("Welcome!", true);
+        xsd__integer * optionalInteger = new xsd__integer(9876);
+        complexType->setanOptionalIntegerType(optionalInteger, true);
+        delete optionalInteger;
+        xsd__integer * nillableInteger = new xsd__integer(321);
+        complexType->setaNillableIntegerType(nillableInteger, true);
+        delete nillableInteger;
+        ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
 
-	delete complexType;
-	delete aSecondComplexType;
+        delete complexType;
+        delete aSecondComplexType;
 }
 
 
 void testShallowCopy()
 {
-	ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
+        ElementFormDefaultIsQualified * complexType = new ElementFormDefaultIsQualified();
 
-	// Test for string based types
-	complexType->setaStringType("Hello!", false);
-	complexType->setaStringType("Goodbye!", false);
-	xsd__string aStringType = new char[9];
-	strcpy(aStringType, "Welcome!");
-	complexType->setaStringType(aStringType, false);
-	complexType->setaStringType(NULL, false);
-
-	// Test for nillable numeric types
-	xsd__integer * aNillableIntegerType = new xsd__integer(123);
-	complexType->setaNillableIntegerType(aNillableIntegerType, false);
-	xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
-	complexType->setaNillableIntegerType(aSecondNillableIntegerType, false);
-	complexType->setaNillableIntegerType(NULL, false);
-
-	// Test for optional numeric types
-	xsd__integer * anOptionalIntegerType = new xsd__integer(789);
-	complexType->setanOptionalIntegerType(anOptionalIntegerType, false);
-	xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
-	complexType->setanOptionalIntegerType(aSecondOptionalIntegerType, false);
-	complexType->setanOptionalIntegerType(NULL, false);
-	
-	// Test correct copying (so repopulate values)
-	complexType->setaStringType("Welcome!", false);
-	xsd__integer * optionalInteger = new xsd__integer(9876);
-	complexType->setanOptionalIntegerType(optionalInteger, false);
-	xsd__integer * nillableInteger = new xsd__integer(321);
-	complexType->setaNillableIntegerType(nillableInteger, false);
-	ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
-
-	delete [] aStringType;
-	delete aNillableIntegerType;
-	delete aSecondNillableIntegerType;
-	delete anOptionalIntegerType;
-	delete aSecondOptionalIntegerType;
-	delete optionalInteger;
-	delete nillableInteger;
-	delete complexType;
-	delete aSecondComplexType;
+        // Test for string based types
+        complexType->setaStringType("Hello!", false);
+        complexType->setaStringType("Goodbye!", false);
+        xsd__string aStringType = new char[9];
+        strcpy(aStringType, "Welcome!");
+        complexType->setaStringType(aStringType, false);
+        complexType->setaStringType(NULL, false);
+
+        // Test for nillable numeric types
+        xsd__integer * aNillableIntegerType = new xsd__integer(123);
+        complexType->setaNillableIntegerType(aNillableIntegerType, false);
+        xsd__integer * aSecondNillableIntegerType = new xsd__integer(456);
+        complexType->setaNillableIntegerType(aSecondNillableIntegerType, false);
+        complexType->setaNillableIntegerType(NULL, false);
+
+        // Test for optional numeric types
+        xsd__integer * anOptionalIntegerType = new xsd__integer(789);
+        complexType->setanOptionalIntegerType(anOptionalIntegerType, false);
+        xsd__integer * aSecondOptionalIntegerType = new xsd__integer(54321);
+        complexType->setanOptionalIntegerType(aSecondOptionalIntegerType, false);
+        complexType->setanOptionalIntegerType(NULL, false);
+        
+        // Test correct copying (so repopulate values)
+        complexType->setaStringType("Welcome!", false);
+        xsd__integer * optionalInteger = new xsd__integer(9876);
+        complexType->setanOptionalIntegerType(optionalInteger, false);
+        xsd__integer * nillableInteger = new xsd__integer(321);
+        complexType->setaNillableIntegerType(nillableInteger, false);
+        ElementFormDefaultIsQualified * aSecondComplexType = new ElementFormDefaultIsQualified(*complexType);
+
+        delete [] aStringType;
+        delete aNillableIntegerType;
+        delete aSecondNillableIntegerType;
+        delete anOptionalIntegerType;
+        delete aSecondOptionalIntegerType;
+        delete optionalInteger;
+        delete nillableInteger;
+        delete complexType;
+        delete aSecondComplexType;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayClient.cpp Thu Apr 27 20:03:51 2006
@@ -12,72 +12,72 @@
 
 int main(int argc, char* argv[])
 {
-	int		x;
-	char *	url="http://localhost:80/axis/MathOps";
-	bool	bSuccess = false;
-	int		iRetryIterationCount = 3;
-
-	url = argv[1];
-
-	do
-	{
-		try
+        int             x;
+        char *  url="http://localhost:80/axis/MathOps";
+        bool    bSuccess = false;
+        int             iRetryIterationCount = 3;
+
+        url = argv[1];
+
+        do
+        {
+                try
         {
-			ArrayTestPortType	ws( url);
-			intArrayType		arrin;
-			intArrayType *		arrout;
-			xsd__int_Array		arrayInput;
-			int **				array = new int*[ARRAYSIZE];
+                        ArrayTestPortType       ws( url);
+                        intArrayType            arrin;
+                        intArrayType *          arrout;
+                        xsd__int_Array          arrayInput;
+                        int **                          array = new int*[ARRAYSIZE];
 
-			for( x = 0; x < ARRAYSIZE; x++)
-			{
-				array[x] = new int(x + 1000);
-			}
+                        for( x = 0; x < ARRAYSIZE; x++)
+                        {
+                                array[x] = new int(x + 1000);
+                        }
 
-			arrayInput.set(array,ARRAYSIZE);
-			arrin.setintItem(&arrayInput);
+                        arrayInput.set(array,ARRAYSIZE);
+                        arrin.setintItem(&arrayInput);
 
-			cout << "invoking echoIntArray..." << endl;
+                        cout << "invoking echoIntArray..." << endl;
 
-			int		outputSize = 0;
+                        int             outputSize = 0;
 
-			arrout = ws.echoIntArray( &arrin);
+                        arrout = ws.echoIntArray( &arrin);
 
-			for( x = 0; x < ARRAYSIZE; x++)
-			{
-				cout << *(arrout->intItem->get(outputSize)[x])<<endl;
-			}
+                        for( x = 0; x < ARRAYSIZE; x++)
+                        {
+                                cout << *(arrout->intItem->get(outputSize)[x])<<endl;
+                        }
 
-			// Clear up input array        
-			for( int deleteIndex = 0; deleteIndex < ARRAYSIZE; deleteIndex++)
-			{
-				delete array[deleteIndex];
-			}
+                        // Clear up input array        
+                        for( int deleteIndex = 0; deleteIndex < ARRAYSIZE; deleteIndex++)
+                        {
+                                delete array[deleteIndex];
+                        }
 
-			delete [] array;
+                        delete [] array;
 
-			bSuccess = true;
-		}
+                        bSuccess = true;
+                }
         catch( AxisException& e)
         {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 1)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 1)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-	            cout << "Exception : " << e.what() << endl;
-			}
+                        {
+                    cout << "Exception : " << e.what() << endl;
+                        }
         }
         catch( exception& e)
         {
@@ -88,10 +88,10 @@
             cout << "Unknown exception has occurred" << endl;
         }
 
-		iRetryIterationCount--;
-	} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+        } while( iRetryIterationCount > 0 && !bSuccess);
 
-	cout << "---------------------- TEST COMPLETE -----------------------------" << endl;
+        cout << "---------------------- TEST COMPLETE -----------------------------" << endl;
 
-	return 0;
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp Thu Apr 27 20:03:51 2006
@@ -26,78 +26,78 @@
 
 int main(int argc, char* argv[])
 {
-	int x;
-	char buffer1[100];
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/MathOps";
-	const char* server="localhost";
-	const char* port="80";
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        int x;
+        char buffer1[100];
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/MathOps";
+        const char* server="localhost";
+        const char* port="80";
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		ArrayTestPortType ws(endpoint);
-		//testing echoIntArray
-		intArrayType arrin;
-		intArrayType* arrout;
-		xsd__int_Array arrayInput;		
-        int ** array= new int*[ARRAYSIZE];		
-		for (x=0;x<ARRAYSIZE;x++)
-		{
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                ArrayTestPortType ws(endpoint);
+                //testing echoIntArray
+                intArrayType arrin;
+                intArrayType* arrout;
+                xsd__int_Array arrayInput;              
+        int ** array= new int*[ARRAYSIZE];              
+                for (x=0;x<ARRAYSIZE;x++)
+                {
             array[x] = new int(x + 1000);
-			//arrin.intItem.m_Array[x] = &intArray[x];
-		}
-		arrayInput.set(array,ARRAYSIZE);
-		arrin.setintItem(&arrayInput);		
-		cout << "invoking echoIntArray..."<<endl;
-		int outputSize=0;
-		arrout=ws.echoIntArray(&arrin);
-		for(x=0;x<ARRAYSIZE;x++)
-		   cout << *(arrout->intItem->get(outputSize)[x])<<endl;		
-		 // Clear up input array        
+                        //arrin.intItem.m_Array[x] = &intArray[x];
+                }
+                arrayInput.set(array,ARRAYSIZE);
+                arrin.setintItem(&arrayInput);          
+                cout << "invoking echoIntArray..."<<endl;
+                int outputSize=0;
+                arrout=ws.echoIntArray(&arrin);
+                for(x=0;x<ARRAYSIZE;x++)
+                   cout << *(arrout->intItem->get(outputSize)[x])<<endl;                
+                 // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete array[deleteIndex];
         }
         delete [] array;
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                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 0;
+                        {
+                                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 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDoc_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDoc_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDoc_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDoc_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -52,55 +52,55 @@
         /*Type casting the url to char * */
         char *p=(char *)Param;
         char endpoint[256];
-		int x;
+                int x;
         const char* url="http://puppet.in.ibm.com:9060/Calculator/services/Calculator";
         if(p!=NULL)
              url=p;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
-				sprintf(endpoint, "%s", url);
-				ArrayTestPortType ws(endpoint);
-				//testing echoIntArray
-				intArrayType arrin;
-				arrin.intItem.m_Array = new int*[ARRAYSIZE];
+                                sprintf(endpoint, "%s", url);
+                                ArrayTestPortType ws(endpoint);
+                                //testing echoIntArray
+                                intArrayType arrin;
+                                arrin.intItem.m_Array = new int*[ARRAYSIZE];
                 int * intArray = new int[ARRAYSIZE];
-				arrin.intItem.m_Size = ARRAYSIZE;
-				for (x=0;x<ARRAYSIZE;x++)
-				{
+                                arrin.intItem.m_Size = ARRAYSIZE;
+                                for (x=0;x<ARRAYSIZE;x++)
+                                {
                     intArray[x] = x;
-					arrin.intItem.m_Array[x] = &intArray[x];
-				}
-				if (ws.echoIntArray(&arrin)->intItem.m_Array != NULL)
-					cout << "successful "<<endl;
-				else
-					cout << "failed "<<endl;		
+                                        arrin.intItem.m_Array[x] = &intArray[x];
+                                }
+                                if (ws.echoIntArray(&arrin)->intItem.m_Array != NULL)
+                                        cout << "successful "<<endl;
+                                else
+                                        cout << "failed "<<endl;                
 
-				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)
         {
@@ -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/SimpleArraysClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp Thu Apr 27 20:03:51 2006
@@ -24,267 +24,267 @@
 
 int main(int argc, char* argv[])
 {
-	const char* url="http://localhost:80/axis/SimpleArrays";
-	char endpoint[256];
+        const char* url="http://localhost:80/axis/SimpleArrays";
+        char endpoint[256];
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
+                do
+                {
+        try
+        {
         int deleteIndex = 0;
-		sprintf(endpoint, "%s", url);
-		SimpleArrays ws(endpoint);
+                sprintf(endpoint, "%s", url);
+                SimpleArrays ws(endpoint);
 
-		xsd__boolean_Array boolean_in;
-		xsd__boolean_Array* boolean_out;
-		xsd__short_Array short_in;
-		//xsd__byte_Array byte_in;
-		//xsd__byte_Array byte_out;
-		xsd__short_Array* short_out;
-		xsd__int_Array int_in;
-		xsd__int_Array* int_out;
-		xsd__long_Array long_in;
-		xsd__long_Array* long_out;
-		xsd__float_Array float_in;
-		xsd__float_Array* float_out;
-		xsd__double_Array double_in;
-		xsd__double_Array* double_out;
-		xsd__string_Array string_in;
-		xsd__string_Array* string_out;
-
-
-		/* Test a boolean array */
-		xsd__boolean ** booleanInArray = new xsd__boolean*[ARRAYSIZE];
-		int x = 0;
-		for (x=0; x<ARRAYSIZE; x++)
-		{
-            booleanInArray[x] = new xsd__boolean((xsd__boolean)x);			
-		}
-		boolean_in.set(booleanInArray,ARRAYSIZE);
-		cout << "invoking echoBooleanArray..."<<endl;
-		boolean_out = ws.echoBooleanArray(&boolean_in);
-		int outputSize=0;
-		const xsd__boolean ** booleanOutArray = boolean_out->get(outputSize);
-		if(outputSize > 0)
-			if(*( booleanOutArray[0]) == (xsd__boolean)0)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;
+                xsd__boolean_Array boolean_in;
+                xsd__boolean_Array* boolean_out;
+                xsd__short_Array short_in;
+                //xsd__byte_Array byte_in;
+                //xsd__byte_Array byte_out;
+                xsd__short_Array* short_out;
+                xsd__int_Array int_in;
+                xsd__int_Array* int_out;
+                xsd__long_Array long_in;
+                xsd__long_Array* long_out;
+                xsd__float_Array float_in;
+                xsd__float_Array* float_out;
+                xsd__double_Array double_in;
+                xsd__double_Array* double_out;
+                xsd__string_Array string_in;
+                xsd__string_Array* string_out;
+
+
+                /* Test a boolean array */
+                xsd__boolean ** booleanInArray = new xsd__boolean*[ARRAYSIZE];
+                int x = 0;
+                for (x=0; x<ARRAYSIZE; x++)
+                {
+            booleanInArray[x] = new xsd__boolean((xsd__boolean)x);                      
+                }
+                boolean_in.set(booleanInArray,ARRAYSIZE);
+                cout << "invoking echoBooleanArray..."<<endl;
+                boolean_out = ws.echoBooleanArray(&boolean_in);
+                int outputSize=0;
+                const xsd__boolean ** booleanOutArray = boolean_out->get(outputSize);
+                if(outputSize > 0)
+                        if(*( booleanOutArray[0]) == (xsd__boolean)0)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;
 
-		 // Clear up input array        
+                 // Clear up input array        
         for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete booleanInArray[deleteIndex];
         }
         delete [] booleanInArray;
 
-		/* Test a byte array - that is directly rather than as base64Binary */
-		/*byte_in.m_Array = new xsd__byte[ARRAYSIZE];
-		byte_in.m_Size = ARRAYSIZE;
-		for (x=0; x<ARRAYSIZE; x++)
-		{
-			byte_in.m_Array[x] = (xsd__byte)x+31;
-		}
-		cout << "invoking echoByteArray..."<<endl;
-		byte_out = ws.echoByteArray(byte_in);
-		if(byte_out.m_Size > 0)
-			if(byte_out.m_Array[0] == (xsd__byte)31)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;		
-		*/
-		/* Test an short array */
+                /* Test a byte array - that is directly rather than as base64Binary */
+                /*byte_in.m_Array = new xsd__byte[ARRAYSIZE];
+                byte_in.m_Size = ARRAYSIZE;
+                for (x=0; x<ARRAYSIZE; x++)
+                {
+                        byte_in.m_Array[x] = (xsd__byte)x+31;
+                }
+                cout << "invoking echoByteArray..."<<endl;
+                byte_out = ws.echoByteArray(byte_in);
+                if(byte_out.m_Size > 0)
+                        if(byte_out.m_Array[0] == (xsd__byte)31)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;                
+                */
+                /* Test an short array */
                 /*
-		short_in.m_Array = new xsd__short[ARRAYSIZE];
-		short_in.m_Size = ARRAYSIZE;
-		for (x=0; x<ARRAYSIZE; x++)
-		{
-			short_in.m_Array[x] = x+250;
-		}
-		cout << "invoking echoIntArray..."<<endl;
-		short_out = ws.echoIntArray(short_in);
-		if(short_out.m_Size > 0)
-			if(short_out.m_Array[0] == 250)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;		
+                short_in.m_Array = new xsd__short[ARRAYSIZE];
+                short_in.m_Size = ARRAYSIZE;
+                for (x=0; x<ARRAYSIZE; x++)
+                {
+                        short_in.m_Array[x] = x+250;
+                }
+                cout << "invoking echoIntArray..."<<endl;
+                short_out = ws.echoIntArray(short_in);
+                if(short_out.m_Size > 0)
+                        if(short_out.m_Array[0] == 250)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;                
                 */
-		/* Test an int array */
-		xsd__int ** intInArray = new xsd__int*[ARRAYSIZE];		
-		for (x=0; x<ARRAYSIZE; x++)
-		{
+                /* Test an int array */
+                xsd__int ** intInArray = new xsd__int*[ARRAYSIZE];              
+                for (x=0; x<ARRAYSIZE; x++)
+                {
             intInArray[x] = new xsd__int(x+1);
-			
-		}
-		int_in.set(intInArray,ARRAYSIZE);
-		cout << "invoking echoIntArray..."<<endl;
-		int_out = ws.echoIntArray(&int_in);
-		outputSize = 0;
-		const xsd__int **intOutArray =int_out->get(outputSize);
-		if(outputSize > 0)
-			if(*(intOutArray[0]) == 1)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;
+                        
+                }
+                int_in.set(intInArray,ARRAYSIZE);
+                cout << "invoking echoIntArray..."<<endl;
+                int_out = ws.echoIntArray(&int_in);
+                outputSize = 0;
+                const xsd__int **intOutArray =int_out->get(outputSize);
+                if(outputSize > 0)
+                        if(*(intOutArray[0]) == 1)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;
 
-		for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+                for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete intInArray[deleteIndex];
         }
         delete [] intInArray;
 
 
-		/* Test a long array */
-		xsd__long ** longInArray = new xsd__long*[ARRAYSIZE];        
-		for (x=0; x<ARRAYSIZE; x++)
-		{
+                /* Test a long array */
+                xsd__long ** longInArray = new xsd__long*[ARRAYSIZE];        
+                for (x=0; x<ARRAYSIZE; x++)
+                {
             longInArray[x] = new xsd__long(x+ 200001);
-			
-		}
-		long_in.set(longInArray,ARRAYSIZE);
-		cout << "invoking echoLongArray..."<<endl;
-		long_out = ws.echoLongArray(&long_in);
-		outputSize = 0;
-		const xsd__long **longOutArray = long_out->get(outputSize);
-		if(outputSize > 0)
-			if(*(longOutArray[0]) == (xsd__long)200001)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;		
+                        
+                }
+                long_in.set(longInArray,ARRAYSIZE);
+                cout << "invoking echoLongArray..."<<endl;
+                long_out = ws.echoLongArray(&long_in);
+                outputSize = 0;
+                const xsd__long **longOutArray = long_out->get(outputSize);
+                if(outputSize > 0)
+                        if(*(longOutArray[0]) == (xsd__long)200001)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;                
 
-		// Clear up input array        
+                // Clear up input array        
         for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete longInArray[deleteIndex];
         }
         delete [] longInArray;
 
-		/* Test a float array */
-		xsd__float **floatInArray = new xsd__float*[ARRAYSIZE];
+                /* Test a float array */
+                xsd__float **floatInArray = new xsd__float*[ARRAYSIZE];
         
-		for (x=0; x<ARRAYSIZE; x++)
-		{
+                for (x=0; x<ARRAYSIZE; x++)
+                {
             floatInArray[x] = new xsd__float(x+ 11.111);
-			
-		}
+                        
+                }
         float_in.set(floatInArray,ARRAYSIZE);
-		cout << "invoking echoFloatArray..."<<endl;
-		float_out = ws.echoFloatArray(&float_in);
-		outputSize =0;
-		const xsd__float **floatOutArray=float_out->get(outputSize);
-		if(outputSize > 0)
-			if(*(floatOutArray[0]) == (xsd__float)11.111)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;	
+                cout << "invoking echoFloatArray..."<<endl;
+                float_out = ws.echoFloatArray(&float_in);
+                outputSize =0;
+                const xsd__float **floatOutArray=float_out->get(outputSize);
+                if(outputSize > 0)
+                        if(*(floatOutArray[0]) == (xsd__float)11.111)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;        
 
-		// Clear up input array        
+                // Clear up input array        
         for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete floatInArray[deleteIndex];
         }
         delete [] floatInArray;
 
-		/* Test a double array */
-		xsd__double ** doubleInArray=new xsd__double*[ARRAYSIZE];
-		
-		for (x=0; x<ARRAYSIZE; x++)
-		{
+                /* Test a double array */
+                xsd__double ** doubleInArray=new xsd__double*[ARRAYSIZE];
+                
+                for (x=0; x<ARRAYSIZE; x++)
+                {
             doubleInArray[x] = new xsd__double(x+71.15656);
-			
-		}
-		double_in.set(doubleInArray,ARRAYSIZE);
-		cout << "invoking echoDoubleArray..."<<endl;
-		double_out = ws.echoDoubleArray(&double_in);
-		outputSize = 0;
-		const xsd__double ** doubleOutArray = double_out->get(outputSize);
-
-		if(outputSize > 0)
-			if(*(doubleOutArray[0]) == (xsd__double)71.15656)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<endl;	
+                        
+                }
+                double_in.set(doubleInArray,ARRAYSIZE);
+                cout << "invoking echoDoubleArray..."<<endl;
+                double_out = ws.echoDoubleArray(&double_in);
+                outputSize = 0;
+                const xsd__double ** doubleOutArray = double_out->get(outputSize);
+
+                if(outputSize > 0)
+                        if(*(doubleOutArray[0]) == (xsd__double)71.15656)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<endl;        
 
-		// Clear up input array        
+                // Clear up input array        
         for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete doubleInArray[deleteIndex];
         }
         delete [] doubleInArray;
 
-		/* Test a string array */
-		static char* str1 = "Apache";
-		static char* str2 = "Axis C++";
-		xsd__string * stringInArray = new xsd__string[ARRAYSIZE];		
-		stringInArray[0] = "Apache";
-		stringInArray[1] = "Axis C++";
-		string_in.set(stringInArray,ARRAYSIZE);
-		cout << "invoking echoStringArray..."<<endl;
-		string_out = ws.echoStringArray(&string_in);
-		outputSize =0;
-		const xsd__string * stringOutArray = string_out->get(outputSize);
-		if(outputSize > 0)
-			if(strcmp(stringOutArray[0], str1) == 0)
-				cout << "successful "<<endl;
-			else
-				cout << "failed "<<endl;		
-		else
-			cout << "failed "<<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;
-			}
+                /* Test a string array */
+                static char* str1 = "Apache";
+                static char* str2 = "Axis C++";
+                xsd__string * stringInArray = new xsd__string[ARRAYSIZE];               
+                stringInArray[0] = "Apache";
+                stringInArray[1] = "Axis C++";
+                string_in.set(stringInArray,ARRAYSIZE);
+                cout << "invoking echoStringArray..."<<endl;
+                string_out = ws.echoStringArray(&string_in);
+                outputSize =0;
+                const xsd__string * stringOutArray = string_out->get(outputSize);
+                if(outputSize > 0)
+                        if(strcmp(stringOutArray[0], str1) == 0)
+                                cout << "successful "<<endl;
+                        else
+                                cout << "failed "<<endl;                
+                else
+                        cout << "failed "<<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)
-	{
-	    cout << "Unknown exception has occured"<<endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured"<<endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	return 0;
+                        {
+                                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 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceClient.cpp Thu Apr 27 20:03:51 2006
@@ -5,41 +5,41 @@
 
 int main(int argc, char *argv[])
 {
-	
-	try
-	{
-		const char* url="http://localhost:90/axis/SimpleChoice";
-		ChoiceComplexType* Value0=new ChoiceComplexType();
-		ChoiceComplexType* Value1;
-		Value0->IntValue= NULL;
-		Value0->IntValue=new int;
-		*(Value0->IntValue) = 1;
-		Value0->StringValue=NULL;
         
-		if(argc>1)
-			url = argv[1];
-		
-		cout<< "Calling the Service..."<<endl;
-		ChoiceTestSoap ws(url);
+        try
+        {
+                const char* url="http://localhost:90/axis/SimpleChoice";
+                ChoiceComplexType* Value0=new ChoiceComplexType();
+                ChoiceComplexType* Value1;
+                Value0->IntValue= NULL;
+                Value0->IntValue=new int;
+                *(Value0->IntValue) = 1;
+                Value0->StringValue=NULL;
+        
+                if(argc>1)
+                        url = argv[1];
+                
+                cout<< "Calling the Service..."<<endl;
+                ChoiceTestSoap ws(url);
 
-		Value1=ws.echoChoice(Value0);
+                Value1=ws.echoChoice(Value0);
 
-		cout<<"Value1->IntValue = "<<*(Value1->IntValue)<<endl;
-		
-	}catch (AxisException & e)
+                cout<<"Value1->IntValue = "<<*(Value1->IntValue)<<endl;
+                
+        }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/SimpleChoiceNillableClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp Thu Apr 27 20:03:51 2006
@@ -5,41 +5,41 @@
 
 int main(int argc, char *argv[])
 {
-	
-	try
-	{
-		const char* url="http://localhost:80/axis/SimpleChoice";
-		ChoiceComplexType* Value0=new ChoiceComplexType();
-		ChoiceComplexType* Value1;
-		int* a = NULL;
-		Value0->IntValue = &a;
-		Value0->StringValue=NULL;
         
-		if(argc>1)
-			url = argv[1];
-		
-		cout<< "Calling the Service..."<<endl;
-		ChoiceTestSoap ws(url);
+        try
+        {
+                const char* url="http://localhost:80/axis/SimpleChoice";
+                ChoiceComplexType* Value0=new ChoiceComplexType();
+                ChoiceComplexType* Value1;
+                int* a = NULL;
+                Value0->IntValue = &a;
+                Value0->StringValue=NULL;
+        
+                if(argc>1)
+                        url = argv[1];
+                
+                cout<< "Calling the Service..."<<endl;
+                ChoiceTestSoap ws(url);
 
-		Value1=ws.echoChoice(Value0);
-		
-		if ( !(*(Value1->IntValue)))
-			cout<<"The Value is NULL"<<endl;
-		
-	}catch (AxisException & e)
+                Value1=ws.echoChoice(Value0);
+                
+                if ( !(*(Value1->IntValue)))
+                        cout<<"The Value is NULL"<<endl;
+                
+        }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/SimpleRefClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefClient.cpp Thu Apr 27 20:03:51 2006
@@ -25,23 +25,23 @@
 
 int main( int argc, char * argv[])
 {
-	char *	url = "http://localhost:80/axis/MathOps";
-	bool	bSuccess = false;
-	int		iRetryIterationCount = 3;
+        char *  url = "http://localhost:80/axis/MathOps";
+        bool    bSuccess = false;
+        int             iRetryIterationCount = 3;
 
-	url = argv[1];
+        url = argv[1];
 
-		do
-		{
-			try
-			{
-				RefTestPortType	ws( url);
+                do
+                {
+                        try
+                        {
+                                RefTestPortType ws( url);
 
-				printf( "invoking echoInt..\n");
+                                printf( "invoking echoInt..\n");
 
-				intType	refint;
+                                intType refint;
 
-				refint.intItem = 56;
+                                refint.intItem = 56;
 
 // The webservice call returns the following message (NB: The use of the
 // unsupported 'multiRef' tag):-
@@ -70,49 +70,49 @@
 // </multiRef>
 // </soapenv:Body>
 // </soapenv:Envelope>
-				if( (ws.echoInt( &refint))->intItem == 56)
-				{
-					printf( "successful\n");
-				}
-				else
-				{
-					printf( "failed \n");
-				}
-
-				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)
-				{
-					printf( "Exception : %s\n", e.what());
-				}
-	        }
-			catch( exception& e)
-			{
-				printf( "Unknown exception has occured : %s\n", e.what());
-			}
-			catch( ...)
-			{
-				printf( "Unknown exception has occured\n");
-			}
+                                if( (ws.echoInt( &refint))->intItem == 56)
+                                {
+                                        printf( "successful\n");
+                                }
+                                else
+                                {
+                                        printf( "failed \n");
+                                }
+
+                                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)
+                                {
+                                        printf( "Exception : %s\n", e.what());
+                                }
+                }
+                        catch( exception& e)
+                        {
+                                printf( "Unknown exception has occured : %s\n", e.what());
+                        }
+                        catch( ...)
+                        {
+                                printf( "Unknown exception has occured\n");
+                        }
 
-			iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                        iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
-	return 0;
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDocClient.cpp Thu Apr 27 20:03:51 2006
@@ -26,70 +26,70 @@
 
 int main(int argc, char* argv[])
 {
-	int x;
-	char buffer1[100];
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/RefTest";
-	const char* server="localhost";
-	const char* port="80";
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		RefTestPortType ws(endpoint);
-
-		cout << "invoking echoInt.."<<endl;
-		intType refint;
-		refint.intItem =56;
-
-		if ((ws.echoInt(&refint))->intItem == 56)
-		{
-			cout << "successful"<<endl;
-		}
-		else
-		{
-			cout << "failed "<<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;
-			}
+        int x;
+        char buffer1[100];
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/RefTest";
+        const char* server="localhost";
+        const char* port="80";
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                RefTestPortType ws(endpoint);
+
+                cout << "invoking echoInt.."<<endl;
+                intType refint;
+                refint.intItem =56;
+
+                if ((ws.echoInt(&refint))->intItem == 56)
+                {
+                        cout << "successful"<<endl;
+                }
+                else
+                {
+                        cout << "failed "<<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)
-	{
-	    cout << "Unexpected exception has occured" << e.what() << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unexpected exception has occured" << e.what() << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown 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/SimpleRefDoc_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDoc_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDoc_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDoc_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -53,49 +53,49 @@
         const char* url="http://puppet.in.ibm.com:9060/Calculator/services/Calculator";
         if(p!=NULL)
              url=p;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 sprintf(endpoint, "%s", url);
-				RefTestPortType ws(endpoint);
-				intType refint;
-				refint.intItem =56;
-				if ((ws.echoInt(&refint))->intItem == 56)
-				{
-					cout << "successful"<<endl;
-				}
-				else
-				{
-					cout << "failed "<<endl;
-				}
+                                RefTestPortType ws(endpoint);
+                                intType refint;
+                                refint.intItem =56;
+                                if ((ws.echoInt(&refint))->intItem == 56)
+                                {
+                                        cout << "successful"<<endl;
+                                }
+                                else
+                                {
+                                        cout << "failed "<<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(exception& e)
         {
@@ -105,8 +105,8 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
                 #ifndef WIN32
                         pthread_exit(0);
                 #endif
@@ -119,60 +119,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/SimpleTypeArrayClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArrayClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArrayClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArrayClient.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 "SimpleTypeArrayWS.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 SimpleTypeArrayWS(endpoint, APTHTTP1_1);
@@ -55,49 +64,49 @@
     Type *output;
     xsd__int_Array array_input;   
     int i;
-	xsd__int ** array = new xsd__int*[100];
+        xsd__int ** array = new xsd__int*[100];
     for ( i = 0; i < 100; i++ ) {      
       array[i] = new xsd__int(i);
     }
-	array_input.set(array,100);
+        array_input.set(array,100);
     input = new Type();
     input->setitem(&array_input);
     output = ws->getInput(input);
-	xsd__int_Array * outputArray = output->getitem();
-	int outputSize=0;
-	const xsd__int ** outarray = outputArray->get(outputSize);
+        xsd__int_Array * outputArray = output->getitem();
+        int outputSize=0;
+        const xsd__int ** outarray = outputArray->get(outputSize);
     for ( i = 0; i < 100; i++ ) {
       cout << "item [" << i << "] = " << *(outarray[i]) << endl;
     }
     returnValue = 0; // Success
-	
-	// Clear up input array        
+        
+        // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < 100 ; deleteIndex++ )
         {
             delete array[deleteIndex];
         }
         delete [] array;
-		delete input;
-	bSuccess = true;
+                delete input;
+        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;
-			}
+                        }
     if(endpoint_set)
       free(endpoint);
   } catch(...) {
@@ -109,18 +118,18 @@
   // 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);
   cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
   return returnValue;
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArray_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArray_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArray_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArray_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -54,58 +54,58 @@
         if(p!=NULL)
              url=p;
           SimpleTypeArrayWS *ws;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
                 sprintf(endpoint, "%s", url);
                 ws=new SimpleTypeArrayWS(endpoint, APTHTTP1_1);
                 Type *input;
-				Type *output;
-				xsd__int_Array array_input;
-				int entries[100];
-				int i;
+                                Type *output;
+                                xsd__int_Array array_input;
+                                int entries[100];
+                                int i;
 
-				array_input.m_Array = new int*[100];
-				array_input.m_Size  = 100;
+                                array_input.m_Array = new int*[100];
+                                array_input.m_Size  = 100;
 
-				for ( i = 0; i < 100; i++ ) {
-				entries[i] = i;
+                                for ( i = 0; i < 100; i++ ) {
+                                entries[i] = i;
                     array_input.m_Array[i] = &entries[i];
-				}
+                                }
 
-				input = new Type();
-				input->item = array_input;
+                                input = new Type();
+                                input->item = array_input;
 
-				output = ws->getInput(input);
-				i=0;				
-				cout << "item [" << i << "] = " << *(output->item.m_Array[i]) << endl;			
-				delete ws;
-				bSuccess = true;
+                                output = ws->getInput(input);
+                                i=0;                            
+                                cout << "item [" << i << "] = " << *(output->item.m_Array[i]) << endl;                  
+                                delete ws;
+                                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)
         {
@@ -115,8 +115,8 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
                 #ifndef WIN32
                         pthread_exit(0);
                 #endif
@@ -129,60 +129,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/SimpleTypeInnerUnboundedClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedClient.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 "SimpleTypeInnerUnboundedWS.hpp" 
 #include <stdlib.h> // For malloc(), calloc(), strdup() and free()
 #include <iostream>
@@ -40,11 +49,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 SimpleTypeInnerUnboundedWS(endpoint, APTHTTP1_1);
@@ -95,26 +104,26 @@
       cout << "enum_kind " << result->att_enum_kind << endl;
       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;
   }
@@ -122,18 +131,18 @@
   // 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);
   cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;



Mime
View raw message