You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/04/28 05:04:04 UTC

svn commit: r397747 [2/17] - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainText.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainText.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainText.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainText.cpp Thu Apr 27 20:03:51 2006
@@ -31,79 +31,75 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/PlainTextAttachment";	
-	char *Result;
-	url = argv[1];
-	bool bSuccess = false;
-	int	iRetryIterationCount = 3;
-
-	signal(SIGILL, sig_handler);
-	signal(SIGABRT, sig_handler);
-	signal(SIGSEGV, sig_handler);
-	//signal(SIGQUIT, sig_handler);
-	//signal(SIGBUS, sig_handler);
-	signal(SIGFPE, sig_handler);
-
-	do
-		{
-			try
-			{
-				sprintf(endpoint, "%s", url);
-				AttachmentBindingImpl ws(endpoint);
-				ISoapAttachment *att=ws.createSoapAttachment();	
-
-				char *text=stringToAscii("This is a test message for attachment");
-
-				//Adding the content type as text/plain
-				att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
-				xsd__base64Binary b64b1;
-                b64b1.set((xsd__unsignedByte *) text, strlen(text));
-				att->addBody(&b64b1);
-				//Calling the dataHandlerService, service will return content		        
-				Result=ws.echoText(att);				
-			    cout<<Result<<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/PlainTextAttachment"; 
+    char *Result;
+    url = argv[1];
+    bool bSuccess = false;
+    int     iRetryIterationCount = 3;
+
+    signal(SIGILL, sig_handler);
+    signal(SIGABRT, sig_handler);
+    signal(SIGSEGV, sig_handler);
+    //signal(SIGQUIT, sig_handler);
+    //signal(SIGBUS, sig_handler);
+    signal(SIGFPE, sig_handler);
+
+    do
+    {
+        try
+        {
+            sprintf(endpoint, "%s", url);
+            AttachmentBindingImpl ws(endpoint);
+            ISoapAttachment *att=ws.createSoapAttachment(); 
+
+            char *text=stringToAscii("This is a test message for attachment");
+
+            att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+            xsd__base64Binary b64b1;
+            b64b1.set((xsd__unsignedByte *) text, strlen(text));
+            att->addBody(&b64b1);
+
+            Result=ws.echoText(att);                                
+            cout<<Result<<endl;                         
+            bSuccess = true;
+        }       
+        catch(AxisException& e)
+        {
+            bool bSilent = false;
+
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                    if( iRetryIterationCount > 0)
+                            bSilent = true;
+            }
+            else
+                    iRetryIterationCount = 0;
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-  cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        
+        iRetryIterationCount--;
+   } 
+   while( iRetryIterationCount > 0 && !bSuccess);
+   
+   cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+   return 0;
 }
 
 void sig_handler(int sig) {
-	signal(sig, sig_handler);
-    cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+        signal(sig, sig_handler);
+        cout << "SIGNAL RECEIVED " << sig << endl;
+        exit(1);
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainTextSSL.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainTextSSL.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainTextSSL.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainTextSSL.cpp Thu Apr 27 20:03:51 2006
@@ -30,88 +30,85 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/PlainTextAttachment";	
-	char *Result;
-	url = argv[1];
-	bool bSuccess = false;
-	int	iRetryIterationCount = 3;
-	const char* sslkeyhome = 0;
+    char endpoint[256];
+    const char* url="http://localhost:80/axis/PlainTextAttachment"; 
+    char *Result;
+    url = argv[1];
+    bool bSuccess = false;
+    int     iRetryIterationCount = 3;
+    const char* sslkeyhome = 0;
     char keylocation[255];
 
-	signal(SIGILL, sig_handler);
-	signal(SIGABRT, sig_handler);
-	signal(SIGSEGV, sig_handler);
-	//signal(SIGQUIT, sig_handler);
-	//signal(SIGBUS, sig_handler);
-	signal(SIGFPE, sig_handler);
-
-	do
-		{
-			try
-			{
-				sprintf(endpoint, "%s", url);
-				AttachmentBindingImpl ws(endpoint);
-				ISoapAttachment *att=ws.createSoapAttachment();				
-				char *text="This is a test message for attachment";
-				//Adding the content type as text/plain
-				att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
-				xsd__base64Binary b64b1;
-                b64b1.set((xsd__unsignedByte *) text, strlen(text));
-				att->addBody(&b64b1);
-				sslkeyhome=getenv("SSL_KEYS_HOME");
+    signal(SIGILL, sig_handler);
+    signal(SIGABRT, sig_handler);
+    signal(SIGSEGV, sig_handler);
+    //signal(SIGQUIT, sig_handler);
+    //signal(SIGBUS, sig_handler);
+    signal(SIGFPE, sig_handler);
+
+    do
+    {
+        try
+        {
+            sprintf(endpoint, "%s", url);
+            AttachmentBindingImpl ws(endpoint);
+            ISoapAttachment *att=ws.createSoapAttachment();                         
+            char *text="This is a test message for attachment";
+            //Adding the content type as text/plain
+            att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+            xsd__base64Binary b64b1;
+            b64b1.set((xsd__unsignedByte *) text, strlen(text));
+            att->addBody(&b64b1);
+            sslkeyhome=getenv("SSL_KEYS_HOME");
             if (!sslkeyhome)
             {
-                cout << "SSL_KEYS_HOME not set" << endl;	
+                cout << "SSL_KEYS_HOME not set" << endl;        
                 return 1;
             }
             sprintf(keylocation,"%s/%s",sslkeyhome,"myKeyRing.kdb");
             ws.SetSecure(keylocation, "axis4all", "AXIS", "NONE", "05", "NONE", false);
 
-				//Calling the dataHandlerService, service will return content		        
-				Result=ws.echoText(att);				
-			    cout<<Result<<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;
-			}
+            Result=ws.echoText(att);                                
+            cout<<Result<<endl;                         
+            bSuccess = true;
+        }       
+        catch(AxisException& e)
+        {
+            bool bSilent = false;
+
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                if( iRetryIterationCount > 0)
+                        bSilent = true;
+            }
+            else
+                iRetryIterationCount = 0;
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-  cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+            
+        iRetryIterationCount--;
+    } 
+    while( iRetryIterationCount > 0 && !bSuccess);
+                
+    cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+    return 0;
 }
 
-void sig_handler(int sig) {
-	signal(sig, sig_handler);
-    cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+void sig_handler(int sig) 
+{
+        signal(sig, sig_handler);
+        cout << "SIGNAL RECEIVED " << sig << endl;
+        exit(1);
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Attachment1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Attachment1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Attachment1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Attachment1Client.cpp Thu Apr 27 20:03:51 2006
@@ -21,85 +21,85 @@
 
 int main(int argc, char* argv[])
 {
-	bool bSuccess = false;
-	int	iRetryIterationCount = 3;
+        bool bSuccess = false;
+        int     iRetryIterationCount = 3;
 
-	do
-	{
-		try
-		{
-			AttachmentBindingImpl ws(argv[1]);
-
-			char *text=stringToAscii("Some attachment text");
-
-			#define NUM_ATTS 6
-			ISoapAttachment *att[NUM_ATTS];
-			xsd__base64Binary b64b[NUM_ATTS];
-
-			for (int i=0; i<NUM_ATTS; i++)
-			{
-				att[i] = ws.createSoapAttachment();
-
-				if (1==i)
-					att[i]->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
-				else if (2==i)
-					att[i]->addHeader("Content-Disposition","checked");
-				
-				b64b[i].set((unsigned char *)text, strlen(text)+1);
-				att[i]->addBody(&b64b[i]);	
-			}
-
-			xsd__int iResult = ws.put(att[0], att[1], att[2], att[3], att[4], att[5], NULL);
-			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);
+        do
+        {
+                try
+                {
+                        AttachmentBindingImpl ws(argv[1]);
+
+                        char *text=stringToAscii("Some attachment text");
+
+                        #define NUM_ATTS 6
+                        ISoapAttachment *att[NUM_ATTS];
+                        xsd__base64Binary b64b[NUM_ATTS];
+
+                        for (int i=0; i<NUM_ATTS; i++)
+                        {
+                                att[i] = ws.createSoapAttachment();
+
+                                if (1==i)
+                                        att[i]->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
+                                else if (2==i)
+                                        att[i]->addHeader("Content-Disposition","checked");
+                                
+                                b64b[i].set((unsigned char *)text, strlen(text)+1);
+                                att[i]->addBody(&b64b[i]);      
+                        }
+
+                        xsd__int iResult = ws.put(att[0], att[1], att[2], att[3], att[4], att[5], NULL);
+                        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<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	return 0;
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        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;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp Thu Apr 27 20:03:51 2006
@@ -13,6 +13,16 @@
 // 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 "AxisBench.hpp"
 #include <iostream>
 #include <fstream>
@@ -20,9 +30,9 @@
 #include "CommonClientTestCode.hpp"
 
 #ifndef WIN32
-  #include "sys/time.h"
+#include "sys/time.h"
 #else
-  #include "sys/timeb.h"
+#include "sys/timeb.h"
 #endif
 
 static bool verbose = false;
@@ -39,21 +49,21 @@
 #define WSDL_DEFAULT_ENDPOINT "http://localhost:9080/AxisBench/services/AxisBenchSoapImpl"
 
 int main( int argc, char * argv[])
-{ 
-    AxisBench *	ws;
+{
+    AxisBench * ws;
 
-    BenchDataType *		input = NULL;
-    BenchDataType *		output = NULL;
-    xsd__unsignedByte *	buffer = NULL;
-
-    char *	endpoint = WSDL_DEFAULT_ENDPOINT;
-    bool	endpoint_set = false;
-    int		returnValue = 1; // Assume Failure
+    BenchDataType *             input = NULL;
+    BenchDataType *             output = NULL;
+    xsd__unsignedByte * buffer = NULL;
+
+    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;
-    int		iRetryIterationCount = 3;
+    bool        bSuccess = false;
+    int         iRetryIterationCount = 3;
 
     do
     {
@@ -62,42 +72,38 @@
             if( endpoint_set)
             {
                 ws = new AxisBench( endpoint, APTHTTP1_1);
-
                 free( endpoint);
-                
-				endpoint_set = false;
+                endpoint_set = false;
             }
             else
-			{
                 ws = new AxisBench();
-			}
 
-// Extend transport timeout to 60 seconds (default is 10).
-			ws->setTransportTimeout( 60);
+            // Extend transport timeout to 60 seconds (default is 10).
+            ws->setTransportTimeout( 60);
 
             int request = 1;
-      
+
             input = new BenchDataType();
             input->count = 100;
-      
-            BenchBasicDataType_Array	arrayIn;
-            BenchBasicDataType **		ppBBDT = new BenchBasicDataType *[input->count];
-            xsd__long					ll = 10000;
-            time_t						tim = 1100246323;
-            struct tm *					temp = gmtime( &tim);
-            struct tm					lt;
+
+            BenchBasicDataType_Array    arrayIn;
+            BenchBasicDataType **       ppBBDT = new BenchBasicDataType *[input->count];
+            xsd__long                   ll = 10000;
+            time_t                      tim = 1100246323;
+            struct tm *                 temp = gmtime( &tim);
+            struct tm                   lt;
 
             memcpy( &lt, temp, sizeof( struct tm));
-            
-            char *	letterA_String = stringToAscii( "A");
-            
-			buffer = (xsd__unsignedByte *) calloc( 1, input->count + 2);
-            
-            strcpy( (char *) buffer, letterA_String);  
+
+            char * letterA_String = stringToAscii( "A");
+
+            buffer = (xsd__unsignedByte *) calloc( 1, input->count + 2);
+
+            strcpy( (char *) buffer, letterA_String);
 
             for( int i = 0; i < input->count ; i++)
             {
-                BenchBasicDataType *	type = new BenchBasicDataType();
+                BenchBasicDataType *    type = new BenchBasicDataType();
 
                 type->StringType = "StringType";
                 type->IntegerType = 10 * (i + 1);
@@ -115,51 +121,43 @@
                 type->ShortType = (i + 1);
                 type->Base64BinaryType.set( buffer, i);
                 type->HexBinary.set( buffer, i);
-            
+
                 ppBBDT[i] = type;
 
                 if( ll == 0)
-                {
                     ll = 1;
-                }
                 else
-                {
                     ll += 10000;
-                }
 
                 strcat ( (char *) buffer, letterA_String);
             }
 
-#ifndef WIN32  
-            struct timeval	mstart;
-            struct timeval	mstop;
+#ifndef WIN32
+            struct timeval      mstart;
+            struct timeval      mstop;
 
             gettimeofday( &mstart, NULL);
 #else
-            struct timeb	mstart;
-            struct timeb	mstop;
+            struct timeb        mstart;
+            struct timeb        mstop;
 
             ftime( &mstart);
 #endif
 
             arrayIn.set( ppBBDT, input->count);
 
-            input->setinfos( &arrayIn);    
+            input->setinfos( &arrayIn);
 
             for( int ii = 0; ii < request; ii++)
             {
                 if( output)
-                { // Samisa: memory management BP
-                    int						outputSize = 0;
-                    BenchBasicDataType **	outArray = output->infos->get( outputSize); 
-                    
-					for( int i = 0; i < outputSize; i++)
-					{
-                        delete outArray[i];
-					}
+                { 
+                    int outputSize = 0;
+                    BenchBasicDataType ** outArray = output->infos->get( outputSize);
 
+                    for( int i = 0; i < outputSize; i++)
+                        delete outArray[i];
                     delete output;
-
                     output = NULL;
                 }
 
@@ -167,16 +165,14 @@
             }
 
             for( int count = 0; count < input->count; count++)
-            {
                 delete ppBBDT[count];
-            }
 
             delete [] ppBBDT;
-            
-			free( buffer);
+
+            free( buffer);
 
             int t1;
-			int	t2;
+            int t2;
 
 #ifndef WIN32
             gettimeofday( &mstop, NULL);
@@ -193,26 +189,22 @@
             int total = t2 - t1;
 
             if( ws->getStatus() == AXIS_FAIL)
-			{
                 cout << "Failed" << endl;
-			}
-            else 
+            else
             {
                 bSuccess = true;
 
-                char	dateTime[50];
-                int		i = 0;
+                char    dateTime[50];
+                int             i = 0;
 
                 if( argc > 1)
-				{
                     i = output->count - 1;
-				}
 
                 cout << "Input Count : " << input->count << endl;
                 cout << "Count : " << output->count << endl;
 
-                int						outputSize = 0;
-                BenchBasicDataType **	outArray = output->infos->get( outputSize);
+                int outputSize = 0;
+                BenchBasicDataType **   outArray = output->infos->get( outputSize);
 
                 for( ; i < output->count; i++)
                 {
@@ -228,14 +220,14 @@
                         cout << " DateTimeType " << dateTime << endl;
                         strftime(dateTime, 50, "%a %b %d %Y", &outArray[i]->DateType);
                         cout << " DateType " << dateTime << endl;
-// This is being removed due to problem in some servers.
-// See XSDTime or XSDTimeNil testcases for full validation of the xsd:time type
-//                      strftime(dateTime, 50, "%H:%M:%S", &output->infos.m_Array[i]->TimeType);
-//                      cout << " TimeType " << dateTime << endl;
+                        // This is being removed due to problem in some servers. See XSDTime or XSDTimeNil testcases for
+                        // full validation of the xsd:time type strftime(dateTime, 50, "%H:%M:%S",
+                        // &output->infos.m_Array[i]->TimeType); cout << " TimeType " << dateTime << endl;
 
-// Following check for os/400 - the mock server will return ascii char which needs to be converted
+                        // Following check for os/400 - the mock server will return ascii char which needs to be
+                        // converted
 #ifdef __OS400__
-                        if( outArray[i]->ByteType == 0x31) 
+                        if( outArray[i]->ByteType == 0x31)
                             outArray[i]->ByteType = '1';
 #endif
                         cout << " ByteType " << outArray[i]->ByteType << endl;
@@ -245,26 +237,18 @@
                         cout << " QNameType " << outArray[i]->QNameType << endl;
                         cout << " ShortType " << outArray[i]->ShortType << endl;
 
-                        int					size = 0;
-                        xsd__unsignedByte *	base64BinaryData = outArray[i]->Base64BinaryType.get( size);
-
+                        int size = 0;
+                        
+                        xsd__unsignedByte * base64BinaryData = outArray[i]->Base64BinaryType.get( size);
                         cout << " Base64BinaryType " << size << endl;
-
                         if( size > 0)
-                        {
                             cout << " Base64BinaryType " << asciiToString((char *)base64BinaryData) << endl;
-                        }
 
                         size = 0;
-
                         xsd__unsignedByte * hexBinaryData = outArray[i]->HexBinary.get(size);
-
                         cout << " HexBinaryType " << size << endl;
-
                         if( size > 0)
-                        {
                             cout << " HexBinaryType " << asciiToString( (char *) hexBinaryData) << endl;
-                        }
                     }
 
                     returnValue = 0;
@@ -286,19 +270,13 @@
             if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
             {
                 if( iRetryIterationCount > 1)
-                {
                     bSilent = true;
-                }
             }
             else
-            {
                 iRetryIterationCount = 0;
-            }
 
             if( !bSilent)
-            {
                 cout << "Exception : " << e.what() << endl;
-            }
         }
         catch(...)
         {
@@ -308,13 +286,11 @@
         // Samisa: make sure we clean up memory allocated
         try
         {
-            delete ws; 
+            delete ws;
             delete input;
 
             if (output)
-            {
                 delete output;
-            }
         }
         catch( AxisException& e)
         {
@@ -333,22 +309,17 @@
     while( iRetryIterationCount > 0 && !bSuccess);
 
     if( endpoint_set)
-	{
         free( endpoint);
-	}
 
     cout << "---------------------- TEST COMPLETE -----------------------------" << endl;
-    
-	return returnValue;
+
+    return returnValue;
 }
 
-/* Spin through args list and check for -e -p and -s options.
-   Option values are expected to follow the option letter as the next
-   argument.
- 
-   These options and values are removed from the arg list.
-   If both -e and -s and or -p, then -e takes priority
-*/
+/* Spin through args list and check for -e -p and -s options. Option values are expected to follow the option letter as
+ the next argument.
+
+ These options and values are removed from the arg list. If both -e and -s and or -p, then -e takes priority */
 bool parse_args_for_endpoint(int *argc, char *argv[], char **endpoint) {
 
     // We need at least 2 extra arg after program name
@@ -364,46 +335,46 @@
     for(int i=1; i<*argc; i++) {
         if(*argv[i] == '-') {
             switch(*(argv[i]+1)) {
-            case 'e':
-                *endpoint = strdup(argv[i+1]);
-                ep_set = true;
-                shift_args(i, argc, argv);
-                i--;
-                break;
-            case 's':
-                server = strdup(argv[i+1]);
-                server_set = true;
-                shift_args(i, argc, argv);
-                i--;
-                break;
-            case 'p':
-                port = atoi(argv[i+1]);
-                if(port >80) port_set = true;
-                shift_args(i, argc, argv);
-                i--;
-                break;
-            case 'o':
-                setLogOptions(argv[i+1]);
-                shift_args(i, argc, argv);
-                i--;
-                break;
-            case 'v':
-                verbose=true;
-                break;
-            default:
-                break;
+                case 'e':
+                    *endpoint = strdup(argv[i+1]);
+                    ep_set = true;
+                    shift_args(i, argc, argv);
+                    i--;
+                    break;
+                case 's':
+                    server = strdup(argv[i+1]);
+                    server_set = true;
+                    shift_args(i, argc, argv);
+                    i--;
+                    break;
+                case 'p':
+                    port = atoi(argv[i+1]);
+                    if(port >80) port_set = true;
+                    shift_args(i, argc, argv);
+                    i--;
+                    break;
+                case 'o':
+                    setLogOptions(argv[i+1]);
+                    shift_args(i, argc, argv);
+                    i--;
+                    break;
+                case 'v':
+                    verbose=true;
+                    break;
+                default:
+                    break;
             }
         }
     }
 
     // use the supplied server and/or port to build the endpoint
     if(ep_set == false && (server_set || port_set)) {
-        // Set p to the location of the first '/' after the http:// (7 chars)
-        // e.g. from http://localhost:80/axis/base gets /axis/base
+        // Set p to the location of the first '/' after the http:// (7 chars) e.g. from http://localhost:80/axis/base
+        // gets /axis/base
         char *ep_context = strpbrk(&(*endpoint)[7], "/");
 
-        // http://:/ is 9 characters + terminating NULL character so add 10.
-        // Allow space for port number upto 999999 6 chars
+        // http://:/ is 9 characters + terminating NULL character so add 10. Allow space for port number upto 999999 6
+        // chars
         *endpoint = (char *)calloc(1, 10 + strlen(ep_context) + strlen(server) + 6);
         sprintf(*endpoint, "http://%s:%d/%s", server, port, ep_context+1);
         if(server_set) free(server);

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBench_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBench_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBench_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBench_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -31,7 +31,7 @@
 
 #ifdef WIN32
         #include <windows.h>
-		#include "sys/timeb.h"
+                #include "sys/timeb.h"
         #define RETTYPE DWORD WINAPI
         #define ARGTYPE LPVOID
 #else
@@ -52,150 +52,141 @@
    In linux it is void *                                          */
 RETTYPE ThreadFunc(ARGTYPE Param)
 {
-        /*Type casting the url to char * */
-        char *p=(char *)Param;
-        char endpoint[256];
-        const char* url="http://puppet.in.ibm.com:9060/Calculator/services/Calculator";
-        AxisBench *ws;
-		BenchDataType *input = NULL;
-		BenchDataType *output = NULL;
-		xsd__unsignedByte* buffer = NULL;
-        if(p!=NULL)
-             url=p;
-        int iResult;
-		bool bSuccess = false;
-		int	iRetryIterationCount = 1;
+    /*Type casting the url to char * */
+    char *p=(char *)Param;
+    char endpoint[256];
+    const char* url="http://puppet.in.ibm.com:9060/Calculator/services/Calculator";
+    AxisBench *ws;
+    BenchDataType *input = NULL;
+    BenchDataType *output = NULL;
+    xsd__unsignedByte* buffer = NULL;
+    if (p!=NULL)
+       url=p;
+         
+    int iResult;
+    bool bSuccess = false;
+    int     iRetryIterationCount = 1;
 
-		do
-		{
+    do
+    {
         try
         {
-                sprintf(endpoint, "%s", url);
-                ws = new AxisBench(endpoint, APTHTTP1_1);
-                int request = 1;
-      
-				input = new BenchDataType();
-				input->count = 1;
-
-			      
-    			BenchBasicDataType_Array arrayIn;
+            sprintf(endpoint, "%s", url);
+            ws = new AxisBench(endpoint, APTHTTP1_1);
+            int request = 1;
+  
+            input = new BenchDataType();
+            input->count = 1;
+                          
+            BenchBasicDataType_Array arrayIn;
 //              cout <<" About to create BenchBasicDataType"<<endl;
-                BenchBasicDataType **   ppBBDT = new BenchBasicDataType *[input->count];
-
-    			#ifdef WIN32
-	   		  	   __int64					ll = 10000;
-    		  	#else
-	       			long long				ll = 10000;
-			    #endif
-
-				// input->infos.m_Array = ppBBDT;
-
-				// input->infos.m_Size = input->count;
-			      
-				time_t tim;
-				tim = 1100246323;
-				struct tm *temp = gmtime(&tim);
-				struct tm lt;
-				memcpy(&lt, temp, sizeof(struct tm));
-                
-                char *letterA_String = stringToAscii("A");  
-                buffer = (xsd__unsignedByte*)calloc (1, input->count + 2);
+            BenchBasicDataType **   ppBBDT = new BenchBasicDataType *[input->count];
 
-                strcpy ( (char *)buffer, letterA_String);  
+            #ifdef WIN32
+                    __int64 ll = 10000;
+            #else
+                    long long ll = 10000;
+            #endif
+
+            // input->infos.m_Array = ppBBDT;
+
+            // input->infos.m_Size = input->count;
+          
+            time_t tim;
+            tim = 1100246323;
+            struct tm *temp = gmtime(&tim);
+            struct tm lt;
+            memcpy(&lt, temp, sizeof(struct tm));
+            
+            char *letterA_String = stringToAscii("A");  
+            buffer = (xsd__unsignedByte*)calloc (1, input->count + 2);
 
-			      
+            strcpy ( (char *)buffer, letterA_String);  
+                              
 //                cout <<" input->count = "<<input->count<<endl;
-    for ( int i = 0; i < input->count ; i++ ) {
-        BenchBasicDataType *type = new BenchBasicDataType();
-        type->StringType = "StringType";
-        type->IntegerType = 10*(i+1);
-        type->DoubleType = 11.111 * (i+1);
-        type->BooleanType = true_;
-        type->DateTimeType = lt ;
-        type->TimeType = lt ;
-        type->DateType = lt ;
-        type->IntType = (i+1);
-        type->ByteType = '1';
-        type->DecimalType = 10*(i+1);
-        type->FloatType = (float)((float)(11*(i+1))/(float)2.0);
-        type->LongType = ll;
-        type->QNameType = "toto";
-        type->ShortType = (i+1);
-        type->Base64BinaryType.set(buffer, i);
-        type->HexBinary.set(buffer, i);
-
-        ppBBDT[i] = type;
-
-       if( ll == 0)
-      {
-         ll = 1;
-       }
-     else
-      {
-         ll += 10000;
-      }
-
-        strcat ( (char *)buffer, letterA_String);
-    }
+            for ( int i = 0; i < input->count ; i++ ) 
+            {
+                BenchBasicDataType *type = new BenchBasicDataType();
+                type->StringType = "StringType";
+                type->IntegerType = 10*(i+1);
+                type->DoubleType = 11.111 * (i+1);
+                type->BooleanType = true_;
+                type->DateTimeType = lt ;
+                type->TimeType = lt ;
+                type->DateType = lt ;
+                type->IntType = (i+1);
+                type->ByteType = '1';
+                type->DecimalType = 10*(i+1);
+                type->FloatType = (float)((float)(11*(i+1))/(float)2.0);
+                type->LongType = ll;
+                type->QNameType = "toto";
+                type->ShortType = (i+1);
+                type->Base64BinaryType.set(buffer, i);
+                type->HexBinary.set(buffer, i);
+        
+                ppBBDT[i] = type;
+        
+                if( ll == 0)
+                  ll = 1;
+                else
+                  ll += 10000;
+        
+                strcat ( (char *)buffer, letterA_String);
+            }
 
-				arrayIn.set(ppBBDT,input->count);
-                input->setinfos(&arrayIn);    
+            arrayIn.set(ppBBDT,input->count);
+            input->setinfos(&arrayIn);    
 //                cout << "About to delete the output prior to calling the service"<<endl;
-    for ( int ii = 0; ii < request ; ii++ ) {
-        if (output) { // Samisa: memory management BP
-          int outputSize =0;
-            BenchBasicDataType ** outArray =output->infos->get(outputSize); 
-            for (int i = 0; i < outputSize; i++)
-                delete outArray[i];
-            delete output;
-            output = NULL;
-        }
+            for ( int ii = 0; ii < request ; ii++ ) 
+            {
+                if (output) 
+                {
+                    int outputSize =0;
+                    BenchBasicDataType ** outArray =output->infos->get(outputSize); 
+                    for (int i = 0; i < outputSize; i++)
+                        delete outArray[i];
+                    delete output;
+                    output = NULL;
+                }
 //                    cout << "About to do bench request"<<endl;
-				    output = ws->doBenchRequest(input);
+                output = ws->doBenchRequest(input);
 //                    cout << "Done bench request"<<endl;
-				}
+            }
 
-				free(buffer);
+            free(buffer);
 
-				if ( ws->getStatus() == AXIS_FAIL )
-					cout << "Failed" << endl;
-				else 
-				{
-					bSuccess = true;
-   	    			char dateTime[50];
-    				int i = 0;
-    			    int outputSize = 0;
-                    BenchBasicDataType ** outArray =output->infos->get(outputSize);
-                    for ( ; i < output->count ; i++ ) 
-                    {
-            		  if( outArray[i] != (BenchBasicDataType *) 0xcdcdcdcd)
-    				  {
-    					cout << " StringType " << outArray[i]->StringType << endl;
-    				  }	
-                    }
-				 
-					// returnValue=0;
-				}
-  }catch(AxisException& e)
+            if ( ws->getStatus() == AXIS_FAIL )
+                    cout << "Failed" << endl;
+            else 
+            {
+                bSuccess = true;
+                char dateTime[50];
+                int i = 0;
+                int outputSize = 0;
+                BenchBasicDataType ** outArray =output->infos->get(outputSize);
+                for ( ; i < output->count ; i++ ) 
+                {
+                      if ( outArray[i] != (BenchBasicDataType *) 0xcdcdcdcd)
+                          cout << " StringType " << outArray[i]->StringType << endl;
+                }
+                                 
+                                        // returnValue=0;
+            }
+        }
+        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)
         {
@@ -205,33 +196,32 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-  try
-  {
-	  delete ws; 
-//	  for (int i = 0; i < input->infos.m_Size; i++)
-//	      delete (BenchBasicDataType*)(input->infos.m_Array[i]);
-	  delete input;
-	  if (output)
-	  {
-//	    for (int i = 0; i < output->infos.m_Size; i++)
-//	      delete (BenchBasicDataType*)(output->infos.m_Array[i]);
-	    delete output;
-	  }
-  }
-  catch(exception& exception)
-  {
-  	cout << "Exception on clean up: " << exception.what()<<endl;
-  }
-  catch(...)
-  {
-  	cout << "Unknown exception on clean up: " << endl;
-  }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 1 && !bSuccess);
-                #ifndef WIN32
-                        pthread_exit(0);
-                #endif
-        return 0;
+        
+        try
+        {
+              delete ws; 
+              delete input;
+              if (output)
+                delete output;
+        }
+        catch(exception& exception)
+        {
+              cout << "Exception on clean up: " << exception.what()<<endl;
+        }
+        catch(...)
+        {
+              cout << "Unknown exception on clean up: " << endl;
+        }
+                
+        iRetryIterationCount--;               
+    } 
+    while( iRetryIterationCount > 1 && !bSuccess);
+  
+    #ifndef WIN32
+            pthread_exit(0);
+    #endif
+    
+    return 0;
 }
 
 
@@ -240,60 +230,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/BasicAllTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicAllTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicAllTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicAllTestClient.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,93 +24,93 @@
     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
-		{
-			AllTestSoap ws (endpoint, APTHTTP1_1);
-
-			AllComplexType* inParam = new AllComplexType();
-			inParam->IntValue = new int;
-			*(inParam->IntValue) = 5;
-			inParam->StringValue = "HELLO";
-
-			printf("\nSending.................");
-			printf("\nIntValue = %d",*(inParam->IntValue));
-			printf("\nStringValue= %s",inParam->StringValue);
-			
-			ws.setTransportProperty("SOAPAction" , "BasicAll#echoAll");
-			AllComplexType* outParam = ws.echoAll(inParam);
-
-			if (outParam != NULL)
-			{
-				printf("\n\nReceived................");
-				printf("\nIntValue = %d",*(outParam->IntValue));
-				printf("\nStringValue= %s",outParam->StringValue);
-				printf("\n\nSuccessfull\n");
-			}
-			else
-				printf("\nFault\n");
-
-			bSuccess = true;
-			delete inParam;
-			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
+                {
+                        AllTestSoap ws (endpoint, APTHTTP1_1);
+
+                        AllComplexType* inParam = new AllComplexType();
+                        inParam->IntValue = new int;
+                        *(inParam->IntValue) = 5;
+                        inParam->StringValue = "HELLO";
+
+                        printf("\nSending.................");
+                        printf("\nIntValue = %d",*(inParam->IntValue));
+                        printf("\nStringValue= %s",inParam->StringValue);
+                        
+                        ws.setTransportProperty("SOAPAction" , "BasicAll#echoAll");
+                        AllComplexType* outParam = ws.echoAll(inParam);
+
+                        if (outParam != NULL)
+                        {
+                                printf("\n\nReceived................");
+                                printf("\nIntValue = %d",*(outParam->IntValue));
+                                printf("\nStringValue= %s",outParam->StringValue);
+                                printf("\n\nSuccessfull\n");
+                        }
+                        else
+                                printf("\nFault\n");
+
+                        bSuccess = true;
+                        delete inParam;
+                        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/BasicChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicChoiceClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicChoiceClient.cpp Thu Apr 27 20:03:51 2006
@@ -7,38 +7,38 @@
 
 int main(int argc, char *argv[])
 {
-	
-	try
-	{
-	
-		const char* url="http://localhost:80/axis/BasicChoice";
-		ChoiceComplexType* Value0=new ChoiceComplexType();
-		ChoiceComplexType* Value1;
-		Value0->name0="Choice Test";
-		Value0->name1=NULL;
         
-		url = argv[1];
-		ChoiceTestSoap ws(url);
+        try
+        {
+        
+                const char* url="http://localhost:80/axis/BasicChoice";
+                ChoiceComplexType* Value0=new ChoiceComplexType();
+                ChoiceComplexType* Value1;
+                Value0->name0="Choice Test";
+                Value0->name1=NULL;
+        
+                url = argv[1];
+                ChoiceTestSoap ws(url);
 
-		cout<< "Calling the Service..."<<endl;
-		
-		Value1=ws.echoChoice(Value0);
+                cout<< "Calling the Service..."<<endl;
+                
+                Value1=ws.echoChoice(Value0);
 
-		cout<<"Value1->name0 = "<<Value1->name0<<endl;
+                cout<<"Value1->name0 = "<<Value1->name0<<endl;
 
-	}catch (AxisException & e)
+        }catch (AxisException & e)
     {
-	printf ("Exception : %s\n", e.what ());
+        printf ("Exception : %s\n", e.what ());
     }
     catch (exception & e)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
     catch (...)
     {
-	printf ("Unknown exception has occured\n");
+        printf ("Unknown exception has occured\n");
     }
-	return 0;
+        return 0;
 
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorClient.cpp Thu Apr 27 20:03:51 2006
@@ -21,116 +21,116 @@
 static void usage( char * programName, char * defaultURL)
 {
     cout << "\nUsage:\n"
-	<< programName << " [-? | div number1 number2 [service_url]]\n"
-	<< "    -?             Show this help.\n"
-	<< "    service_url    URL of the service.\n"
-	<< "    Default service URL is assumed to be " << defaultURL << endl;
+        << programName << " [-? | div number1 number2 [service_url]]\n"
+        << "    -?             Show this help.\n"
+        << "    service_url    URL of the service.\n"
+        << "    Default service URL is assumed to be " << defaultURL << endl;
 }
 
 int main( int argc, char * argv[])
 {
-    char *	pszURL = "http://localhost/axis/calculator";
+    char *      pszURL = "http://localhost/axis/calculator";
 
     // Set default service URL
 
     try
     {
-		if( argc == 1)
-		{
-			usage( argv[0], pszURL);
-	    
-			return 2;
-		}
-
-		if( argc > 1)
-		{
-			if( argv[1] == "-")
-			{
+                if( argc == 1)
+                {
+                        usage( argv[0], pszURL);
+            
+                        return 2;
+                }
+
+                if( argc > 1)
+                {
+                        if( argv[1] == "-")
+                        {
 // Check for - only so that it works for -?, -h or --help; -anything 
 
-				usage( argv[0], pszURL);
-		
-				return 2;
-			}
+                                usage( argv[0], pszURL);
+                
+                                return 2;
+                        }
 
 // Less than minimum number of args OR greater than maximum number of args
-			else if( argc < 4 || argc > 5)
-			{
-				usage( argv[0], pszURL);
-			
-				return 2;
-			}
-			else if( argc == 5)
-			{
-				pszURL = argv[4];
-			}
-		}
-
-//		cout << endl << " Using service at " << pszURL << endl << endl;
-	
-		Calculator ws( pszURL);
-
-		char *	pszOperation = argv[1];
-		char *	pValue1 = argv[2];
-		char *	pValue2 = argv[3];
-
-		if( !IsNumber( pValue1))
-		{
-			cout << "Invalid value for first <parameter> " << pValue1 << endl << endl;
+                        else if( argc < 4 || argc > 5)
+                        {
+                                usage( argv[0], pszURL);
+                        
+                                return 2;
+                        }
+                        else if( argc == 5)
+                        {
+                                pszURL = argv[4];
+                        }
+                }
+
+//              cout << endl << " Using service at " << pszURL << endl << endl;
+        
+                Calculator ws( pszURL);
+
+                char *  pszOperation = argv[1];
+                char *  pValue1 = argv[2];
+                char *  pValue2 = argv[3];
+
+                if( !IsNumber( pValue1))
+                {
+                        cout << "Invalid value for first <parameter> " << pValue1 << endl << endl;
 
             usage( argv[0], pszURL);
-	    
-			return 2;
-		}
-
-		if( !IsNumber( pValue2))
-		{
-			cout << "Invalid value for second <parameter> " << pValue2 << endl << endl;
+            
+                        return 2;
+                }
+
+                if( !IsNumber( pValue2))
+                {
+                        cout << "Invalid value for second <parameter> " << pValue2 << endl << endl;
 
             usage( argv[0], pszURL);
-	    
-			return 2;
-		}
-
-		int	iValue1 = atoi( pValue1);
-		int	iValue2 = atoi( pValue2);
-
-		if( strcmp( pszOperation, "add") == 0)
-		{
-		    cout << ws.add( iValue1, iValue2) << endl;
-		}
-		else if( strcmp( pszOperation, "sub") == 0)
-		{
-		    cout << ws.sub( iValue1, iValue2) << endl;
-		}
-		else if( strcmp( pszOperation, "mul") == 0)
-		{
-		    cout << ws.mul( iValue1, iValue2) << endl;
-		}
-		else if( strcmp( pszOperation, "div") == 0)
-		{
-		    cout << ws.div( iValue1, iValue2) << endl;
-		}
-		else
-		{
-		    cout << "Invalid operation " << pszOperation << endl << endl;
+            
+                        return 2;
+                }
+
+                int     iValue1 = atoi( pValue1);
+                int     iValue2 = atoi( pValue2);
+
+                if( strcmp( pszOperation, "add") == 0)
+                {
+                    cout << ws.add( iValue1, iValue2) << endl;
+                }
+                else if( strcmp( pszOperation, "sub") == 0)
+                {
+                    cout << ws.sub( iValue1, iValue2) << endl;
+                }
+                else if( strcmp( pszOperation, "mul") == 0)
+                {
+                    cout << ws.mul( iValue1, iValue2) << endl;
+                }
+                else if( strcmp( pszOperation, "div") == 0)
+                {
+                    cout << ws.div( iValue1, iValue2) << endl;
+                }
+                else
+                {
+                    cout << "Invalid operation " << pszOperation << endl << endl;
 
-			usage( argv[0], pszURL);
+                        usage( argv[0], pszURL);
 
-			return 2;
-		}
+                        return 2;
+                }
     }
     catch (AxisException & e)
     {
-		cout << "Exception : " << e.what () << endl;
+                cout << "Exception : " << e.what () << endl;
     }
     catch (exception & e)
     {
-		cout << "Unknown exception has occurred : " << e.what () << endl;
+                cout << "Unknown exception has occurred : " << e.what () << endl;
     }
     catch (...)
     {
-		cout << "Unknown exception has occurred" << endl;
+                cout << "Unknown exception has occurred" << endl;
     }
 
     return 0;
@@ -140,10 +140,10 @@
 {
     for( int x = 0; x < (int) strlen( p); x++)
     {
-		if( !isdigit( p[x]))
-		{
-			return false;
-		}
+                if( !isdigit( p[x]))
+                {
+                        return false;
+                }
     }
 
     return true;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocClient.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 "Calculator.hpp"
 #include <axis/AxisException.hpp>
 #include <ctype.h>
@@ -25,96 +34,90 @@
 
 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);
-		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);
+            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<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        iRetryIterationCount--;
+    }
+    while( iRetryIterationCount > 0 && !bSuccess);
+
+    cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+
+    return 0;
 }
 
 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/CalculatorDocManyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocManyClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocManyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocManyClient.cpp Thu Apr 27 20:03:51 2006
@@ -25,165 +25,165 @@
 
 typedef enum
 {
-	eAdd,
-	eSub,
-	eMul,
-	eDiv
+        eAdd,
+        eSub,
+        eMul,
+        eDiv
 } EOPERATION;
 
 int main( int argc, char * argv[])
 {
-	char *		pURL = "http://localhost:80/axis/Calculator";
-	char *		pOpList[] = {"add", "sub", "mul", "div", "*"};
-	int			iValue1List[] = {2,  5,  23, 5879, 123,  76, 94, 3987, 432, 65, 0};
-	int			iValue2List[] = {3, 99, 243,    8, 987, 987, 45,  908, -45,  0};
-	int			iResult;
-	int			iIndex_Value1List = 0;
-	int			iIndex_Value2List = 0;
-	EOPERATION	eOperation = eAdd;
-	bool		bSuccess = false;
-	int			iRetryIterationCount = 3;
-	char		cSign;
-	int			iIterationCount = 20000;
-	int			iIteration;
-
-	signal( SIGILL, sig_handler);
-	signal( SIGABRT, sig_handler);
-	signal( SIGSEGV, sig_handler);
-	signal( SIGFPE, sig_handler);
-
-	if( argc > 0)
-	{
-		pURL = argv[1];
-	}
-
-	do
-	{
-		try
-		{
-			Calculator	ws( pURL);
-
-			cout << "Invoke the same web service method " << iIterationCount << " times without closing the connection." << endl;
-
-			for( iIteration = 0; iIteration < iIterationCount; iIteration++)
-			{
-				switch( eOperation)
-				{
-					case eAdd:
-					{
-						iResult = ws.add( iValue1List[iIndex_Value1List],
-										  iValue2List[iIndex_Value2List]);
-						cSign = '+';
-						eOperation = eSub;
-						break;
-					}
-
-					case eSub:
-					{
-						iResult = ws.sub( iValue1List[iIndex_Value1List],
-										  iValue2List[iIndex_Value2List]);
-						cSign = '-';
-						eOperation = eMul;
-						break;
-					}
-
-					case eMul:
-					{
-						iResult = ws.mul( iValue1List[iIndex_Value1List],
-										  iValue2List[iIndex_Value2List]);
-						cSign = '*';
-						eOperation = eDiv;
-						break;
-					}
-
-					case eDiv:
-					{
-						iResult = ws.div( iValue1List[iIndex_Value1List],
-										  iValue2List[iIndex_Value2List]);
-						cSign = '/';
-						eOperation = eAdd;
-						break;
-					}
-				}
-
-				if( iIteration == iIterationCount / 4)
-				{
-					cout << "Quarter of the way there!" << endl;
-				}
-				else if( iIteration == iIterationCount / 2)
-				{
-					cout << "Half of the way there!" << endl;
-				}
-				else if( iIteration == (3 * iIterationCount) / 4)
-				{
-					cout << "Three quarters of the way there!" << endl;
-				}
-				else if( iIteration == iIterationCount - 1)
-				{
-					cout << "All the way there!" << endl;
-
-					bSuccess = true;
-				}
-
-				if( iValue1List[++iIndex_Value1List] == 0)
-				{
-					iIndex_Value1List = 0;
-				}
-
-				if( iValue2List[++iIndex_Value2List] == 0)
-				{
-					iIndex_Value2List = 0;
-				}
-			}
-		}
-		catch( AxisException& e)
-		{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 1)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        char *          pURL = "http://localhost:80/axis/Calculator";
+        char *          pOpList[] = {"add", "sub", "mul", "div", "*"};
+        int                     iValue1List[] = {2,  5,  23, 5879, 123,  76, 94, 3987, 432, 65, 0};
+        int                     iValue2List[] = {3, 99, 243,    8, 987, 987, 45,  908, -45,  0};
+        int                     iResult;
+        int                     iIndex_Value1List = 0;
+        int                     iIndex_Value2List = 0;
+        EOPERATION      eOperation = eAdd;
+        bool            bSuccess = false;
+        int                     iRetryIterationCount = 3;
+        char            cSign;
+        int                     iIterationCount = 20000;
+        int                     iIteration;
+
+        signal( SIGILL, sig_handler);
+        signal( SIGABRT, sig_handler);
+        signal( SIGSEGV, sig_handler);
+        signal( SIGFPE, sig_handler);
+
+        if( argc > 0)
+        {
+                pURL = argv[1];
+        }
+
+        do
+        {
+                try
+                {
+                        Calculator      ws( pURL);
+
+                        cout << "Invoke the same web service method " << iIterationCount << " times without closing the connection." << endl;
+
+                        for( iIteration = 0; iIteration < iIterationCount; iIteration++)
+                        {
+                                switch( eOperation)
+                                {
+                                        case eAdd:
+                                        {
+                                                iResult = ws.add( iValue1List[iIndex_Value1List],
+                                                                                  iValue2List[iIndex_Value2List]);
+                                                cSign = '+';
+                                                eOperation = eSub;
+                                                break;
+                                        }
+
+                                        case eSub:
+                                        {
+                                                iResult = ws.sub( iValue1List[iIndex_Value1List],
+                                                                                  iValue2List[iIndex_Value2List]);
+                                                cSign = '-';
+                                                eOperation = eMul;
+                                                break;
+                                        }
+
+                                        case eMul:
+                                        {
+                                                iResult = ws.mul( iValue1List[iIndex_Value1List],
+                                                                                  iValue2List[iIndex_Value2List]);
+                                                cSign = '*';
+                                                eOperation = eDiv;
+                                                break;
+                                        }
+
+                                        case eDiv:
+                                        {
+                                                iResult = ws.div( iValue1List[iIndex_Value1List],
+                                                                                  iValue2List[iIndex_Value2List]);
+                                                cSign = '/';
+                                                eOperation = eAdd;
+                                                break;
+                                        }
+                                }
+
+                                if( iIteration == iIterationCount / 4)
+                                {
+                                        cout << "Quarter of the way there!" << endl;
+                                }
+                                else if( iIteration == iIterationCount / 2)
+                                {
+                                        cout << "Half of the way there!" << endl;
+                                }
+                                else if( iIteration == (3 * iIterationCount) / 4)
+                                {
+                                        cout << "Three quarters of the way there!" << endl;
+                                }
+                                else if( iIteration == iIterationCount - 1)
+                                {
+                                        cout << "All the way there!" << endl;
+
+                                        bSuccess = true;
+                                }
+
+                                if( iValue1List[++iIndex_Value1List] == 0)
+                                {
+                                        iIndex_Value1List = 0;
+                                }
+
+                                if( iValue2List[++iIndex_Value2List] == 0)
+                                {
+                                        iIndex_Value2List = 0;
+                                }
+                        }
+                }
+                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 << "Exception has occured:" << e.what() << endl;
-		}
-		catch(...)
-		{
-			cout << "Unknown exception has occured" << endl;
-		}
-
-		if( !bSuccess)
-		{
-			iRetryIterationCount--;
-
-			cout << "Iteration: " << iIteration << " " << iValue1List[iIndex_Value1List] << cSign << iValue2List[iIndex_Value2List] << "=" << iResult << endl;
-		}
-
-	} while( iRetryIterationCount > 0 && !bSuccess);
-
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+                }
+                catch( exception& e)
+                {
+                        cout << "Exception has occured:" << e.what() << endl;
+                }
+                catch(...)
+                {
+                        cout << "Unknown exception has occured" << endl;
+                }
+
+                if( !bSuccess)
+                {
+                        iRetryIterationCount--;
+
+                        cout << "Iteration: " << iIteration << " " << iValue1List[iIndex_Value1List] << cSign << iValue2List[iIndex_Value2List] << "=" << iResult << endl;
+                }
+
+        } while( iRetryIterationCount > 0 && !bSuccess);
+
+        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/CalculatorDocProgConfigClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocProgConfigClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocProgConfigClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocProgConfigClient.cpp Thu Apr 27 20:03:51 2006
@@ -26,202 +26,202 @@
 
 int main( int argc, char* argv[])
 {
-	char			endpoint[256];
-	char *			url = "http://localhost:80/axis/Calculator";
-	char *			libhome = NULL;
-	char			parserlocation[255];
-	char			httptransportlocation[255];
-	char			httpchannellocation[255];
-	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);
+        char                    endpoint[256];
+        char *                  url = "http://localhost:80/axis/Calculator";
+        char *                  libhome = NULL;
+        char                    parserlocation[255];
+        char                    httptransportlocation[255];
+        char                    httpchannellocation[255];
+        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);
             
-			AxisCPPConfigDefaults	config;
-			char *					installdir = NULL;
+                        AxisCPPConfigDefaults   config;
+                        char *                                  installdir = NULL;
 
-			if( (installdir = getenv( "INSTALLDIR")) == NULL)
-			{
-				cout << "Error - Environment variable 'INSTALLDIR' has not been set." << endl;
+                        if( (installdir = getenv( "INSTALLDIR")) == NULL)
+                        {
+                                cout << "Error - Environment variable 'INSTALLDIR' has not been set." << endl;
 
-				installdir = getenv( "AXISCPP_DEPLOY");
-			}
+                                installdir = getenv( "AXISCPP_DEPLOY");
+                        }
 
-			config.setAxisHome( installdir);
-			config.setClientLog( "Client.taw");
-			
-			char	wsddfile[255];
-			
-			sprintf( wsddfile, "%s/%s", installdir, "ClientFile.wsdd");
+                        config.setAxisHome( installdir);
+                        config.setClientLog( "Client.taw");
+                        
+                        char    wsddfile[255];
+                        
+                        sprintf( wsddfile, "%s/%s", installdir, "ClientFile.wsdd");
 
-			config.setClientWSDDFile( wsddfile);
+                        config.setClientWSDDFile( wsddfile);
 
-			if( (libhome = getenv( "LIBHOME")) == NULL)
-			{
-				cout << "Error - Environment variable 'LIBHOME' has not been set." << endl;
+                        if( (libhome = getenv( "LIBHOME")) == NULL)
+                        {
+                                cout << "Error - Environment variable 'LIBHOME' has not been set." << endl;
 
-				libhome = new char[ strlen( installdir) + 10];
+                                libhome = new char[ strlen( installdir) + 10];
 
-				sprintf( libhome, "%s/obj/bin", installdir);
-			}
+                                sprintf( libhome, "%s/obj/bin", installdir);
+                        }
 
 #if defined WIN32
-			sprintf( parserlocation,       "%s/%s", libhome, "AxisXMLParser.dll");
-			sprintf( httptransportlocation,"%s/%s", libhome, "HTTPTransport.dll");
-			sprintf( httpchannellocation,  "%s/%s", libhome, "HTTPChannel.dll");
-
-			config.setXMLParserLibrary( parserlocation);
-			config.setHTTPTransportLibrary( httptransportlocation);
-			config.setHTTPChannelLibrary( httpchannellocation);
+                        sprintf( parserlocation,       "%s/%s", libhome, "AxisXMLParser.dll");
+                        sprintf( httptransportlocation,"%s/%s", libhome, "HTTPTransport.dll");
+                        sprintf( httpchannellocation,  "%s/%s", libhome, "HTTPChannel.dll");
+
+                        config.setXMLParserLibrary( parserlocation);
+                        config.setHTTPTransportLibrary( httptransportlocation);
+                        config.setHTTPChannelLibrary( httpchannellocation);
 #elif defined AIX
-			sprintf( parserlocation,        "%s/%s", libhome, "libaxis_xmlparser.a");
-			sprintf( httptransportlocation, "%s/%s", libhome, "libhttp_transport.a");
-			sprintf( httpchannellocation,   "%s/%s", libhome, "libhttp_channel.a");
-
-			config.setXMLParserLibrary( parserlocation);
-			config.setHTTPTransportLibrary( httptransportlocation);
-			config.setHTTPChannelLibrary( httpchannellocation);
+                        sprintf( parserlocation,        "%s/%s", libhome, "libaxis_xmlparser.a");
+                        sprintf( httptransportlocation, "%s/%s", libhome, "libhttp_transport.a");
+                        sprintf( httpchannellocation,   "%s/%s", libhome, "libhttp_channel.a");
+
+                        config.setXMLParserLibrary( parserlocation);
+                        config.setHTTPTransportLibrary( httptransportlocation);
+                        config.setHTTPChannelLibrary( httpchannellocation);
 #else
-			sprintf( parserlocation,        "%s/%s", libhome, "libaxis_xmlparser.so");
-			sprintf( httptransportlocation, "%s/%s", libhome, "libhttp_transport.so");
-			sprintf( httpchannellocation,   "%s/%s", libhome, "libhttp_channel.so");
-
-			config.setXMLParserLibrary( parserlocation);
-			config.setHTTPTransportLibrary( httptransportlocation);
-			config.setHTTPChannelLibrary( httpchannellocation);
+                        sprintf( parserlocation,        "%s/%s", libhome, "libaxis_xmlparser.so");
+                        sprintf( httptransportlocation, "%s/%s", libhome, "libhttp_transport.so");
+                        sprintf( httpchannellocation,   "%s/%s", libhome, "libhttp_channel.so");
+
+                        config.setXMLParserLibrary( parserlocation);
+                        config.setHTTPTransportLibrary( httptransportlocation);
+                        config.setHTTPChannelLibrary( httpchannellocation);
 #endif
 
-			config.apply();
-//				axishome = config.getAxisHome();
-//				cout << "Axis Home = " << axishome << endl;
-
-			char *	wsddfile1 = NULL;
-
-			wsddfile1 = config.getClientWSDDFile();
-
-			cout << "Client Log file name = " << config.getClientLog() << endl;
-
-			if( strcmp( parserlocation, config.getXMLParserLibrary()) == 0)
-			{
-				cout << "XML Parser is  matched" << endl;
-			}
-			else
-			{ 
-				cout << "XML parser is not matched" << endl;
-			}
-	
-			if( strcmp( httptransportlocation, config.getHTTPTransportLibrary()) == 0)
-			{
-				cout << "HTTP Transport is matched" << endl;
-			}
-			else
-			{
-				cout << "HTTP Transport is not matched" << endl;
-			}
-
-			if( strcmp( httpchannellocation, config.getHTTPChannelLibrary()) == 0)
-			{
-				cout << "HTTP Channel lib is matched" << endl;
-			}
-			else
-			{
-				cout << "HTTP Channel is not matched" << endl;
-			}
-
-			Calculator ws( endpoint);
-
-			char *	op = "add";
-			int		i1 = 2;
-			int		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 > 1)
-				{
-					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;
+                        config.apply();
+//                              axishome = config.getAxisHome();
+//                              cout << "Axis Home = " << axishome << endl;
+
+                        char *  wsddfile1 = NULL;
+
+                        wsddfile1 = config.getClientWSDDFile();
+
+                        cout << "Client Log file name = " << config.getClientLog() << endl;
+
+                        if( strcmp( parserlocation, config.getXMLParserLibrary()) == 0)
+                        {
+                                cout << "XML Parser is  matched" << endl;
+                        }
+                        else
+                        { 
+                                cout << "XML parser is not matched" << endl;
+                        }
+        
+                        if( strcmp( httptransportlocation, config.getHTTPTransportLibrary()) == 0)
+                        {
+                                cout << "HTTP Transport is matched" << endl;
+                        }
+                        else
+                        {
+                                cout << "HTTP Transport is not matched" << endl;
+                        }
+
+                        if( strcmp( httpchannellocation, config.getHTTPChannelLibrary()) == 0)
+                        {
+                                cout << "HTTP Channel lib is matched" << endl;
+                        }
+                        else
+                        {
+                                cout << "HTTP Channel is not matched" << endl;
+                        }
+
+                        Calculator ws( endpoint);
+
+                        char *  op = "add";
+                        int             i1 = 2;
+                        int             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 > 1)
+                                {
+                                        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;
+        return 0;
 }
 
 void PrintUsage()
 {
-	cout << "Usage :" << endl << "Calculator <url>" << endl << endl;
+        cout << "Usage :" << endl << "Calculator <url>" << endl << endl;
 
-	exit( 1);
+        exit( 1);
 }
 
 bool IsNumber( const char * p)
 {
-	for( int x = 0; x < (int) strlen( p); x++)
-	{
-		if( !isdigit( p[x]))
-		{
-			return false;
-		}
-	}
+        for( int x = 0; x < (int) strlen( p); x++)
+        {
+                if( !isdigit( p[x]))
+                {
+                        return false;
+                }
+        }
 
-	return true;
+        return true;
 }
 
 void sig_handler( int sig)
 {
-	signal( sig, sig_handler);
+        signal( sig, sig_handler);
 
     cout << "SIGNAL RECEIVED " << sig << endl;
-	
-	exit( 1);
+        
+        exit( 1);
 }