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 [14/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/XSD_NOTATIONClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NOTATIONClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NOTATIONClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NOTATIONClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,18 +299,18 @@
 
         // Test array
         xsd__NOTATION_Array arrayInput;
-		int arraySize = 2;
-		xsd__NOTATION * array = new xsd__NOTATION[arraySize];
+                int arraySize = 2;
+                xsd__NOTATION * array = new xsd__NOTATION[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleNOTATION);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__NOTATION_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__NOTATION * output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__NOTATION * output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp Thu Apr 27 20:03:51 2006
@@ -260,18 +260,18 @@
 
         // Test array
           xsd__Name_Array arrayInput;
-		 int arraySize=2;
-		 xsd__Name *array = new xsd__Name[arraySize];        
+                 int arraySize=2;
+                 xsd__Name *array = new xsd__Name[arraySize];        
         for (int inputIndex=0 ; inputIndex <arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleName);
            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__Name_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__Name *output = arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__Name *output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_QNameClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_QNameClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_QNameClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_QNameClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,17 +299,17 @@
 
         // Test array
        xsd__QName_Array arrayInput;
-		int arraySize=2;
-		xsd__QName *array = new xsd__QName[arraySize];
+                int arraySize=2;
+                xsd__QName *array = new xsd__QName[arraySize];
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleQName);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__QName_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__QName *output = arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__QName *output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -331,7 +331,7 @@
             }
         }
 
-		// Clear up input array        
+                // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
             delete array[deleteIndex];

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURI2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURI2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURI2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURI2Client.cpp Thu Apr 27 20:03:51 2006
@@ -41,7 +41,7 @@
         strcpy (input, simpleanyURI);
 
         // Test non-nillable element
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
         xsd__anyURI result = ws->asNonNillableElement(input);
         if (result)
         {
@@ -61,7 +61,7 @@
         delete [] input;
 
         // Test empty non-nillable element
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
         result = ws->asNonNillableElement(emptyInput);
         if (result)
         {
@@ -83,7 +83,7 @@
         // Test non-nillable element with XML reserved characters
         char reservedCharactersanyURI[] = "<>&\"\'";
         xsd__anyURI reservedCharactersInput = reservedCharactersanyURI;
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
         result = ws->asNonNillableElement(reservedCharactersInput);
         if (result)
         {
@@ -104,7 +104,7 @@
         // Test non-nillable element with XML reserved characters
         char whitespaceanyURI[] = "  \t\r\nsome text \t\r\nmore text \t\r\n";
         xsd__anyURI whitespaceInput = whitespaceanyURI;
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNonNillableElement");
         result = ws->asNonNillableElement(whitespaceInput);
         if (result)
         {
@@ -125,7 +125,7 @@
         // Test nillable element, with a value
         input = new char[25];
         strcpy (input, simpleanyURI);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
         xsd__anyURI nillableResult = ws->asNillableElement(input);
         if (nillableResult)
         {
@@ -148,7 +148,7 @@
         // Test empty nillable element
         emptyInput = new char[1];
         strcpy (emptyInput, emptyanyURI);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
         nillableResult = ws->asNillableElement(emptyInput);
         if (nillableResult)
         {
@@ -169,7 +169,7 @@
         delete [] emptyInput;
 
         // Test nillable element, with nil
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asNillableElement");
         nillableResult = ws->asNillableElement(NULL);
         if (nillableResult)
         {
@@ -193,7 +193,7 @@
         strcpy (input, simpleanyURI);
         RequiredAttributeElement requiredAttributeInput;
         requiredAttributeInput.setrequiredAttribute(input);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asRequiredAttribute");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asRequiredAttribute");
         RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
         if (requiredAttributeResult->getrequiredAttribute())
         {
@@ -217,7 +217,7 @@
         strcpy (emptyInput, emptyanyURI);
         requiredAttributeInput;
         requiredAttributeInput.setrequiredAttribute(emptyInput);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asRequiredAttribute");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asRequiredAttribute");
         requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
         if (requiredAttributeResult->getrequiredAttribute())
         {
@@ -308,18 +308,18 @@
 
         // Test array
         xsd__anyURI_Array arrayInput;
-		int arraySize = 2;
-		xsd__anyURI * array = new xsd__anyURI[arraySize];
+                int arraySize = 2;
+                xsd__anyURI * array = new xsd__anyURI[arraySize];
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleanyURI);            
         }
-		arrayInput.set(array,arraySize);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asArray");
+                arrayInput.set(array,arraySize);
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asArray");
         xsd__anyURI_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize =0;
-		const xsd__anyURI *output = arrayResult->get(outputSize); 
+                int outputSize =0;
+                const xsd__anyURI *output = arrayResult->get(outputSize); 
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -353,7 +353,7 @@
         strcpy (input, simpleanyURI);
         SimpleComplexType complexTypeInput;
         complexTypeInput.setcomplexTypeElement(input);
-		//ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asComplexType");
+                //ws->setTransportProperty("SOAPAction" , "XSD_anyURI#asComplexType");
         SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
         if (complexTypeResult->getcomplexTypeElement())
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp Thu Apr 27 20:03:51 2006
@@ -36,7 +36,7 @@
         char emptyanyURI[1] = "";
         xsd__anyURI emptyInput = new char[1];
         strcpy (emptyInput, emptyanyURI);
-		char simpleanyURI[25] = "http://www.xyz.com";
+                char simpleanyURI[25] = "http://www.xyz.com";
         xsd__anyURI input = new char[25];
         strcpy (input, simpleanyURI);
 
@@ -176,17 +176,17 @@
 
         // Test array
         xsd__anyURI_Array arrayInput;
-		int arraySize=2;
-		xsd__anyURI* array=new xsd__anyURI[arraySize];        
+                int arraySize=2;
+                xsd__anyURI* array=new xsd__anyURI[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex]= new char[25];
             strcpy (array[inputIndex], simpleanyURI);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__anyURI_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__anyURI *output= arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__anyURI *output= arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIfaultClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIfaultClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIfaultClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIfaultClient.cpp Thu Apr 27 20:03:51 2006
@@ -36,7 +36,7 @@
         char emptyanyURI[1] = "";
         xsd__anyURI emptyInput = new char[1];
         strcpy (emptyInput, emptyanyURI);
-		char simpleanyURI[25] = "http://www.xyz.com";
+                char simpleanyURI[25] = "http://www.xyz.com";
         xsd__anyURI input = new char[25];
         strcpy (input, simpleanyURI);
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURInonUTF8Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURInonUTF8Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURInonUTF8Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURInonUTF8Client.cpp Thu Apr 27 20:03:51 2006
@@ -36,7 +36,7 @@
         char emptyanyURI[1] = "";
         xsd__anyURI emptyInput = new char[1];
         strcpy (emptyInput, emptyanyURI);
-		char simpleanyURI[100] = "http://www.w3.org/People/Dürst/";
+                char simpleanyURI[100] = "http://www.w3.org/People/Dürst/";
         xsd__anyURI input = new char[100];
         strcpy (input, simpleanyURI);
 
@@ -58,7 +58,7 @@
             cout << "non-nillable element=<nil>" << endl;
         }
         delete [] input;
-	}
+        }
     catch(AxisException& e)
     {
         cout << "Exception : " << e.what() << endl;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64Binary2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64Binary2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64Binary2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64Binary2Client.cpp Thu Apr 27 20:03:51 2006
@@ -22,47 +22,47 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_base64Binary";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_base64Binary";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
 
-    	xsd__base64Binary input;
-    	xsd__unsignedByte* testUB = (xsd__unsignedByte*)"  <test><xml>  some dod&y string </xml></test> ";
+        xsd__base64Binary input;
+        xsd__unsignedByte* testUB = (xsd__unsignedByte*)"  <test><xml>  some dod&y string </xml></test> ";
         input.set(testUB, 100);
 
-		// Test non-nillable element
-    	xsd__base64Binary result = ws->asNonNillableElement(input);
+                // Test non-nillable element
+        xsd__base64Binary result = ws->asNonNillableElement(input);
         int size = 0;
         const xsd__unsignedByte * data = result.get(size);
-		cout << "non-nillable element" << endl;
-    	cout << " size=" << size << endl;
-    	cout << " data=" << data << endl;
-
-		delete ws;
-	}
-	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;
+                cout << "non-nillable element" << endl;
+        cout << " size=" << size << endl;
+        cout << " data=" << data << endl;
+
+                delete ws;
+        }
+        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;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryAttributeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryAttributeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryAttributeClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryAttributeClient.cpp Thu Apr 27 20:03:51 2006
@@ -23,18 +23,18 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_base64Binary";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_base64Binary";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
 
         xsd__base64Binary input;
 
@@ -42,36 +42,36 @@
 
         int.set(testUB, 41);
         
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute(input);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
-		cout << "required attribute" << endl;
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute(input);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                cout << "required attribute" << endl;
         int size = 0;
         const xsd__unsignedByte * base64BinaryData = requiredAttributeResult->getrequiredAttribute().get(size);
         cout << " size=" << size << endl;
         cout << " data=" << asciiToStringOfLength((char *)base64BinaryData, size) << endl;
-		delete requiredAttributeResult;
+                delete requiredAttributeResult;
 
-		// Test now complete
+                // Test now complete
 
-		delete ws;
-	}
-	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;
+                delete ws;
+        }
+        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;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp Thu Apr 27 20:03:51 2006
@@ -23,18 +23,18 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_base64Binary";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_base64Binary";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
 
         xsd__base64Binary input;
 
@@ -42,37 +42,37 @@
 
         input.set(testUB, 41);
 
-		// Test non-nillable element
-	    xsd__base64Binary result = ws->asNonNillableElement(input);
+                // Test non-nillable element
+            xsd__base64Binary result = ws->asNonNillableElement(input);
         int size = 0;
         const xsd__unsignedByte * resultData = result.get(size);
-		cout << "non-nillable element" << endl;
+                cout << "non-nillable element" << endl;
         cout << " size=" << size << endl;
         cout << " data=" << asciiToStringOfLength((char *)resultData, size) << endl;
 
-		// Test nillable element, with a value
-		xsd__base64Binary* nillableInput = new xsd__base64Binary();
-		*(nillableInput) = input;
-		xsd__base64Binary* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
-			cout << "nillable element" << endl;
+                // Test nillable element, with a value
+                xsd__base64Binary* nillableInput = new xsd__base64Binary();
+                *(nillableInput) = input;
+                xsd__base64Binary* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
+                        cout << "nillable element" << endl;
             size = 0;
             const xsd__unsignedByte * data = nillableResult->get(size);
             cout << " size=" << size << endl;
             cout << " data=" << asciiToStringOfLength((char *)data, size) << endl;
             delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
        delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
+                if (nillableResult)
+                {
             cout << "nillable element" << endl;
             size = 0;
             const xsd__unsignedByte * data = nillableResult->get(size);
@@ -80,32 +80,32 @@
             cout << " data=" << asciiToStringOfLength((char *)data, size) << endl;
             delete nillableResult;
         }
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
 
-		// Test array
+                // Test array
         xsd__base64Binary_Array arrayInput;
-		int arraySize=2;
+                int arraySize=2;
         xsd__base64Binary **array = new xsd__base64Binary*[arraySize];       
         for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
         {
             array[inputIndex] =new xsd__base64Binary(input);            
         }
-		arrayInput.set(array,arraySize);
-		xsd__base64Binary_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__base64Binary **output=arrayResult->get(outputSize);
+                arrayInput.set(array,arraySize);
+                xsd__base64Binary_Array* arrayResult = ws->asArray(&arrayInput);
+                int outputSize=0;
+                const xsd__base64Binary **output=arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
-		for (int index = 0; index < outputSize ; index++)
-		{
+                for (int index = 0; index < outputSize ; index++)
+                {
             size = 0;
             const xsd__unsignedByte * data = output[index]->get(size);
-			cout << " element[" << index << "]" << endl;
+                        cout << " element[" << index << "]" << endl;
             cout << "  size=" << size << endl;
             cout << "  data=" << asciiToStringOfLength((char *) data, size) << endl;
-		}
+                }
 
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
@@ -114,37 +114,37 @@
         delete [] array;
         delete arrayResult;
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(input);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(input);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
         xsd__base64Binary binaryObject = complexTypeResult->getcomplexTypeElement();
         size = 0;
         const xsd__unsignedByte * data = binaryObject.get(size);
-		cout << "within complex type" << endl;
+                cout << "within complex type" << endl;
         cout << " size=" << size << endl;
         cout << " data=" << asciiToStringOfLength((char *)data, size) << endl;
-		delete complexTypeResult;
+                delete complexTypeResult;
+
+                // Tests now complete
 
-		// Tests now complete
+                delete ws;
+        }
+        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;
+        }
 
-		delete ws;
-	}
-	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;
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryTestValidDataClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryTestValidDataClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryTestValidDataClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryTestValidDataClient.cpp Thu Apr 27 20:03:51 2006
@@ -23,67 +23,67 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_base64Binary";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_base64Binary";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		int count = 0;
-		sprintf(endpoint, "%s", url);
-		XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
+        try
+        {
+                int count = 0;
+                sprintf(endpoint, "%s", url);
+                XSD_base64Binary* ws = new XSD_base64Binary(endpoint);
 
         xsd__base64Binary input;
 
-		xsd__unsignedByte binaryStream[] = {255, 1, 254, 2, 127, 0};
+                xsd__unsignedByte binaryStream[] = {255, 1, 254, 2, 127, 0};
 
         xsd__unsignedByte* testUB = binaryStream;
 
         input.set(testUB, 6);
         
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(input);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
-		cout << "within received complex type" << endl;
-		xsd__base64Binary complexTypeElement = complexTypeResult->getcomplexTypeElement();
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(input);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                cout << "within received complex type" << endl;
+                xsd__base64Binary complexTypeElement = complexTypeResult->getcomplexTypeElement();
         int size = 0;
         const xsd__unsignedByte * data = complexTypeElement.get(size);
         cout << " size = " << size << endl;
-		cout << " data = { ";
-		for (count = 0 ; count < size ; count ++)
-		{
-			if (count != 0)
-			{
-				cout << ", ";
-			}
-			cout << (unsigned int) data[count];
-		}
-		cout << " }" << endl;
+                cout << " data = { ";
+                for (count = 0 ; count < size ; count ++)
+                {
+                        if (count != 0)
+                        {
+                                cout << ", ";
+                        }
+                        cout << (unsigned int) data[count];
+                }
+                cout << " }" << endl;
 
-		
-		delete ws;
+                
+                delete ws;
 
-		// Check if everything is there after deleting the web service
-		cout << "within received complex type after deleting web service" << endl;
+                // Check if everything is there after deleting the web service
+                cout << "within received complex type after deleting web service" << endl;
         cout << " size = " << size << endl;
-		cout << " data = { ";
-		for (count = 0 ; count < size ; count ++)
-		{
-			if (count != 0)
-			{
-				cout << ", ";
-			}
-			cout << (unsigned int) data[count];
-		}
-		cout << " }" << endl;
+                cout << " data = { ";
+                for (count = 0 ; count < size ; count ++)
+                {
+                        if (count != 0)
+                        {
+                                cout << ", ";
+                        }
+                        cout << (unsigned int) data[count];
+                }
+                cout << " }" << endl;
 
-		// Re-run the web service, to try and ensure it blats anything it's going to blat
-		ws = new XSD_base64Binary(endpoint);
+                // Re-run the web service, to try and ensure it blats anything it's going to blat
+                ws = new XSD_base64Binary(endpoint);
 
         xsd__unsignedByte binaryStream2[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 254, 253, 252, 251, 250};
 
@@ -91,43 +91,43 @@
 
         input.set(testUB, 16);
 
-		// Test complex type
-		complexTypeInput.setcomplexTypeElement(input);
-		SimpleComplexType* complexTypeResult2 = ws->asComplexType(&complexTypeInput);
+                // Test complex type
+                complexTypeInput.setcomplexTypeElement(input);
+                SimpleComplexType* complexTypeResult2 = ws->asComplexType(&complexTypeInput);
 
-		// Check if everything is there after re-creating and invoking web service
-		cout << "within received complex type after re-creating and invoking web service" << endl;
+                // Check if everything is there after re-creating and invoking web service
+                cout << "within received complex type after re-creating and invoking web service" << endl;
         cout << " size = " << size << endl;
-		cout << " data = { ";
-		for (count = 0 ; count < size ; count ++)
-		{
-			if (count != 0)
-			{
-				cout << ", ";
-			}
-			cout << (unsigned int) data[count];
-		}
-		cout << " }" << endl;
-
-		delete ws;
-		delete complexTypeResult2;
-		delete complexTypeResult;
-	}
-	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;
+                cout << " data = { ";
+                for (count = 0 ; count < size ; count ++)
+                {
+                        if (count != 0)
+                        {
+                                cout << ", ";
+                        }
+                        cout << (unsigned int) data[count];
+                }
+                cout << " }" << endl;
+
+                delete ws;
+                delete complexTypeResult2;
+                delete complexTypeResult;
+        }
+        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;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_booleanClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_booleanClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_booleanClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_booleanClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,24 +22,24 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_boolean";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_boolean";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
+        try
+        {
   // Test true and false, using 0, 1, false_, true_, xsd_boolean_false, and xsd_boolean_true
         
-		sprintf(endpoint, "%s", url);
-		XSD_boolean* ws = new XSD_boolean(endpoint);
+                sprintf(endpoint, "%s", url);
+                XSD_boolean* ws = new XSD_boolean(endpoint);
 
-		// Test non-nillable element, with all valid permutations for representing true and false.
-	    xsd__boolean result = ws->asNonNillableElement((xsd__boolean)0);
-		cout << "non-nillable element, using 0=" << result << endl;
+                // Test non-nillable element, with all valid permutations for representing true and false.
+            xsd__boolean result = ws->asNonNillableElement((xsd__boolean)0);
+                cout << "non-nillable element, using 0=" << result << endl;
         result = ws->asNonNillableElement((xsd__boolean)1);
         cout << "non-nillable element, using 1=" << result << endl;
         result = ws->asNonNillableElement(false_);
@@ -51,88 +51,88 @@
         result = ws->asNonNillableElement(xsd_boolean_true);
         cout << "non-nillable element, using xsd_boolean_true=" << result << endl;
 
-		// Test nillable element, with a value
-		xsd__boolean* nillableInput = new xsd__boolean();
-		*(nillableInput) = (xsd__boolean)0;
-		xsd__boolean* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
-			cout << "nillable element=" << *(nillableResult) << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+                // Test nillable element, with a value
+                xsd__boolean* nillableInput = new xsd__boolean();
+                *(nillableInput) = (xsd__boolean)0;
+                xsd__boolean* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
+                        cout << "nillable element=" << *(nillableResult) << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
         delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
-			cout << "nil element=" << *(nillableResult) << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
-
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute((xsd__boolean)1);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
-		cout << "required attribute=" << requiredAttributeResult->getrequiredAttribute() << endl;
-		delete requiredAttributeResult;
+                if (nillableResult)
+                {
+                        cout << "nil element=" << *(nillableResult) << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
+
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute((xsd__boolean)1);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                cout << "required attribute=" << requiredAttributeResult->getrequiredAttribute() << endl;
+                delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
  * Exact coding of this section may change depending on chosen implementation
-		// Test optional attribute, with a value
-		OptionalAttributeElement optionalAttributeInput;
-		optionalAttributeInput.setoptionalAttribute(false_);
-		OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			cout << "optional attribute, with data=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
-		}
-		else
-		{
-			cout << "optional attribute, with data=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
-
-		// Test optional attribute, not present
-		optionalAttributeInput.setattribute();
-		optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			cout << "optional attribute, not present=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
-		}
-		else
-		{
-			cout << "optional attribute, not present=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
+                // Test optional attribute, with a value
+                OptionalAttributeElement optionalAttributeInput;
+                optionalAttributeInput.setoptionalAttribute(false_);
+                OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        cout << "optional attribute, with data=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, with data=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
+
+                // Test optional attribute, not present
+                optionalAttributeInput.setattribute();
+                optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        cout << "optional attribute, not present=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, not present=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
 */
 
-		// Test array
+                // Test array
 
         xsd__boolean_Array arrayInput;
-		int arraySize=2;
-		xsd__boolean ** array = new xsd__boolean*[arraySize];        
+                int arraySize=2;
+                xsd__boolean ** array = new xsd__boolean*[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new xsd__boolean(true_);            
         }
-		arrayInput.set(array,arraySize);
-		xsd__boolean_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=2;
-		const xsd__boolean **output = arrayResult->get(outputSize);
+                arrayInput.set(array,arraySize);
+                xsd__boolean_Array* arrayResult = ws->asArray(&arrayInput);
+                int outputSize=2;
+                const xsd__boolean **output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
-		for (int index = 0; index < outputSize; index++)
-		{
-			cout << "  element[" << index << "]=" << (*output[index]) << endl;			
-		}
+                for (int index = 0; index < outputSize; index++)
+                {
+                        cout << "  element[" << index << "]=" << (*output[index]) << endl;                      
+                }
         // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
@@ -141,31 +141,31 @@
         delete [] array;
         delete arrayResult;
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(xsd_boolean_false);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
-		cout << "within complex type=" << complexTypeResult->getcomplexTypeElement() << endl;
-		delete complexTypeResult;
-
-		// Tests now complete
-
-		delete ws;
-	}
-	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;
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(xsd_boolean_false);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                cout << "within complex type=" << complexTypeResult->getcomplexTypeElement() << endl;
+                delete complexTypeResult;
+
+                // Tests now complete
+
+                delete ws;
+        }
+        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;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_byteClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_byteClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_byteClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_byteClient.cpp Thu Apr 27 20:03:51 2006
@@ -112,17 +112,17 @@
 
         // Test array
         xsd__byte_Array arrayInput;
-		int arraySize=2;
-		xsd__byte **array = new xsd__byte*[arraySize];
+                int arraySize=2;
+                xsd__byte **array = new xsd__byte*[arraySize];
         
         for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
         {
             array[inputIndex] = new xsd__byte(123);
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__byte_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__byte ** output=arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__byte ** output=arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateClient.cpp Thu Apr 27 20:03:51 2006
@@ -116,18 +116,18 @@
 */
         // Test array
         xsd__date_Array arrayInput;
-		int arraySize = 2;
-		xsd__date ** array = new xsd__date*[arraySize];
+                int arraySize = 2;
+                xsd__date ** array = new xsd__date*[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] =new xsd__date(time);
             
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__date_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__date **output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__date **output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateTimeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateTimeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateTimeClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateTimeClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,18 +22,18 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_dateTime";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_dateTime";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_dateTime* ws = new XSD_dateTime(endpoint);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_dateTime* ws = new XSD_dateTime(endpoint);
 
         char returnString[50];
         
@@ -42,95 +42,95 @@
         struct tm time;
         memcpy(&time, temp, sizeof(struct tm));
 
-		// Test non-nillable element
-	    xsd__dateTime result = ws->asNonNillableElement(time);
+                // Test non-nillable element
+            xsd__dateTime result = ws->asNonNillableElement(time);
         strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", &result);
-		cout << "non-nillable element=" << returnString << endl;
+                cout << "non-nillable element=" << returnString << endl;
 
-		// Test nillable element, with a value
-		xsd__dateTime* nillableInput = new xsd__dateTime();
-		*(nillableInput) = time;
-		xsd__dateTime* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
+                // Test nillable element, with a value
+                xsd__dateTime* nillableInput = new xsd__dateTime();
+                *(nillableInput) = time;
+                xsd__dateTime* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
             strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", nillableResult);
-			cout << "nillable element=" << returnString << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+                        cout << "nillable element=" << returnString << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
        delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
+                if (nillableResult)
+                {
             strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", nillableResult);
-			cout << "nil element=" << returnString << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
-
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute(time);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                        cout << "nil element=" << returnString << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
+
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute(time);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
         result = requiredAttributeResult->getrequiredAttribute();
-		strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", &result);
+                strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", &result);
         cout << "required attribute=" << returnString << endl;
-		delete requiredAttributeResult;
+                delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
  * Exact coding of this section may change depending on chosen implementation
-		// Test optional attribute, with a value
-		OptionalAttributeElement optionalAttributeInput;
-		optionalAttributeInput.setoptionalAttribute(time);
-		OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
+                // Test optional attribute, with a value
+                OptionalAttributeElement optionalAttributeInput;
+                optionalAttributeInput.setoptionalAttribute(time);
+                OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
             strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", optionalAttributeResult->getoptionalAttribute());
-			cout << "optional attribute, with data=" << returnString << endl;
-		}
-		else
-		{
-			cout << "optional attribute, with data=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
-
-		// Test optional attribute, not present
-		//optionalAttributeInput.setattribute();
-		optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
+                        cout << "optional attribute, with data=" << returnString << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, with data=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
+
+                // Test optional attribute, not present
+                //optionalAttributeInput.setattribute();
+                optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
             strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", optionalAttributeResult->getoptionalAttribute());
-			cout << "optional attribute, not present=" << returnString << endl;
-		}
-		else
-		{
-			cout << "optional attribute, not present=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
+                        cout << "optional attribute, not present=" << returnString << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, not present=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
 */
-		// Test array
+                // Test array
 
         xsd__dateTime_Array arrayInput;
-		int arraySize = 2;
-		xsd__dateTime ** array = new xsd__dateTime*[arraySize];
+                int arraySize = 2;
+                xsd__dateTime ** array = new xsd__dateTime*[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] =new xsd__dateTime(time);
             
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__dateTime_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__dateTime **output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__dateTime **output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -147,33 +147,33 @@
         delete arrayResult;
 
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(time);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(time);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
         result = complexTypeResult->getcomplexTypeElement();
         strftime(returnString, 50, "%a %b %d %H:%M:%S %Y", &result);
-		cout << "within complex type=" << returnString << endl;
-		delete complexTypeResult;
+                cout << "within complex type=" << returnString << endl;
+                delete complexTypeResult;
+
+                // Tests now complete
 
-		// Tests now complete
+                delete ws;
+        }
+        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;
+        }
 
-		delete ws;
-	}
-	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;
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_decimalClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_decimalClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_decimalClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_decimalClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,21 +22,21 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_decimal";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_decimal";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_decimal* ws = new XSD_decimal(endpoint);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_decimal* ws = new XSD_decimal(endpoint);
 
-	    xsd__decimal result = ws->asNonNillableElement((xsd__decimal)123456789);
-		printf("non-nillable element=%.6f\n", result);
+            xsd__decimal result = ws->asNonNillableElement((xsd__decimal)123456789);
+                printf("non-nillable element=%.6f\n", result);
         fflush(stdout);
         result = ws->asNonNillableElement((xsd__decimal)123456789.123456);
         printf("non-nillable element=%.6f\n", result);
@@ -51,94 +51,94 @@
         printf("non-nillable element=%.6f\n", result);
         fflush(stdout);
 
-		// Test nillable element, with a value
-		xsd__decimal* nillableInput = new xsd__decimal();
-		*(nillableInput) = (xsd__decimal)123456789;
-		xsd__decimal* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
-			printf("nillable element=%.6f\n", *(nillableResult));
+                // Test nillable element, with a value
+                xsd__decimal* nillableInput = new xsd__decimal();
+                *(nillableInput) = (xsd__decimal)123456789;
+                xsd__decimal* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
+                        printf("nillable element=%.6f\n", *(nillableResult));
             fflush(stdout);
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
        delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
-			printf("nil element=%.6f\n", *(nillableResult));
+                if (nillableResult)
+                {
+                        printf("nil element=%.6f\n", *(nillableResult));
             fflush(stdout);
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
-
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute(123456789);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
-		printf("required attribute=%.6f\n", requiredAttributeResult->getrequiredAttribute());
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
+
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute(123456789);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                printf("required attribute=%.6f\n", requiredAttributeResult->getrequiredAttribute());
         fflush(stdout);
-		delete requiredAttributeResult;
+                delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
  * Exact coding of this section may change depending on chosen implementation
-		// Test optional attribute, with a value
-		OptionalAttributeElement optionalAttributeInput;
-		optionalAttributeInput.setoptionalAttribute(123456789);
-		OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			printf("optional attribute, with data=%.6f\n",  optionalAttributeResult->getoptionalAttribute());
+                // Test optional attribute, with a value
+                OptionalAttributeElement optionalAttributeInput;
+                optionalAttributeInput.setoptionalAttribute(123456789);
+                OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        printf("optional attribute, with data=%.6f\n",  optionalAttributeResult->getoptionalAttribute());
             fflush(stdout);
-		}
-		else
-		{
-			cout << "optional attribute, with data=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
-
-		// Test optional attribute, not present
-		//optionalAttributeInput.setattribute();
-		optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			printf("optional attribute, not present=%.6f\n", optionalAttributeResult->getoptionalAttribute());
+                }
+                else
+                {
+                        cout << "optional attribute, with data=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
+
+                // Test optional attribute, not present
+                //optionalAttributeInput.setattribute();
+                optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        printf("optional attribute, not present=%.6f\n", optionalAttributeResult->getoptionalAttribute());
             fflush(stdout);
-		}
-		else
-		{
-			cout << "optional attribute, not present=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
+                }
+                else
+                {
+                        cout << "optional attribute, not present=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
 */
 
-		// Test array
+                // Test array
          xsd__decimal_Array arrayInput;
-		int arraySize=2;
-		xsd__decimal **array = new xsd__decimal*[arraySize];        
+                int arraySize=2;
+                xsd__decimal **array = new xsd__decimal*[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new xsd__decimal(123456789);
           
         }
-		arrayInput.set(array,arraySize);
-		xsd__decimal_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__decimal ** output = arrayResult->get(outputSize);
+                arrayInput.set(array,arraySize);
+                xsd__decimal_Array* arrayResult = ws->asArray(&arrayInput);
+                int outputSize=0;
+                const xsd__decimal ** output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
-		for (int index = 0; index < outputSize ; index++)
-		{
-			printf("  element[%i]=%.6f\n", index, *((xsd__decimal*)output[index]));
-            fflush(stdout);			
-		}
+                for (int index = 0; index < outputSize ; index++)
+                {
+                        printf("  element[%i]=%.6f\n", index, *((xsd__decimal*)output[index]));
+            fflush(stdout);                     
+                }
          // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
@@ -147,32 +147,32 @@
         delete [] array;
         delete arrayResult;
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(123456789);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
-		printf("within complex type=%.6f\n", complexTypeResult->getcomplexTypeElement());
-        fflush(stdout);
-		delete complexTypeResult;
-
-		// Tests now complete
-
-		delete ws;
-	}
-	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;
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(123456789);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                printf("within complex type=%.6f\n", complexTypeResult->getcomplexTypeElement());
+        fflush(stdout);
+                delete complexTypeResult;
+
+                // Tests now complete
+
+                delete ws;
+        }
+        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;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_doubleClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_doubleClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_doubleClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_doubleClient.cpp Thu Apr 27 20:03:51 2006
@@ -111,23 +111,23 @@
 
      // Test array
         xsd__double_Array arrayInput;
-		int arraySize=2;
-		xsd__double **array =new xsd__double*[arraySize];        
+                int arraySize=2;
+                xsd__double **array =new xsd__double*[arraySize];        
         for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
         {
             array[inputIndex] =new xsd__double(70.7175888888);          
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__double_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__double ** output=arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__double ** output=arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
          {
          printf("  element[%i]=%.5f\n", index,  *(output[index]));
             fflush(stdout);
         }
-	  // Clear up input array        
+          // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
             delete array[deleteIndex];

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_durationClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_durationClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_durationClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_durationClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,107 +22,107 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_duration";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_duration";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_duration* ws = new XSD_duration(endpoint);
-
-		// Test non-nillable element
-	    xsd__duration result = ws->asNonNillableElement((xsd__duration)123456789);
-		cout << "non-nillable element=" << result << endl;
-
-		// Test nillable element, with a value
-		xsd__duration* nillableInput = new xsd__duration();
-		*(nillableInput) = (xsd__duration)123456789;
-		xsd__duration* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
-			cout << "nillable element=" << *(nillableResult) << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_duration* ws = new XSD_duration(endpoint);
+
+                // Test non-nillable element
+            xsd__duration result = ws->asNonNillableElement((xsd__duration)123456789);
+                cout << "non-nillable element=" << result << endl;
+
+                // Test nillable element, with a value
+                xsd__duration* nillableInput = new xsd__duration();
+                *(nillableInput) = (xsd__duration)123456789;
+                xsd__duration* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
+                        cout << "nillable element=" << *(nillableResult) << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
        delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
-			cout << "nil element=" << *(nillableResult) << endl;
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
-
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute(123456789);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
-		cout << "required attribute=" << requiredAttributeResult->getrequiredAttribute() << endl;
-		delete requiredAttributeResult;
+                if (nillableResult)
+                {
+                        cout << "nil element=" << *(nillableResult) << endl;
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
+
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute(123456789);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                cout << "required attribute=" << requiredAttributeResult->getrequiredAttribute() << endl;
+                delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
  * Exact coding of this section may change depending on chosen implementation
-		// Test optional attribute, with a value
-		OptionalAttributeElement optionalAttributeInput;
-		optionalAttributeInput.setoptionalAttribute(123456789);
-		OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			cout << "optional attribute, with data=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
-		}
-		else
-		{
-			cout << "optional attribute, with data=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
-
-		// Test optional attribute, not present
-		optionalAttributeInput.setattribute();
-		optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			cout << "optional attribute, not present=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
-		}
-		else
-		{
-			cout << "optional attribute, not present=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
+                // Test optional attribute, with a value
+                OptionalAttributeElement optionalAttributeInput;
+                optionalAttributeInput.setoptionalAttribute(123456789);
+                OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        cout << "optional attribute, with data=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, with data=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
+
+                // Test optional attribute, not present
+                optionalAttributeInput.setattribute();
+                optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        cout << "optional attribute, not present=" << *(optionalAttributeResult->getoptionalAttribute()) << endl;
+                }
+                else
+                {
+                        cout << "optional attribute, not present=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
 */
-		// Test array
+                // Test array
         xsd__duration_Array arrayInput;
-		int arraySize=2;
-		xsd__duration ** array = new xsd__duration*[arraySize];        
+                int arraySize=2;
+                xsd__duration ** array = new xsd__duration*[arraySize];        
         for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
         {
             array[inputIndex] = new xsd__duration(123456789);
             
         }
-		arrayInput.set(array,arraySize);
-		xsd__duration_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__duration **output = arrayResult->get(outputSize);
+                arrayInput.set(array,arraySize);
+                xsd__duration_Array* arrayResult = ws->asArray(&arrayInput);
+                int outputSize=0;
+                const xsd__duration **output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
-		for (int index = 0; index < outputSize; index++)
-		{
-			cout << "  element[" << index << "]=" << *((xsd__duration*)output[index]) << endl;
-			
-		}
+                for (int index = 0; index < outputSize; index++)
+                {
+                        cout << "  element[" << index << "]=" << *((xsd__duration*)output[index]) << endl;
+                        
+                }
       
-		 // Clear up input array        
+                 // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
             delete array[deleteIndex];
@@ -131,31 +131,31 @@
         delete arrayResult;
 
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement(123456789);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
-		cout << "within complex type=" << complexTypeResult->getcomplexTypeElement() << endl;
-		delete complexTypeResult;
-
-		// Tests now complete
-
-		delete ws;
-	}
-	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;
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement(123456789);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                cout << "within complex type=" << complexTypeResult->getcomplexTypeElement() << endl;
+                delete complexTypeResult;
+
+                // Tests now complete
+
+                delete ws;
+        }
+        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;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_float1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_float1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_float1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_float1Client.cpp Thu Apr 27 20:03:51 2006
@@ -22,42 +22,42 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_float";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_float";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_float* ws = new XSD_float(endpoint);
-
-		// Test non-nillable element
-       	        xsd__float result = ws->asNonNillableElement((xsd__float)555.555);
-		printf("non-nillable element=%.6g\n", result);
-        	fflush(stdout);
-
-		// Tests now complete
-
-		delete ws;
-	}
-	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;
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_float* ws = new XSD_float(endpoint);
+
+                // Test non-nillable element
+                xsd__float result = ws->asNonNillableElement((xsd__float)555.555);
+                printf("non-nillable element=%.6g\n", result);
+                fflush(stdout);
+
+                // Tests now complete
+
+                delete ws;
+        }
+        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;
 }



Mime
View raw message