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 [9/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/MultiOutClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MultiOutClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MultiOutClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MultiOutClient.cpp Thu Apr 27 20:03:51 2006
@@ -21,90 +21,90 @@
 
 int main(int argc, char* argv[])
 {
-	bool bSuccess = false;
-	int	iRetryIterationCount = 3;
-	do
-	{
-		try
-		{
-			MultiOut ws(argv[1]);
-
-			xsd__string OutValue0 = NULL;
-			xsd__integer * pOutValue1 = NULL;
-			xsd__int outValue2;
-			xsd__long outValue3;
-			xsd__short outValue4;
-			xsd__decimal outValue5;
-			xsd__float outValue6;
-			xsd__double outValue7;
-			xsd__boolean outValue8;
-			xsd__byte outValue9;
-
-			ws.get(&OutValue0,
-				&pOutValue1,
-				&outValue2,
-				&outValue3,
-				&outValue4,
-				&outValue5,
-				&outValue6,
-				&outValue7,
-				&outValue8,
-				&outValue9);
-
-			char sInteger[128], sLong[128];
-
-			const char *sBool = (outValue8==false_)?"false":"true";
-
-			cout << OutValue0 << endl;
-			cout << *pOutValue1 << endl;
-			cout << outValue2 << endl;
-			cout << outValue3 << endl;
-			cout << outValue4 << endl;
-			cout << outValue5 << endl;
-			cout << outValue6 << endl;
-			cout << outValue7 << endl;
-			cout << sBool << endl;
+        bool bSuccess = false;
+        int     iRetryIterationCount = 3;
+        do
+        {
+                try
+                {
+                        MultiOut ws(argv[1]);
+
+                        xsd__string OutValue0 = NULL;
+                        xsd__integer * pOutValue1 = NULL;
+                        xsd__int outValue2;
+                        xsd__long outValue3;
+                        xsd__short outValue4;
+                        xsd__decimal outValue5;
+                        xsd__float outValue6;
+                        xsd__double outValue7;
+                        xsd__boolean outValue8;
+                        xsd__byte outValue9;
+
+                        ws.get(&OutValue0,
+                                &pOutValue1,
+                                &outValue2,
+                                &outValue3,
+                                &outValue4,
+                                &outValue5,
+                                &outValue6,
+                                &outValue7,
+                                &outValue8,
+                                &outValue9);
+
+                        char sInteger[128], sLong[128];
+
+                        const char *sBool = (outValue8==false_)?"false":"true";
+
+                        cout << OutValue0 << endl;
+                        cout << *pOutValue1 << endl;
+                        cout << outValue2 << endl;
+                        cout << outValue3 << endl;
+                        cout << outValue4 << endl;
+                        cout << outValue5 << endl;
+                        cout << outValue6 << endl;
+                        cout << outValue7 << endl;
+                        cout << sBool << endl;
 #ifdef __OS400__
                   if (outValue9 == 0x41) // Ascii 'A'
                      outValue9 = 'A';    // Set to ebcdic A
 #endif
-			cout << outValue9 << endl;
+                        cout << outValue9 << endl;
 
-			delete [] OutValue0;
-			delete pOutValue1;
+                        delete [] OutValue0;
+                        delete pOutValue1;
 
-			bSuccess = true;
-		}
-		catch(AxisException& e)
-		{
-			bool bSilent = false;
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 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 << "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" << 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/NamespaceTest1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp Thu Apr 27 20:03:51 2006
@@ -18,72 +18,72 @@
 
 int main( int argc, char * argv[])
 {
-	bool	bSuccess = false;
-	int		iRetryIterationCount = 3;
+        bool    bSuccess = false;
+        int             iRetryIterationCount = 3;
 
-	do
-	{
-		try
-		{
-			const char *			pszURL = "http://localhost:9090/AxisBench/services/AxisBenchSoapImpl";
-
-			pszURL = argv[1];
-
-			TestServicePortType *	pWS = new TestServicePortType( pszURL, APTHTTP1_1);
-			SampleBean				sSB;
-			sSB.setBoolean(false_);
-			sSB.setByte(0);
-			sSB.setCalendar(NULL);
-			sSB.setDouble(0.000000000);
-			sSB.setFloat(0.00000);
-			sSB.setInt(0);
-			sSB.setLong(0);
-			sSB.setShort(0);
-			sSB.setString(NULL);
-			sSB.setTime(NULL);
-
-			pWS->aBeanPortType( &sSB);
-
-			delete pWS;
-
-			cout << "Test completed without fault" << 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 : " << e.what() << endl;
-		}
-		catch(...)
-		{
-			cout << "Unknown exception has occured" << endl;
-		}
+        do
+        {
+                try
+                {
+                        const char *                    pszURL = "http://localhost:9090/AxisBench/services/AxisBenchSoapImpl";
+
+                        pszURL = argv[1];
+
+                        TestServicePortType *   pWS = new TestServicePortType( pszURL, APTHTTP1_1);
+                        SampleBean                              sSB;
+                        sSB.setBoolean(false_);
+                        sSB.setByte(0);
+                        sSB.setCalendar(NULL);
+                        sSB.setDouble(0.000000000);
+                        sSB.setFloat(0.00000);
+                        sSB.setInt(0);
+                        sSB.setLong(0);
+                        sSB.setShort(0);
+                        sSB.setString(NULL);
+                        sSB.setTime(NULL);
+
+                        pWS->aBeanPortType( &sSB);
+
+                        delete pWS;
+
+                        cout << "Test completed without fault" << 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 : " << e.what() << endl;
+                }
+                catch(...)
+                {
+                        cout << "Unknown exception has occured" << 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/NestedArraysClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedArraysClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedArraysClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedArraysClient.cpp Thu Apr 27 20:03:51 2006
@@ -21,101 +21,101 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/NestedArrays";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/NestedArrays";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		NestedArrays* ws = new NestedArrays(endpoint);
-
-		/* These contain xsd__int_Array */
-		ArrayOf_xsd_int baseArray1;
-		ArrayOf_xsd_int baseArray2;
-		ArrayOf_xsd_int baseArray3;
-		ArrayOf_xsd_int baseArray4;
-
-		/* These contain ArrayOf_xsd_int_Array */
-		ArrayOfArrayOf_xsd_int subArray1;
-		ArrayOfArrayOf_xsd_int subArray2;
-
-		/* This is an array of ArrayOfArrayOf_xsd_int */
-		ArrayOfArrayOf_xsd_int_Array parentArray;
-
-		/* Set xsd__int_Array into ArrayOf_xsd_int */
-		xsd__int_Array baseArray1In;
-        xsd__int ** baseArray1Vales = new xsd__int*[ARRAYSIZE];		
-		baseArray1Vales[0] = new xsd__int(1);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                NestedArrays* ws = new NestedArrays(endpoint);
+
+                /* These contain xsd__int_Array */
+                ArrayOf_xsd_int baseArray1;
+                ArrayOf_xsd_int baseArray2;
+                ArrayOf_xsd_int baseArray3;
+                ArrayOf_xsd_int baseArray4;
+
+                /* These contain ArrayOf_xsd_int_Array */
+                ArrayOfArrayOf_xsd_int subArray1;
+                ArrayOfArrayOf_xsd_int subArray2;
+
+                /* This is an array of ArrayOfArrayOf_xsd_int */
+                ArrayOfArrayOf_xsd_int_Array parentArray;
+
+                /* Set xsd__int_Array into ArrayOf_xsd_int */
+                xsd__int_Array baseArray1In;
+        xsd__int ** baseArray1Vales = new xsd__int*[ARRAYSIZE];         
+                baseArray1Vales[0] = new xsd__int(1);
         baseArray1Vales[1] = new xsd__int(2);
-		baseArray1In.set(baseArray1Vales,ARRAYSIZE);
-		baseArray1.item= &baseArray1In;
+                baseArray1In.set(baseArray1Vales,ARRAYSIZE);
+                baseArray1.item= &baseArray1In;
 
-		xsd__int_Array baseArray2In;
-        xsd__int ** baseArray2Vales = new xsd__int*[ARRAYSIZE];		
-        baseArray2Vales[0] =new xsd__int(3);		
+                xsd__int_Array baseArray2In;
+        xsd__int ** baseArray2Vales = new xsd__int*[ARRAYSIZE];         
+        baseArray2Vales[0] =new xsd__int(3);            
         baseArray2Vales[1] =new xsd__int(4);
-		baseArray2In.set(baseArray2Vales,ARRAYSIZE);
-		baseArray2.setitem(&baseArray2In);
-		
-		xsd__int_Array baseArray3In;
-        xsd__int ** baseArray3Vales = new xsd__int*[ARRAYSIZE];		
-        baseArray3Vales[0] = new xsd__int(5);		
+                baseArray2In.set(baseArray2Vales,ARRAYSIZE);
+                baseArray2.setitem(&baseArray2In);
+                
+                xsd__int_Array baseArray3In;
+        xsd__int ** baseArray3Vales = new xsd__int*[ARRAYSIZE];         
+        baseArray3Vales[0] = new xsd__int(5);           
         baseArray3Vales[1] = new xsd__int(6);
-		baseArray3In.set(baseArray3Vales,ARRAYSIZE);
-		baseArray3.setitem(&baseArray3In);
-		
-		xsd__int_Array baseArray4In;
-        xsd__int ** baseArray4Vales = new xsd__int*[ARRAYSIZE];		
-        baseArray4Vales[0] = new xsd__int(7);		
+                baseArray3In.set(baseArray3Vales,ARRAYSIZE);
+                baseArray3.setitem(&baseArray3In);
+                
+                xsd__int_Array baseArray4In;
+        xsd__int ** baseArray4Vales = new xsd__int*[ARRAYSIZE];         
+        baseArray4Vales[0] = new xsd__int(7);           
         baseArray4Vales[1] = new xsd__int(8);
-		baseArray4In.set(baseArray4Vales,ARRAYSIZE);
-		baseArray4.setitem(&baseArray4In);
-		
-
-		/* Set ArrayOf_xsd_int_Array into ArrayOfArrayOf_xsd_int */
-		ArrayOf_xsd_int_Array sarray1;
-		ArrayOf_xsd_int ** array1 = new ArrayOf_xsd_int*[ARRAYSIZE];		
-		array1[0] = &baseArray1;
-		array1[1] = &baseArray2;
-		sarray1.set(array1,ARRAYSIZE);
-		subArray1.setitem(&sarray1);
-		
-		ArrayOf_xsd_int_Array sarray2;
-		ArrayOf_xsd_int ** array2 = new ArrayOf_xsd_int*[ARRAYSIZE];		
-		array2[0] = &baseArray3;
-		array2[1] = &baseArray4;
-		sarray2.set(array2,ARRAYSIZE);
-		subArray2.setitem(&sarray2);
-		
-		/* Set ArrayOfArrayOf_xsd_int into an Array of them */
-		
-		ArrayOfArrayOf_xsd_int ** pArray= new ArrayOfArrayOf_xsd_int*[ARRAYSIZE];		
-		pArray[0]=&subArray1;
-		pArray[1]=&subArray2;		
-		parentArray.set(pArray,ARRAYSIZE);
-		xsd__int_Array* response = ws->sendNestedArrays(&parentArray);
-		int outputSize = 0;
-		const xsd__int ** output = response->get(outputSize);		
-		cout << *(output[0]) << " " << *(output[1]) << endl;		
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-	    cout << "Exception : " << e.what() << endl;
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                baseArray4In.set(baseArray4Vales,ARRAYSIZE);
+                baseArray4.setitem(&baseArray4In);
+                
+
+                /* Set ArrayOf_xsd_int_Array into ArrayOfArrayOf_xsd_int */
+                ArrayOf_xsd_int_Array sarray1;
+                ArrayOf_xsd_int ** array1 = new ArrayOf_xsd_int*[ARRAYSIZE];            
+                array1[0] = &baseArray1;
+                array1[1] = &baseArray2;
+                sarray1.set(array1,ARRAYSIZE);
+                subArray1.setitem(&sarray1);
+                
+                ArrayOf_xsd_int_Array sarray2;
+                ArrayOf_xsd_int ** array2 = new ArrayOf_xsd_int*[ARRAYSIZE];            
+                array2[0] = &baseArray3;
+                array2[1] = &baseArray4;
+                sarray2.set(array2,ARRAYSIZE);
+                subArray2.setitem(&sarray2);
+                
+                /* Set ArrayOfArrayOf_xsd_int into an Array of them */
+                
+                ArrayOfArrayOf_xsd_int ** pArray= new ArrayOfArrayOf_xsd_int*[ARRAYSIZE];               
+                pArray[0]=&subArray1;
+                pArray[1]=&subArray2;           
+                parentArray.set(pArray,ARRAYSIZE);
+                xsd__int_Array* response = ws->sendNestedArrays(&parentArray);
+                int outputSize = 0;
+                const xsd__int ** output = response->get(outputSize);           
+                cout << *(output[0]) << " " << *(output[1]) << endl;            
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+            cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedComplexClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedComplexClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedComplexClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedComplexClient.cpp Thu Apr 27 20:03:51 2006
@@ -46,94 +46,94 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/NestedComplex";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/NestedComplex";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		NestedComplex ws(endpoint);
-
-		ComplexType2 complexType2;
-		ComplexType2* response;
-		SimpleArrays *simpleArrays1 = new SimpleArrays;
-		SimpleArrays *simpleArrays2 = new SimpleArrays;
-		SimpleArrays *simpleArrays[2] = {simpleArrays1, simpleArrays2};
-		ComplexType1 *complexType1_1 = new ComplexType1;
-		ComplexType1 *complexType1_2 = new ComplexType1;
-
-		for (int i=0; i<2; i++)
-		{
-			xsd__string_Array *strArray = simpleArrays[i]->stringArray;
-			xsd__int_Array *intArray = simpleArrays[i]->intArray;
-			xsd__string *strType = new xsd__string[ARRAYSIZE];
-			xsd__int ** intType = new xsd__int*[ARRAYSIZE];			
-			NEWCOPY(strType[0], "Apache");
-			NEWCOPY(strType[1], "Axis C++");
-			strArray->set(strType,ARRAYSIZE);			
-			intType[0] = new int(6);			
-			intType[1] = new int(7);
-			intArray->set(intType,ARRAYSIZE);
-			delete intType[0];
-			delete intType[1];
-			delete [] intType;
-			delete strType[0];
-			delete strType[1];
-			delete [] strType;
-			
-		}
-
-		complexType1_1->simpleArrays = simpleArrays1;
-		NEWCOPY(complexType1_1->ct1_string, "Hello");
-		complexType1_1->ct1_int = 13;
-		complexType1_2->simpleArrays = simpleArrays2;
-		NEWCOPY(complexType1_2->ct1_string, "World");
-		complexType1_2->ct1_int = 27;
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                NestedComplex ws(endpoint);
+
+                ComplexType2 complexType2;
+                ComplexType2* response;
+                SimpleArrays *simpleArrays1 = new SimpleArrays;
+                SimpleArrays *simpleArrays2 = new SimpleArrays;
+                SimpleArrays *simpleArrays[2] = {simpleArrays1, simpleArrays2};
+                ComplexType1 *complexType1_1 = new ComplexType1;
+                ComplexType1 *complexType1_2 = new ComplexType1;
+
+                for (int i=0; i<2; i++)
+                {
+                        xsd__string_Array *strArray = simpleArrays[i]->stringArray;
+                        xsd__int_Array *intArray = simpleArrays[i]->intArray;
+                        xsd__string *strType = new xsd__string[ARRAYSIZE];
+                        xsd__int ** intType = new xsd__int*[ARRAYSIZE];                 
+                        NEWCOPY(strType[0], "Apache");
+                        NEWCOPY(strType[1], "Axis C++");
+                        strArray->set(strType,ARRAYSIZE);                       
+                        intType[0] = new int(6);                        
+                        intType[1] = new int(7);
+                        intArray->set(intType,ARRAYSIZE);
+                        delete intType[0];
+                        delete intType[1];
+                        delete [] intType;
+                        delete strType[0];
+                        delete strType[1];
+                        delete [] strType;
+                        
+                }
+
+                complexType1_1->simpleArrays = simpleArrays1;
+                NEWCOPY(complexType1_1->ct1_string, "Hello");
+                complexType1_1->ct1_int = 13;
+                complexType1_2->simpleArrays = simpleArrays2;
+                NEWCOPY(complexType1_2->ct1_string, "World");
+                complexType1_2->ct1_int = 27;
 
         
-		ComplexType1_Array cType1Array;
-		ComplexType1 ** array = new ComplexType1*[ARRAYSIZE];
-		array[0]= complexType1_1;
-		array[1] = complexType1_2;
-		cType1Array.set(array,ARRAYSIZE);
-		complexType2.setcomplexType1Array(&cType1Array);
-		delete array[0];
-		delete array[1];
-		delete []array;
-		response = ws.echoNestedComplex(&complexType2);
-		int outputSize =0;
-		ComplexType1 ** output = response->getcomplexType1Array()->get(outputSize);
-		cout << output[0]->ct1_string << endl;
-		cout << output[0]->ct1_int << endl;
-		cout << output[0]->simpleArrays->stringArray->get(outputSize)[0] << " ";
-		cout << output[0]->simpleArrays->stringArray->get(outputSize)[1] << endl;
-		cout << *(output[0]->simpleArrays->intArray->get(outputSize)[0]) << " ";
-		cout << *(output[0]->simpleArrays->intArray->get(outputSize)[1]) << endl;
-		cout << output[1]->ct1_string << endl;
-		cout << output[1]->ct1_int << endl;
-		cout << output[1]->simpleArrays->stringArray->get(outputSize)[0] << " ";
-		cout << output[1]->simpleArrays->stringArray->get(outputSize)[1] << endl;
-		cout << *(output[1]->simpleArrays->intArray->get(outputSize)[0]) << " ";
-		cout << *(output[1]->simpleArrays->intArray->get(outputSize)[1]) << endl;
-
-	}
-	catch(AxisException& e)
-	{
-	    cout << "Exception : " << e.what() << endl;
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured : " << e.what() << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+                ComplexType1_Array cType1Array;
+                ComplexType1 ** array = new ComplexType1*[ARRAYSIZE];
+                array[0]= complexType1_1;
+                array[1] = complexType1_2;
+                cType1Array.set(array,ARRAYSIZE);
+                complexType2.setcomplexType1Array(&cType1Array);
+                delete array[0];
+                delete array[1];
+                delete []array;
+                response = ws.echoNestedComplex(&complexType2);
+                int outputSize =0;
+                ComplexType1 ** output = response->getcomplexType1Array()->get(outputSize);
+                cout << output[0]->ct1_string << endl;
+                cout << output[0]->ct1_int << endl;
+                cout << output[0]->simpleArrays->stringArray->get(outputSize)[0] << " ";
+                cout << output[0]->simpleArrays->stringArray->get(outputSize)[1] << endl;
+                cout << *(output[0]->simpleArrays->intArray->get(outputSize)[0]) << " ";
+                cout << *(output[0]->simpleArrays->intArray->get(outputSize)[1]) << endl;
+                cout << output[1]->ct1_string << endl;
+                cout << output[1]->ct1_int << endl;
+                cout << output[1]->simpleArrays->stringArray->get(outputSize)[0] << " ";
+                cout << output[1]->simpleArrays->stringArray->get(outputSize)[1] << endl;
+                cout << *(output[1]->simpleArrays->intArray->get(outputSize)[0]) << " ";
+                cout << *(output[1]->simpleArrays->intArray->get(outputSize)[1]) << endl;
+
+        }
+        catch(AxisException& e)
+        {
+            cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured : " << e.what() << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
 
-	return 0;
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NilValuesTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NilValuesTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NilValuesTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NilValuesTestClient.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 operations(endpoint, APTHTTP1_1);
@@ -61,35 +61,35 @@
 
     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 << "Exception : " << e.what() << endl;
-			}
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
   } catch(...) {
     cout << "Unknown Exception occured." << endl;
   }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
   if( endpoint_set)
-	  free(endpoint);
+          free(endpoint);
   // Samisa : clean up memory allocated for stub
   try
   {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NillableArraysClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NillableArraysClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NillableArraysClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NillableArraysClient.cpp Thu Apr 27 20:03:51 2006
@@ -29,280 +29,280 @@
 
 int main(int argc, char* argv[])
 {
-	const char* url="http://localhost:80/axis/NillableArrays";
-	char endpoint[256];
+        const char* url="http://localhost:80/axis/NillableArrays";
+        char endpoint[256];
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-	try
-	{
-		int outputSize = 0;
-		sprintf(endpoint, "%s", url);
-		NillableArrays ws(endpoint);
-
-		xsd__boolean_Array boolean_in;
-		xsd__boolean_Array* boolean_out;
-		xsd__short_Array short_in;
-		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 b1 = (xsd__boolean)0;
-		xsd__boolean b3 = (xsd__boolean)1;
-		xsd__boolean **booleanInArray = new xsd__boolean*[ARRAYSIZE];
-		booleanInArray[0] = &b1;
-		booleanInArray[1] = NULL;
-		booleanInArray[2] = &b3;
-		boolean_in.set(booleanInArray,ARRAYSIZE);
-		cout << "invoking echoBooleanArray..."<<endl;
-		boolean_out = ws.echoBooleanArray(&boolean_in);
-
-		outputSize = 0;
-		const xsd__boolean ** booleanArray = boolean_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(booleanArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*booleanArray[0] == b1) && (*booleanArray[2] == b3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-		/* Test an short array */
-		xsd__short s1 = (xsd__short)252;
-		xsd__short s3 = (xsd__short)254;
-		xsd__short ** shortInArray = new xsd__short*[ARRAYSIZE];
-		shortInArray[0] = &s1;
-		shortInArray[1] = NULL;
-		shortInArray[2] = &s3;
-		short_in.set(shortInArray,ARRAYSIZE);
-		cout << "invoking echoShortArray..."<<endl;
-		short_out = ws.echoShortArray(&short_in);
-
-		outputSize = 0;
-		const xsd__short ** shortArray = short_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(shortArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*shortArray[0] == s1) && (*shortArray[2] == s3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-		/* Test an int array */
-		xsd__int val1 = 1000000;
-		xsd__int val3 = 1000002;
-		xsd__int ** intInArray = new xsd__int*[ARRAYSIZE];
-		intInArray[0] = &val1;
-		intInArray[1] = NULL;
-		intInArray[2] = &val3;
-		int_in.set(intInArray,ARRAYSIZE);
-		cout << "invoking echoIntArray..."<<endl;
-		int_out = ws.echoIntArray(&int_in);
-
-		outputSize = 0;
-		const xsd__int ** intArray = int_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(intArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*intArray[0] == val1) && (*intArray[2] == val3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-
-		/* Test a long array */
-		xsd__long l1 = (xsd__long)200001;
-		xsd__long l3 = (xsd__long)200003;
-		xsd__long ** longInArray = new xsd__long*[ARRAYSIZE];
-		longInArray[0] = &l1;
-		longInArray[1] = NULL;
-		longInArray[2] = &l3;
-		long_in.set(longInArray,ARRAYSIZE);
-		cout << "invoking echoLongArray..."<<endl;
-		long_out = ws.echoLongArray(&long_in);
-
-		outputSize = 0;
-		const xsd__long ** longArray = long_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(longArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*longArray[0] == l1) && (*longArray[2] == l3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-		/* Test a float array */
-		xsd__float f1 = (xsd__float)11.111;
-		xsd__float f3 = (xsd__float)33.111;
-		xsd__float **floatInArray = new xsd__float*[ARRAYSIZE];
-		floatInArray[0] = &f1;
-		floatInArray[1] = NULL;
-		floatInArray[2] = &f3;
-		float_in.set(floatInArray,ARRAYSIZE);
-		cout << "invoking echoFloatArray..."<<endl;
-		float_out = ws.echoFloatArray(&float_in);
-
-		outputSize = 0;
-		const xsd__float ** floatArray = float_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(floatArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*floatArray[0] == f1) && (*floatArray[2] == f3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-		/* Test a double array */
-		xsd__double d1 = (xsd__double)71.1565;
-		xsd__double d3 = (xsd__double)73.1565;
-
-		xsd__double ** doubleInArray = new xsd__double*[ARRAYSIZE];		
-		doubleInArray[0] = &d1;
-		doubleInArray[1] = NULL;
-		doubleInArray[2] = &d3;
-		double_in.set(doubleInArray,ARRAYSIZE);
-		cout << "invoking echoDoubleArray..."<<endl;
-		double_out = ws.echoDoubleArray(&double_in);
-
-		outputSize = 0;
-		const xsd__double ** doubleArray = double_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(doubleArray[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (*doubleArray[0] == d1) && (*doubleArray[2] == d3) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-		/* Test a string array */
-		static char* str1 = "Apache";
-		static char* str2 = "Axis C++";
-		xsd__string * stringInArray = new xsd__string[ARRAYSIZE];		
-		stringInArray[0] = str1;
-		stringInArray[1] = NULL;
-		stringInArray[2] = str2;
-		string_in.set(stringInArray,ARRAYSIZE);
-		cout << "invoking echoStringArray..."<<endl;
-		string_out = ws.echoStringArray(&string_in);
-		outputSize =0;
-		const xsd__string *output = string_out->get(outputSize);
-		if(outputSize ==ARRAYSIZE)
-		{
-			if(output[1])
-			{
-				cout << "failed "<<endl;		
-			}
-			else if( (strcmp(output[0], str1) == 0) && (strcmp(output[2], str2) == 0) )
-			{
-				cout << "successful "<<endl;
-			}
-			else
-			{
-				cout << "failed "<<endl;
-			}
-		}
-		else
-		{
-			cout << "failed "<<endl;
-		}
-
-	}
-	catch(AxisException& e)
-	{
-	    cout << "Exception : "<< e.what()<<endl;
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured"<<endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured"<<endl;
-	}
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	return 0;
+        try
+        {
+                int outputSize = 0;
+                sprintf(endpoint, "%s", url);
+                NillableArrays ws(endpoint);
+
+                xsd__boolean_Array boolean_in;
+                xsd__boolean_Array* boolean_out;
+                xsd__short_Array short_in;
+                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 b1 = (xsd__boolean)0;
+                xsd__boolean b3 = (xsd__boolean)1;
+                xsd__boolean **booleanInArray = new xsd__boolean*[ARRAYSIZE];
+                booleanInArray[0] = &b1;
+                booleanInArray[1] = NULL;
+                booleanInArray[2] = &b3;
+                boolean_in.set(booleanInArray,ARRAYSIZE);
+                cout << "invoking echoBooleanArray..."<<endl;
+                boolean_out = ws.echoBooleanArray(&boolean_in);
+
+                outputSize = 0;
+                const xsd__boolean ** booleanArray = boolean_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(booleanArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*booleanArray[0] == b1) && (*booleanArray[2] == b3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+                /* Test an short array */
+                xsd__short s1 = (xsd__short)252;
+                xsd__short s3 = (xsd__short)254;
+                xsd__short ** shortInArray = new xsd__short*[ARRAYSIZE];
+                shortInArray[0] = &s1;
+                shortInArray[1] = NULL;
+                shortInArray[2] = &s3;
+                short_in.set(shortInArray,ARRAYSIZE);
+                cout << "invoking echoShortArray..."<<endl;
+                short_out = ws.echoShortArray(&short_in);
+
+                outputSize = 0;
+                const xsd__short ** shortArray = short_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(shortArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*shortArray[0] == s1) && (*shortArray[2] == s3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+                /* Test an int array */
+                xsd__int val1 = 1000000;
+                xsd__int val3 = 1000002;
+                xsd__int ** intInArray = new xsd__int*[ARRAYSIZE];
+                intInArray[0] = &val1;
+                intInArray[1] = NULL;
+                intInArray[2] = &val3;
+                int_in.set(intInArray,ARRAYSIZE);
+                cout << "invoking echoIntArray..."<<endl;
+                int_out = ws.echoIntArray(&int_in);
+
+                outputSize = 0;
+                const xsd__int ** intArray = int_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(intArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*intArray[0] == val1) && (*intArray[2] == val3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+
+                /* Test a long array */
+                xsd__long l1 = (xsd__long)200001;
+                xsd__long l3 = (xsd__long)200003;
+                xsd__long ** longInArray = new xsd__long*[ARRAYSIZE];
+                longInArray[0] = &l1;
+                longInArray[1] = NULL;
+                longInArray[2] = &l3;
+                long_in.set(longInArray,ARRAYSIZE);
+                cout << "invoking echoLongArray..."<<endl;
+                long_out = ws.echoLongArray(&long_in);
+
+                outputSize = 0;
+                const xsd__long ** longArray = long_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(longArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*longArray[0] == l1) && (*longArray[2] == l3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+                /* Test a float array */
+                xsd__float f1 = (xsd__float)11.111;
+                xsd__float f3 = (xsd__float)33.111;
+                xsd__float **floatInArray = new xsd__float*[ARRAYSIZE];
+                floatInArray[0] = &f1;
+                floatInArray[1] = NULL;
+                floatInArray[2] = &f3;
+                float_in.set(floatInArray,ARRAYSIZE);
+                cout << "invoking echoFloatArray..."<<endl;
+                float_out = ws.echoFloatArray(&float_in);
+
+                outputSize = 0;
+                const xsd__float ** floatArray = float_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(floatArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*floatArray[0] == f1) && (*floatArray[2] == f3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+                /* Test a double array */
+                xsd__double d1 = (xsd__double)71.1565;
+                xsd__double d3 = (xsd__double)73.1565;
+
+                xsd__double ** doubleInArray = new xsd__double*[ARRAYSIZE];             
+                doubleInArray[0] = &d1;
+                doubleInArray[1] = NULL;
+                doubleInArray[2] = &d3;
+                double_in.set(doubleInArray,ARRAYSIZE);
+                cout << "invoking echoDoubleArray..."<<endl;
+                double_out = ws.echoDoubleArray(&double_in);
+
+                outputSize = 0;
+                const xsd__double ** doubleArray = double_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(doubleArray[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (*doubleArray[0] == d1) && (*doubleArray[2] == d3) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+                /* Test a string array */
+                static char* str1 = "Apache";
+                static char* str2 = "Axis C++";
+                xsd__string * stringInArray = new xsd__string[ARRAYSIZE];               
+                stringInArray[0] = str1;
+                stringInArray[1] = NULL;
+                stringInArray[2] = str2;
+                string_in.set(stringInArray,ARRAYSIZE);
+                cout << "invoking echoStringArray..."<<endl;
+                string_out = ws.echoStringArray(&string_in);
+                outputSize =0;
+                const xsd__string *output = string_out->get(outputSize);
+                if(outputSize ==ARRAYSIZE)
+                {
+                        if(output[1])
+                        {
+                                cout << "failed "<<endl;                
+                        }
+                        else if( (strcmp(output[0], str1) == 0) && (strcmp(output[2], str2) == 0) )
+                        {
+                                cout << "successful "<<endl;
+                        }
+                        else
+                        {
+                                cout << "failed "<<endl;
+                        }
+                }
+                else
+                {
+                        cout << "failed "<<endl;
+                }
+
+        }
+        catch(AxisException& e)
+        {
+            cout << "Exception : "<< e.what()<<endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured"<<endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured"<<endl;
+        }
+        cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/OtherFaultExceptionTest.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/OtherFaultExceptionTest.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/OtherFaultExceptionTest.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/OtherFaultExceptionTest.cpp Thu Apr 27 20:03:51 2006
@@ -30,80 +30,80 @@
 
 int main( int argc, char * argv[])
 {
-	char			endpoint[256];
-	const char *	server = "localhost";
-	const char *	url = "http://localhost:80/axis/MathOps";
-	const char *	port = "80";
-	const char *	op = 0;
-	const char *	p1 = 0;
-	const char *	p2 = 0;
-	int				i1 = 0;
-	int				i2 = 0;
-	int				iResult;
-
-	signal( SIGILL, sig_handler);
-	signal( SIGABRT, sig_handler);
-	signal( SIGSEGV, sig_handler);
-	//signal( SIGQUIT, sig_handler);
-	//signal( SIGBUS, sig_handler);
-	signal( SIGFPE, sig_handler);
-
-	url = argv[1];
-
-	sprintf( endpoint, "%s", url);
-
-	op = "div";
-
-	if( strcmp( op, "div") == 0)
-	{
-	    for( int i = 1; i < 4; i++)
-	    {
-			switch( i)
-			{
-				case 1:
-				{
-					i1 = 10;
-					i2 = 0;
-					break;
-				}
-
-				case 2:
-				{
-					i1 = 1000;
-					i2 = 5;
-					break;
-				}
-
-				case 3:
-				{
-					i1 = 10;
-					i2 = -5;
-					break;
-				}
-			}
+        char                    endpoint[256];
+        const char *    server = "localhost";
+        const char *    url = "http://localhost:80/axis/MathOps";
+        const char *    port = "80";
+        const char *    op = 0;
+        const char *    p1 = 0;
+        const char *    p2 = 0;
+        int                             i1 = 0;
+        int                             i2 = 0;
+        int                             iResult;
+
+        signal( SIGILL, sig_handler);
+        signal( SIGABRT, sig_handler);
+        signal( SIGSEGV, sig_handler);
+        //signal( SIGQUIT, sig_handler);
+        //signal( SIGBUS, sig_handler);
+        signal( SIGFPE, sig_handler);
+
+        url = argv[1];
+
+        sprintf( endpoint, "%s", url);
+
+        op = "div";
+
+        if( strcmp( op, "div") == 0)
+        {
+            for( int i = 1; i < 4; i++)
+            {
+                        switch( i)
+                        {
+                                case 1:
+                                {
+                                        i1 = 10;
+                                        i2 = 0;
+                                        break;
+                                }
+
+                                case 2:
+                                {
+                                        i1 = 1000;
+                                        i2 = 5;
+                                        break;
+                                }
+
+                                case 3:
+                                {
+                                        i1 = 10;
+                                        i2 = -5;
+                                        break;
+                                }
+                        }
             
-			bool	bSuccess = false;
-			int		iRetryIterationCount = 3;
+                        bool    bSuccess = false;
+                        int             iRetryIterationCount = 3;
 
-			do
-			{
-				try
-				{
-					MathOps	ws( endpoint);
-
-					if( iRetryIterationCount == 3)
-					{
-						cout << endl << endl << "Trying to " << op << " " << i1 << " by " << i2 << endl;
-
-						iResult = ws.div( i1, i2);
-
-						cout << "Result is " << iResult << endl;
-				
-						bSuccess = true;
-					}
-				}
-				catch( OtherFaultException& ofe)
-				{
+                        do
+                        {
+                                try
+                                {
+                                        MathOps ws( endpoint);
+
+                                        if( iRetryIterationCount == 3)
+                                        {
+                                                cout << endl << endl << "Trying to " << op << " " << i1 << " by " << i2 << endl;
+
+                                                iResult = ws.div( i1, i2);
+
+                                                cout << "Result is " << iResult << endl;
+                                
+                                                bSuccess = true;
+                                        }
+                                }
+                                catch( OtherFaultException& ofe)
+                                {
                     const char *    pszDetail = ofe.getFaultDetail();
 
                     string detail = pszDetail;
@@ -117,59 +117,59 @@
                     }
                     
                     bSuccess = true;
-                }	
-				catch( SoapFaultException& sfe)
-				{
-					cout << "SoapFaultException: " << sfe.what() << endl;
-				}
-				catch( AxisException& e)
-				{
-					bool bSilent = false;
-
-					if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-					{
-						if( iRetryIterationCount > 1)
-						{
-							bSilent = true;
-						}
-					}
-					else
-					{
-						iRetryIterationCount = 0;
-					}
-
-					if( !bSilent)
-					{
-						cout << "Exception : " << e.what() << endl;
-					}
-				}
-				catch( exception& e)
-				{
-					cout << "Unknown Exception: " << e.what() << endl;
-				}
-				catch( ...)
-				{
-					cout << "Unspecified Exception: " << endl;
-				}
-			
-				iRetryIterationCount--;
-
-			} while( iRetryIterationCount > 0 && !bSuccess);
-		}
-	}
-	else 
-	{
-		cout << "Invalid operation " << op << endl;
-	}
-	
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;	
-	
-	return 0;
+                }       
+                                catch( SoapFaultException& sfe)
+                                {
+                                        cout << "SoapFaultException: " << sfe.what() << endl;
+                                }
+                                catch( AxisException& e)
+                                {
+                                        bool bSilent = false;
+
+                                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                                        {
+                                                if( iRetryIterationCount > 1)
+                                                {
+                                                        bSilent = true;
+                                                }
+                                        }
+                                        else
+                                        {
+                                                iRetryIterationCount = 0;
+                                        }
+
+                                        if( !bSilent)
+                                        {
+                                                cout << "Exception : " << e.what() << endl;
+                                        }
+                                }
+                                catch( exception& e)
+                                {
+                                        cout << "Unknown Exception: " << e.what() << endl;
+                                }
+                                catch( ...)
+                                {
+                                        cout << "Unspecified Exception: " << endl;
+                                }
+                        
+                                iRetryIterationCount--;
+
+                        } while( iRetryIterationCount > 0 && !bSuccess);
+                }
+        }
+        else 
+        {
+                cout << "Invalid operation " << op << endl;
+        }
+        
+        cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;    
+        
+        return 0;
 }
 
 void sig_handler(int sig) {
-	signal(sig, sig_handler);
+        signal(sig, sig_handler);
     cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+        exit(1);
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/PrimitiveAndArrayClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/PrimitiveAndArrayClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/PrimitiveAndArrayClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/PrimitiveAndArrayClient.cpp Thu Apr 27 20:03:51 2006
@@ -21,59 +21,59 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		PrimitiveAndArray* ws = new PrimitiveAndArray(endpoint);
-
-		xsd__int single;
-		xsd__int_Array intArray;
-		ComplexReturn* response;
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                PrimitiveAndArray* ws = new PrimitiveAndArray(endpoint);
+
+                xsd__int single;
+                xsd__int_Array intArray;
+                ComplexReturn* response;
 
-		single=37;
+                single=37;
 
         xsd__int ** arrayOfInt = new xsd__int*[ARRAYSIZE];
-		arrayOfInt[0] = new xsd__int(6);        
-        arrayOfInt[1] = new xsd__int(7);		
-		intArray.set(arrayOfInt,ARRAYSIZE);
-
-		response = ws->sendPrimitiveAndArray(single, &intArray);
-		int outputSize = 0;
-		const xsd__int **output = response->getreturnArray()->get(outputSize);
-		cout << response->returnInt << " " << *(output[0]) << " " << *(output[1]) << endl;
-		single=43;
+                arrayOfInt[0] = new xsd__int(6);        
+        arrayOfInt[1] = new xsd__int(7);                
+                intArray.set(arrayOfInt,ARRAYSIZE);
+
+                response = ws->sendPrimitiveAndArray(single, &intArray);
+                int outputSize = 0;
+                const xsd__int **output = response->getreturnArray()->get(outputSize);
+                cout << response->returnInt << " " << *(output[0]) << " " << *(output[1]) << endl;
+                single=43;
         *arrayOfInt[0] = 13;
         *arrayOfInt[1] = 17;
-		intArray.set(arrayOfInt,ARRAYSIZE);
-		response = ws->sendArrayAndPrimitive(&intArray, single);
-		outputSize = 0;
-		output = response->getreturnArray()->get(outputSize);
-		cout << response->returnInt << " " << *(output[0]) << " " << *(output[1]) << endl;
-		delete arrayOfInt[0];
-		delete arrayOfInt[1];
-		delete [] arrayOfInt;
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-	    cout << "Exception : " << e.what() << endl;
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                intArray.set(arrayOfInt,ARRAYSIZE);
+                response = ws->sendArrayAndPrimitive(&intArray, single);
+                outputSize = 0;
+                output = response->getreturnArray()->get(outputSize);
+                cout << response->returnInt << " " << *(output[0]) << " " << *(output[1]) << endl;
+                delete arrayOfInt[0];
+                delete arrayOfInt[1];
+                delete [] arrayOfInt;
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+            cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ProgrammaticTest1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ProgrammaticTest1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ProgrammaticTest1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ProgrammaticTest1Client.cpp Thu Apr 27 20:03:51 2006
@@ -27,101 +27,101 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	const char* op = 0;
-	int i1=0, i2=0;
-	int iResult;
-
-	signal(SIGILL, sig_handler);
-	signal(SIGABRT, sig_handler);
-	signal(SIGSEGV, sig_handler);
-	//signal(SIGQUIT, sig_handler);
-	//signal(SIGBUS, sig_handler);
-	signal(SIGFPE, sig_handler);
-
-	url = argv[1];
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-
-		/* Programmatically setting the ClientLog  */
-
-		AxisCPPConfigDefaults config;
-		config.setClientLog("CalculatorClientLog.dat");
-		config.apply();		
-		Calculator ws(endpoint);
-		op = "add";
-		i1 = 2;
-		i2 = 3;
-
-		if (strcmp(op, "add") == 0)
-		{
-			iResult = ws.add(i1, i2);
-			cout << iResult << 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";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+
+        signal(SIGILL, sig_handler);
+        signal(SIGABRT, sig_handler);
+        signal(SIGSEGV, sig_handler);
+        //signal(SIGQUIT, sig_handler);
+        //signal(SIGBUS, sig_handler);
+        signal(SIGFPE, sig_handler);
+
+        url = argv[1];
+
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+
+                /* Programmatically setting the ClientLog  */
+
+                AxisCPPConfigDefaults config;
+                config.setClientLog("CalculatorClientLog.dat");
+                config.apply();         
+                Calculator ws(endpoint);
+                op = "add";
+                i1 = 2;
+                i2 = 3;
+
+                if (strcmp(op, "add") == 0)
+                {
+                        iResult = ws.add(i1, i2);
+                        cout << iResult << 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 << "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;
+        
+        return 0;
 }
 
 void PrintUsage()
 {
-	printf("Usage :\n Calculator <url>\n\n");
-	exit(1);
+        printf("Usage :\n Calculator <url>\n\n");
+        exit(1);
 }
 
 bool IsNumber(const char* p)
 {
-	for (int x=0; x < strlen(p); x++)
-	{
-		if (!isdigit(p[x])) return false;
-	}
-	return true;
+        for (int x=0; x < strlen(p); x++)
+        {
+                if (!isdigit(p[x])) return false;
+        }
+        return true;
 }
 
 void sig_handler(int sig) {
-	signal(sig, sig_handler);
+        signal(sig, sig_handler);
     cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+        exit(1);
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RPCAllTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RPCAllTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RPCAllTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RPCAllTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -12,10 +12,10 @@
 usage (char *programName, char *defaultURL)
 {
     cout << "\nUsage:\n"
-	<< programName << " [-? | service_url] " << endl
-	<< "    -?             Show this help.\n"
-	<< "    service_url    URL of the service.\n"
-	<< "    Default service URL is assumed to be " << defaultURL << endl;
+        << programName << " [-? | service_url] " << endl
+        << "    -?             Show this help.\n"
+        << "    service_url    URL of the service.\n"
+        << "    Default service URL is assumed to be " << defaultURL << endl;
 }
 
 int
@@ -24,102 +24,102 @@
     char endpoint[256];
     sprintf (endpoint, "%s", WSDL_DEFAULT_ENDPOINT);
 
-    int returnValue = 1;	// Assume Failure
+    int returnValue = 1;        // Assume Failure
 
        if (argc > 1)
     {
-		// Watch for special case help request
-		if (!strncmp (argv[1], "-", 1))	// Check for - only so that it works for
-			//-?, -h or --help; -anything
-		{
-			usage (argv[0], endpoint);
-			return 2;
-		}
-		sprintf (endpoint, argv[1]);
-	}
+                // Watch for special case help request
+                if (!strncmp (argv[1], "-", 1)) // Check for - only so that it works for
+                        //-?, -h or --help; -anything
+                {
+                        usage (argv[0], endpoint);
+                        return 2;
+                }
+                sprintf (endpoint, argv[1]);
+        }
 
-	bool bSuccess = false;
+        bool bSuccess = false;
     int iRetryIterationCount = 3;
 
-	do
+        do
     {
-		try
-		{
-			ADEC_MAST_Port ws (endpoint, APTHTTP1_1);
-
-			SummaryResult* outParam = new SummaryResult();
-			
-			xsd__string Value0 = "RED";
-			xsd__int Value1 = 3;
-			xsd__int Value3 = 5;
-			xsd__double Value2 = 2.5;
-
-			printf("\nSending................\n");
-			printf("\nLength = %d",Value1);
-			printf("\nWidth = %d",Value3);
-			printf("\nDepth = %f",Value2);
-			printf("\nColor = %s",Value0);
-
-				
-		
-			ws.setTransportProperty("SOAPAction" , "RPCAll#doGetSummary");
-			outParam = ws.doGetSummary(Value0, Value1, Value2, Value3);
-
-			if (outParam != NULL)
-			{
-				printf("\n\nReceived................\n");
-				printf("\nNon All Int Value = %d",outParam->NonAllIntValue);
-				printf("\nNon All Double Value = %f",outParam->NonAllDoubleValue);
-				printf("\n\nAll Values are...");
-				printf("\n\tLength = %d",*(outParam->length));
-				printf("\n\tDepth = %f",*(outParam->depth));
-				printf("\n\tColor = %s",outParam->color);
-				printf("\n\nNon All String Value = %s\n\n",outParam->NonAllStringValue);
-			}
-			else
-				printf("\n\nFault\n");
-
-			bSuccess = true;
-			delete outParam;
-		}
-		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 ("%s\n", e.what ());
-			}
-		}
-		catch (exception & e)
-		{
-			printf ("%s\n", e.what ());
-		}	
-		catch (...)
-		{
-			cout << "Unknown Exception occured." << endl;
-		}
+                try
+                {
+                        ADEC_MAST_Port ws (endpoint, APTHTTP1_1);
+
+                        SummaryResult* outParam = new SummaryResult();
+                        
+                        xsd__string Value0 = "RED";
+                        xsd__int Value1 = 3;
+                        xsd__int Value3 = 5;
+                        xsd__double Value2 = 2.5;
+
+                        printf("\nSending................\n");
+                        printf("\nLength = %d",Value1);
+                        printf("\nWidth = %d",Value3);
+                        printf("\nDepth = %f",Value2);
+                        printf("\nColor = %s",Value0);
+
+                                
+                
+                        ws.setTransportProperty("SOAPAction" , "RPCAll#doGetSummary");
+                        outParam = ws.doGetSummary(Value0, Value1, Value2, Value3);
+
+                        if (outParam != NULL)
+                        {
+                                printf("\n\nReceived................\n");
+                                printf("\nNon All Int Value = %d",outParam->NonAllIntValue);
+                                printf("\nNon All Double Value = %f",outParam->NonAllDoubleValue);
+                                printf("\n\nAll Values are...");
+                                printf("\n\tLength = %d",*(outParam->length));
+                                printf("\n\tDepth = %f",*(outParam->depth));
+                                printf("\n\tColor = %s",outParam->color);
+                                printf("\n\nNon All String Value = %s\n\n",outParam->NonAllStringValue);
+                        }
+                        else
+                                printf("\n\nFault\n");
+
+                        bSuccess = true;
+                        delete outParam;
+                }
+                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 ("%s\n", e.what ());
+                        }
+                }
+                catch (exception & e)
+                {
+                        printf ("%s\n", e.what ());
+                }       
+                catch (...)
+                {
+                        cout << "Unknown Exception occured." << endl;
+                }
 
-		iRetryIterationCount--;
+                iRetryIterationCount--;
 
-	}while (iRetryIterationCount > 0 && !bSuccess);
+        }while (iRetryIterationCount > 0 && !bSuccess);
 
     cout <<
-	"---------------------- TEST COMPLETE -----------------------------"
-	<< endl;
+        "---------------------- TEST COMPLETE -----------------------------"
+        << endl;
 
     return returnValue;
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypesClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypesClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypesClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypesClient.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 "RecurseTypesWS.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 RecurseTypesWS(endpoint, APTHTTP1_1);
@@ -58,22 +67,22 @@
 
     input = new Type1 ();
     input->att_kind = new char[strlen(Kind_CHEQUE) + 1];
-	strcpy(input->att_kind, Kind_CHEQUE);
+        strcpy(input->att_kind, Kind_CHEQUE);
     input->kind = new char[strlen("Check In") + 1];
-	strcpy(input->kind, "Check In");
+        strcpy(input->kind, "Check In");
 
-	Type1_Array arrayIn;
-	Type1 ** array = new Type1*[10];
+        Type1_Array arrayIn;
+        Type1 ** array = new Type1*[10];
 
     for ( i = 0; i < 10; i++ )
-	{
-		array[i]=new Type1();
+        {
+                array[i]=new Type1();
         array[i]->kind = new char[strlen("Sample") + 1];
-		strcpy(array[i]->kind, "Sample");
-		array[i]->index = 0;
+                strcpy(array[i]->kind, "Sample");
+                array[i]->index = 0;
     }
-	arrayIn.set(array,10);
-	input->setfollowings(&arrayIn);
+        arrayIn.set(array,10);
+        input->setfollowings(&arrayIn);
     output = ws->getInput(input);
 
     cout << "Result" << endl;
@@ -82,59 +91,59 @@
     else {
       cout << "\tAtt_kind = " << output->att_kind << endl;
       cout << "\tKind = " << output->kind << endl;
-	  int outputSize = 0;
+          int outputSize = 0;
       Type1 ** outArray = output->followings->get(outputSize);;
       for ( i = 0; i < outputSize; i++ ) {
         cout << "\tKind [" << i << "] = " << outArray[i]->kind << endl;        
       }
-	    // Clear up input array        
+            // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < 10 ; deleteIndex++ )
         {
             delete array[deleteIndex];
         }
-		delete [] array;
-		delete input;
-		delete output;
+                delete [] array;
+                delete input;
+                delete output;
       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;
   }
   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/RecurseTypes_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypes_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypes_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypes_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -54,59 +54,59 @@
         if(p!=NULL)
              url=p;
          RecurseTypesWS *ws;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
         try
         {
             sprintf(endpoint, "%s", url);
             ws = new RecurseTypesWS(endpoint, APTHTTP1_1);
             Kind inputAtt,*outputAtt;
-			Type1 *input,*output,*pTemp;
-			int i;
+                        Type1 *input,*output,*pTemp;
+                        int i;
 
-			input = new Type1 ();
-			input->att_kind = Kind_CHEQUE;
-			input->kind = "Check In";
-			input->followings.m_Array = new Type1[10];
-			input->followings.m_Size = 10;
-			pTemp = input->followings.m_Array;
-			for ( i = 0; i < 10; i++ ) {
-				pTemp->kind = "Sample";
-				pTemp++;
-			}
-
-			output = ws->getInput(input);
-			if ( output == NULL )
-				cout << "Invoke failed" << endl;
-			else {
-				cout<<output->att_kind << endl;				
-			}
+                        input = new Type1 ();
+                        input->att_kind = Kind_CHEQUE;
+                        input->kind = "Check In";
+                        input->followings.m_Array = new Type1[10];
+                        input->followings.m_Size = 10;
+                        pTemp = input->followings.m_Array;
+                        for ( i = 0; i < 10; i++ ) {
+                                pTemp->kind = "Sample";
+                                pTemp++;
+                        }
+
+                        output = ws->getInput(input);
+                        if ( output == NULL )
+                                cout << "Invoke failed" << endl;
+                        else {
+                                cout<<output->att_kind << 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)
         {
@@ -116,8 +116,8 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
         #ifndef WIN32
                 pthread_exit(0);
         #endif
@@ -130,60 +130,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/RefTestDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RefTestDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RefTestDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RefTestDocClient.cpp Thu Apr 27 20:03:51 2006
@@ -29,28 +29,28 @@
 
 int main( int argc, char * argv[])
 {
-	ChoiceServiceSoap*	ws;
+        ChoiceServiceSoap*      ws;
     FaultPropertyType* input;
-	char *					endpoint = WSDL_DEFAULT_ENDPOINT;
-	bool					endpoint_set = false;
-	int						returnValue = 1; // Assume Failure
-
-	endpoint_set = parse_args_for_endpoint( &argc, argv, &endpoint);
-
-	bool	bSuccess = false;
-
-		try
-		{
-			if( endpoint_set)
-			{
-				ws = new ChoiceServiceSoap( endpoint, APTHTTP1_1);
-				free( endpoint);
-				endpoint_set = false;
-			}
-			else
-			{
-				ws = new ChoiceServiceSoap();
-			}
+        char *                                  endpoint = WSDL_DEFAULT_ENDPOINT;
+        bool                                    endpoint_set = false;
+        int                                             returnValue = 1; // Assume Failure
+
+        endpoint_set = parse_args_for_endpoint( &argc, argv, &endpoint);
+
+        bool    bSuccess = false;
+
+                try
+                {
+                        if( endpoint_set)
+                        {
+                                ws = new ChoiceServiceSoap( endpoint, APTHTTP1_1);
+                                free( endpoint);
+                                endpoint_set = false;
+                        }
+                        else
+                        {
+                                ws = new ChoiceServiceSoap();
+                        }
 
             cout <<"About to create FaultPropertyType"<<endl;
             input = new FaultPropertyType();
@@ -65,9 +65,9 @@
             
             // remember to clean up the resourceproperirtes !
 
-			FaultPropertyType* result;
+                        FaultPropertyType* result;
             cout << "About to call get"<<endl;
-			result = ws->get(input);
+                        result = ws->get(input);
 
             if(result)
             {
@@ -89,35 +89,35 @@
                 cout << "result came back as null" << endl;
             }
 
-			bSuccess = true;
-		}
-		catch( AxisException &e)
-		{
-		    cout << e.what() << endl;
-		}
-		catch( ...)
-		{
-			cout << "Unknown Exception occured." << endl;
-		}
-
-		try
-		{
-			delete ws;
+                        bSuccess = true;
+                }
+                catch( AxisException &e)
+                {
+                    cout << e.what() << endl;
+                }
+                catch( ...)
+                {
+                        cout << "Unknown Exception occured." << endl;
+                }
+
+                try
+                {
+                        delete ws;
             delete input;
-		}
-		catch( exception& exception)
-		{
-			cout << "Exception on clean up of ws: " << exception.what() << endl;
-		}
-		catch( ...)
-		{
-			cout << "Unknown exception on clean up of ws: " << endl;
-		}
+                }
+                catch( exception& exception)
+                {
+                        cout << "Exception on clean up of ws: " << exception.what() << endl;
+                }
+                catch( ...)
+                {
+                        cout << "Unknown exception on clean up of ws: " << endl;
+                }
 
 
-	cout << "---------------------- TEST COMPLETE -----------------------------" << endl;
+        cout << "---------------------- TEST COMPLETE -----------------------------" << endl;
   
-	return returnValue;
+        return returnValue;
 }
 
 /* Spin through args list and check for -e -p and -s options.



Mime
View raw message