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 [6/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/FaultMappingRepeatedDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingRepeatedDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingRepeatedDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingRepeatedDocClient.cpp Thu Apr 27 20:03:51 2006
@@ -24,137 +24,137 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* server="localhost";
-	const char* url="http://localhost:80/axis/MathOps";
-	const char* port="80";
-	const char* op = 0;
-	const char* p1 = 0;
-	const char* p2 = 0;
-	int i1=0, i2=0;
-	int iResult;
-	char* pcDetail;
-
-	signal(SIGILL, sig_handler);
-	signal(SIGABRT, sig_handler);
-	signal(SIGSEGV, sig_handler);
-	//signal(SIGQUIT, sig_handler);
-	//signal(SIGBUS, sig_handler);
-	signal(SIGFPE, sig_handler);
-
-	url = argv[1];
-
-	sprintf(endpoint, "%s", url);
-
-	op = "div";
-
-	if (strcmp(op, "div") == 0)
-	{
-		// This test creates the service once and once only. It then repeatedly calls the operation on the service
-		MathOps ws(endpoint);
-	    for(int i = 0; i < 4; i++)
-	    {
+        char endpoint[256];
+        const char* server="localhost";
+        const char* url="http://localhost:80/axis/MathOps";
+        const char* port="80";
+        const char* op = 0;
+        const char* p1 = 0;
+        const char* p2 = 0;
+        int i1=0, i2=0;
+        int iResult;
+        char* pcDetail;
+
+        signal(SIGILL, sig_handler);
+        signal(SIGABRT, sig_handler);
+        signal(SIGSEGV, sig_handler);
+        //signal(SIGQUIT, sig_handler);
+        //signal(SIGBUS, sig_handler);
+        signal(SIGFPE, sig_handler);
+
+        url = argv[1];
+
+        sprintf(endpoint, "%s", url);
+
+        op = "div";
+
+        if (strcmp(op, "div") == 0)
+        {
+                // This test creates the service once and once only. It then repeatedly calls the operation on the service
+                MathOps ws(endpoint);
+            for(int i = 0; i < 4; i++)
+            {
             cout << i << endl;
 
-			switch(i)
-			{
-				case 0: i1 = 10; i2 = 5; break;
-				case 1: i1 = 10; i2 = 0; break;
-				case 2: i1 = 1000; i2 = 5; break;
-				case 3: i1 = 10; i2 = -5; break;
-			}
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-			try
-			{
-				cout << "Trying to " << op << " " << i1 << " by " << i2 << endl;
-				iResult = ws.div(i1, i2);		
-				cout << "Result is " << iResult << endl;
-				bSuccess = true;
-			}
-			catch(DivByZeroStruct& dbzs)
-			{
-				cout << "DivByZeroStruct Fault: \"" 
-					<< dbzs.varString 
-					<< "\", " 
-					<< dbzs.varInt 
-					<< ", " 
-					<< dbzs.varFloat 
-					<< endl; 
-				bSuccess = true;
-			}
-			catch(SpecialDetailStruct& sds)
-			{
-				cout << "SpecialDetailStruct Fault: \"" 
-					<< sds.varString 
-					<< "\"" 
-					<< endl;
-				bSuccess = true;
-			}
-			catch(OutOfBoundStruct& oobs)
-			{
-				cout << "OutOfBoundStruct Fault: \"" 
-					<< oobs.varString 
-					<< "\", " 
-					<< oobs.varInt 
-					<< ", \"" 
-					<< oobs.specialDetail->varString 
-					<< "\"" 
-					<< endl;
-				bSuccess = true;
-			}
-			catch(SoapFaultException& sfe)
-			{
-				cout << "SoapFaultException: " << sfe.what() << endl;
-			}
-			catch(AxisException& e)
-			{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        switch(i)
+                        {
+                                case 0: i1 = 10; i2 = 5; break;
+                                case 1: i1 = 10; i2 = 0; break;
+                                case 2: i1 = 1000; i2 = 5; break;
+                                case 3: i1 = 10; i2 = -5; break;
+                        }
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+                        try
+                        {
+                                cout << "Trying to " << op << " " << i1 << " by " << i2 << endl;
+                                iResult = ws.div(i1, i2);               
+                                cout << "Result is " << iResult << endl;
+                                bSuccess = true;
+                        }
+                        catch(DivByZeroStruct& dbzs)
+                        {
+                                cout << "DivByZeroStruct Fault: \"" 
+                                        << dbzs.varString 
+                                        << "\", " 
+                                        << dbzs.varInt 
+                                        << ", " 
+                                        << dbzs.varFloat 
+                                        << endl; 
+                                bSuccess = true;
+                        }
+                        catch(SpecialDetailStruct& sds)
+                        {
+                                cout << "SpecialDetailStruct Fault: \"" 
+                                        << sds.varString 
+                                        << "\"" 
+                                        << endl;
+                                bSuccess = true;
+                        }
+                        catch(OutOfBoundStruct& oobs)
+                        {
+                                cout << "OutOfBoundStruct Fault: \"" 
+                                        << oobs.varString 
+                                        << "\", " 
+                                        << oobs.varInt 
+                                        << ", \"" 
+                                        << oobs.specialDetail->varString 
+                                        << "\"" 
+                                        << endl;
+                                bSuccess = true;
+                        }
+                        catch(SoapFaultException& sfe)
+                        {
+                                cout << "SoapFaultException: " << sfe.what() << endl;
+                        }
+                        catch(AxisException& e)
+                        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "AxisException : " << e.what() << endl;
-			}
-			}
-			catch(exception& e)
-			{
+                        {
+                                cout << "AxisException : " << e.what() << endl;
+                        }
+                        }
+                        catch(exception& e)
+                        {
                 cout << "Unknown Exception: " << endl;
-			}
-			catch(...)
-			{
+                        }
+                        catch(...)
+                        {
                 cout << "Unspecified Exception: " << endl;
-			}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	    }
-	}
-	else 
-	{
-		cout << "Invalid operation " << op << endl;
-	}
-	cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+            }
+        }
+        else 
+        {
+                cout << "Invalid operation " << op << endl;
+        }
+        cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }
 
 void sig_handler(int sig) {
-	signal(sig, sig_handler);
+        signal(sig, sig_handler);
     cout << "SIGNAL RECEIVED " << sig << endl;
-	exit(1);
+        exit(1);
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FourLevelTestDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FourLevelTestDocClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FourLevelTestDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FourLevelTestDocClient.cpp Thu Apr 27 20:03:51 2006
@@ -25,89 +25,89 @@
 
 int main(int argc, char* argv[])
 {
-	int x;
-	char buffer1[100];
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/fourLevelTestDoc";
-	const char* server="localhost";
-	const char* port="80";
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		FourLevelTestDocInterface ws(endpoint);
-
-		FourthLevelElemType* fourth = new FourthLevelElemType();
-		fourth->SampleString = strdup("abc");
-		fourth->SampleInt = 1;
-
-		FourthLevelElemType_Array* fourth_array = new FourthLevelElemType_Array();
-		fourth_array->m_Array = fourth;
-		fourth_array->m_Size = 1;
-
-		ThirdLevelElemType* third = new ThirdLevelElemType();
-		third->FourthLevelElem = *fourth_array;
-
-		ThirdLevelElemType_Array* third_array = new ThirdLevelElemType_Array();
-		third_array->m_Array = third;
-		third_array->m_Size = 1;
-
-		SecondLevelElemType* second = new SecondLevelElemType();
-		second->ThirdLevelElem = *third_array;
-
-		SecondLevelElemType_Array* second_array = new SecondLevelElemType_Array();
-		second_array->m_Array = second;
-		second_array->m_Size = 1;
-
-
-//		SecondLevelElemType_Array in_array = new SecondLevelElemType_Array();
-//		in_array.m_Array = second_arr;
-//		in_array.m_Size = 1;
-		
-		SecondLevelElemType_Array out_array;
-
-		out_array = ws.RetrieveTestDoc(*second_array);
-
-		printf("Size = %d\n", out_array.m_Size);
-		printf("String = %s\n", out_array.m_Array->ThirdLevelElem.m_Array->FourthLevelElem.m_Array->SampleString);
-
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+        int x;
+        char buffer1[100];
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/fourLevelTestDoc";
+        const char* server="localhost";
+        const char* port="80";
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                FourLevelTestDocInterface ws(endpoint);
+
+                FourthLevelElemType* fourth = new FourthLevelElemType();
+                fourth->SampleString = strdup("abc");
+                fourth->SampleInt = 1;
+
+                FourthLevelElemType_Array* fourth_array = new FourthLevelElemType_Array();
+                fourth_array->m_Array = fourth;
+                fourth_array->m_Size = 1;
+
+                ThirdLevelElemType* third = new ThirdLevelElemType();
+                third->FourthLevelElem = *fourth_array;
+
+                ThirdLevelElemType_Array* third_array = new ThirdLevelElemType_Array();
+                third_array->m_Array = third;
+                third_array->m_Size = 1;
+
+                SecondLevelElemType* second = new SecondLevelElemType();
+                second->ThirdLevelElem = *third_array;
+
+                SecondLevelElemType_Array* second_array = new SecondLevelElemType_Array();
+                second_array->m_Array = second;
+                second_array->m_Size = 1;
+
+
+//              SecondLevelElemType_Array in_array = new SecondLevelElemType_Array();
+//              in_array.m_Array = second_arr;
+//              in_array.m_Size = 1;
+                
+                SecondLevelElemType_Array out_array;
+
+                out_array = ws.RetrieveTestDoc(*second_array);
+
+                printf("Size = %d\n", out_array.m_Size);
+                printf("String = %s\n", out_array.m_Array->ThirdLevelElem.m_Array->FourthLevelElem.m_Array->SampleString);
+
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    printf("Unknown exception has occured\n");
-	}
-	catch(...)
-	{
-	    printf("Unknown exception has occured\n");
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            printf("Unknown exception has occured\n");
+        }
+        catch(...)
+        {
+            printf("Unknown exception has occured\n");
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/General_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/General_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/General_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/General_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -40,8 +40,8 @@
 /* Defining a structure to pass arguments to entry point function */
 
 struct ARG_LIST{
-	char url[200];
-	char op[4];
+        char url[200];
+        char op[4];
 };
 
 //#define MACRO_NUM_THREADS 10
@@ -57,31 +57,31 @@
         ARG_LIST *p=(ARG_LIST *)Param;
         char endpoint[256];
         const char* url="http://puppet.in.ibm.com:9060/Calculator/services/Calculator";
-		char *op;
-		if(p!=NULL){
+                char *op;
+                if(p!=NULL){
              url=p->url;
-			 op=p->op;
-		}
+                         op=p->op;
+                }
     
         try
-		{
+                {
                 sprintf(endpoint, "%s", url);
-                Calculator ws(endpoint);				
-				if(strcmp(op,"add")==0){
+                Calculator ws(endpoint);                                
+                                if(strcmp(op,"add")==0){
                   if(ws.add(3,2)==5)
-					  cout << "successful" << endl;
-				}else if(strcmp(op,"mul")==0){
-				   if(ws.mul(3,2)==6)
-					   cout << "successful" << endl;
-				}else if(strcmp(op,"sub")==0){
-				   if(ws.sub(3,2)==1)
-					   cout << "successful" << endl;				   			
-		        }else if(strcmp(op,"div")==0){
-				   if(ws.div(4,2)==2)
-					   cout << "successful" << endl;
-			   }		
+                                          cout << "successful" << endl;
+                                }else if(strcmp(op,"mul")==0){
+                                   if(ws.mul(3,2)==6)
+                                           cout << "successful" << endl;
+                                }else if(strcmp(op,"sub")==0){
+                                   if(ws.sub(3,2)==1)
+                                           cout << "successful" << endl;                                                        
+                        }else if(strcmp(op,"div")==0){
+                                   if(ws.div(4,2)==2)
+                                           cout << "successful" << endl;
+                           }            
 
-		}catch(AxisException& e)
+                }catch(AxisException& e)
         {
             cout << "Exception : " << e.what() << endl;
         }
@@ -105,70 +105,70 @@
 int main(int argc, char *argv[])
 {
     Axis::initialize(false);
-	try{
-		 int i;
-		 ARG_LIST a;
-		 /* Copying url to argument list */
-		 strcpy(a.url,argv[1]);
-		 char actions[4][4]={"add","sub","div","mul"};
-		 #ifdef WIN32
-			/*Windows specific code comes here */
-			HANDLE hThread[NUM_THREADS];
-			for(i=0;i<NUM_THREADS;i++){
-				   /* Copying operation name to argument list */
-					strcpy(a.op,actions[i%4]);
-					DWORD dwThreadId;
-					//LPVOID dwThrdParam = LPVOID(argv[1]);
-					hThread[i] = CreateThread(
-											NULL,                        // no security attributes
-											0,                           // use default stack size
-											ThreadFunc,                  // thread function
-											LPVOID(&a),               //LPVOID(argv[1]),             // argument to thread function
-											0,   
-										&dwThreadId);              // returns the thread identifier
-
-			if (hThread[i] == NULL)
-			{
-			cout<<"Thread creation Failed";
-			}
-			Sleep(500);
-			}
-			/* 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;
+                 ARG_LIST a;
+                 /* Copying url to argument list */
+                 strcpy(a.url,argv[1]);
+                 char actions[4][4]={"add","sub","div","mul"};
+                 #ifdef WIN32
+                        /*Windows specific code comes here */
+                        HANDLE hThread[NUM_THREADS];
+                        for(i=0;i<NUM_THREADS;i++){
+                                   /* Copying operation name to argument list */
+                                        strcpy(a.op,actions[i%4]);
+                                        DWORD dwThreadId;
+                                        //LPVOID dwThrdParam = LPVOID(argv[1]);
+                                        hThread[i] = CreateThread(
+                                                                                        NULL,                        // no security attributes
+                                                                                        0,                           // use default stack size
+                                                                                        ThreadFunc,                  // thread function
+                                                                                        LPVOID(&a),               //LPVOID(argv[1]),             // argument to thread function
+                                                                                        0,   
+                                                                                &dwThreadId);              // returns the thread identifier
+
+                        if (hThread[i] == NULL)
+                        {
+                        cout<<"Thread creation Failed";
+                        }
+                        Sleep(500);
+                        }
+                        /* 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++)
-			{			
-				 /* Copying operation name to argument list */
-				strcpy(a.op,actions[t%4]);
-				/*Creating threads */
-				rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)(&a));
-				if (rc)
-				{
-					cout<<"Thread Creation Failed";
-				}
-				sleep(1);
-			}
-		//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++)
+                        {                       
+                                 /* Copying operation name to argument list */
+                                strcpy(a.op,actions[t%4]);
+                                /*Creating threads */
+                                rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)(&a));
+                                if (rc)
+                                {
+                                        cout<<"Thread Creation Failed";
+                                }
+                                sleep(1);
+                        }
+                //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/HiddenMessageParts.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/HiddenMessageParts.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/HiddenMessageParts.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/HiddenMessageParts.cpp Thu Apr 27 20:03:51 2006
@@ -15,12 +15,12 @@
     char *endpoint = WSDL_DEFAULT_ENDPOINT;
     bool endpoint_set = parse_args(&argc, argv, &endpoint); 
     
-    int returnValue = 1;	// Assume Failure
+    int returnValue = 1;        // Assume Failure
 
-	bool bSuccess = false;
+        bool bSuccess = false;
     PruebasBugPortType* ws;
-		try
-		{
+                try
+                {
             if(endpoint_set) 
             {
               ws = new PruebasBugPortType(endpoint, APTHTTP1_1);
@@ -39,29 +39,29 @@
             cout <<"Sending................." << endl;
             xsd__int returnVal = ws->AbySend(data);
             cout << "result = "<<returnVal<<endl;
-			
-			bSuccess = true;
-			delete data;
-		}
-		catch (AxisException & e)
-		{
-			bool bSilent = false;
+                        
+                        bSuccess = true;
+                        delete data;
+                }
+                catch (AxisException & e)
+                {
+                        bool bSilent = false;
 
-			cout << "AxisException : " << e.what() << endl;
-		}
-		catch (exception & e)
-		{
-			cout << "Unexpected exception : " << e.what() << endl;
-		}	
-		catch (...)
-		{
-			cout << "Unknown Exception occured." << endl;
-		}
+                        cout << "AxisException : " << e.what() << endl;
+                }
+                catch (exception & e)
+                {
+                        cout << "Unexpected exception : " << e.what() << endl;
+                }       
+                catch (...)
+                {
+                        cout << "Unknown Exception occured." << endl;
+                }
 
 
     cout <<
-	"---------------------- TEST COMPLETE -----------------------------"
-	<< endl;
+        "---------------------- TEST COMPLETE -----------------------------"
+        << endl;
 
     return returnValue;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest1Client.cpp Thu Apr 27 20:03:51 2006
@@ -24,73 +24,73 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		const char *name="Name";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
-		IAttribute *attr=phb->createAttribute("NAME","ns","AXIS");
-		cout << attr->setLocalName(NULL)<<endl;
-		cout << attr->setLocalName(name)<<endl;
-		BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
-		IAttribute *attr1=bn->createAttribute("TYPE","Open Source");
-		attr1->setLocalName("Type");
-		cout << "Header Attribute Name = " << attr->getLocalName()<< endl ;
-		cout << "Child Node Attribute Name = " << attr1->getLocalName() << endl;
-		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;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                const char *name="Name";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
+                IAttribute *attr=phb->createAttribute("NAME","ns","AXIS");
+                cout << attr->setLocalName(NULL)<<endl;
+                cout << attr->setLocalName(name)<<endl;
+                BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
+                IAttribute *attr1=bn->createAttribute("TYPE","Open Source");
+                attr1->setLocalName("Type");
+                cout << "Header Attribute Name = " << attr->getLocalName()<< endl ;
+                cout << "Child Node Attribute Name = " << attr1->getLocalName() << endl;
+                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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------" << endl;    
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest2Client.cpp Thu Apr 27 20:03:51 2006
@@ -25,75 +25,75 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		const char *prefix="nsp";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","nsp");
-		IAttribute *attr1=phb->createAttribute("Name","ns","AXIS");
-		/* Tests for NULL Value */
-		cout<<attr1->setPrefix(NULL)<<endl;
-		cout<<attr1->setPrefix(prefix)<<endl;
-		BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
-		IAttribute *attr2=bn->createAttribute("TYPE","Open Source");
-		/* Tests for non declared namespace prefix */
-		cout<<attr2->setPrefix("nd")<<endl;
-		cout << "Header Attribute Prefix = " << attr1->getPrefix()<<endl;
-		cout << "Child Node Attribute Prefix = " << attr2->getPrefix()<<endl;
-		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;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                const char *prefix="nsp";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","nsp");
+                IAttribute *attr1=phb->createAttribute("Name","ns","AXIS");
+                /* Tests for NULL Value */
+                cout<<attr1->setPrefix(NULL)<<endl;
+                cout<<attr1->setPrefix(prefix)<<endl;
+                BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
+                IAttribute *attr2=bn->createAttribute("TYPE","Open Source");
+                /* Tests for non declared namespace prefix */
+                cout<<attr2->setPrefix("nd")<<endl;
+                cout << "Header Attribute Prefix = " << attr1->getPrefix()<<endl;
+                cout << "Child Node Attribute Prefix = " << attr2->getPrefix()<<endl;
+                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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+    cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl; 
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest3Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest3Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest3Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest3Client.cpp Thu Apr 27 20:03:51 2006
@@ -26,75 +26,75 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		const char *Value="AXIS";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
-		IAttribute *attr1=phb->createAttribute("Name","ns","axis");
-		/*Tests for NULL Value */
-		cout << attr1->setValue(NULL) << endl;
-		cout << attr1->setValue(Value)<< endl;
-		BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
-		IAttribute *attr2=bn->createAttribute("TYPE","OPEN SOURCE");
-		attr2->setValue("Open Source");
-		cout << "Header Attribute Value = " << attr1->getValue()<< endl;
-		cout << "Child Node Attribute Value = " << attr2->getValue()<<endl;
-		op = "add";
-		i1 = 2;
-		i2 = 3;
-		if (strcmp(op, "add") == 0)
-		{
-			iResult = ws.add(i1, i2);
-			cout << iResult << endl;
-			bSuccess = true;
-		}
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                const char *Value="AXIS";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
+                IAttribute *attr1=phb->createAttribute("Name","ns","axis");
+                /*Tests for NULL Value */
+                cout << attr1->setValue(NULL) << endl;
+                cout << attr1->setValue(Value)<< endl;
+                BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
+                IAttribute *attr2=bn->createAttribute("TYPE","OPEN SOURCE");
+                attr2->setValue("Open Source");
+                cout << "Header Attribute Value = " << attr1->getValue()<< endl;
+                cout << "Child Node Attribute Value = " << attr2->getValue()<<endl;
+                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;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-		cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-		cout << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+         cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;    
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest4Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest4Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest4Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest4Client.cpp Thu Apr 27 20:03:51 2006
@@ -26,77 +26,77 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		const char *uri="http://axis.apache.com";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
-		INamespace *nsp=phb->createNamespaceDecl("nsp","http://apache.com");
-		IAttribute *attr1=phb->createAttribute("Name","nsp","axis");
-		cout<<attr1->setURI(NULL)<<endl;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                const char *uri="http://axis.apache.com";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/","ns");
+                INamespace *nsp=phb->createNamespaceDecl("nsp","http://apache.com");
+                IAttribute *attr1=phb->createAttribute("Name","nsp","axis");
+                cout<<attr1->setURI(NULL)<<endl;
 
-		/* Changing the URI associated with the attribute. Here the prefix should also will change. */
-		cout<<attr1->setURI("http://axis.apache.com")<<endl;
-		BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
-		IAttribute *attr2=bn->createAttribute("TYPE","OPEN SOURCE");
-		attr2->setURI(uri);
-		cout << "Header Attribute Uri = " << attr1->getURI()<<endl;
-		cout << "Child Node Attribute Uri = " << attr2->getURI()<<endl;
-		op = "add";
-		i1 = 2;
-		i2 = 3;
-		if (strcmp(op, "add") == 0)
-		{
-			iResult = ws.add(i1, i2);
-			cout << iResult << endl;
-			bSuccess = true;
-		}
+                /* Changing the URI associated with the attribute. Here the prefix should also will change. */
+                cout<<attr1->setURI("http://axis.apache.com")<<endl;
+                BasicNode *bn=phb->createImmediateChild(ELEMENT_NODE,"Project","","","");
+                IAttribute *attr2=bn->createAttribute("TYPE","OPEN SOURCE");
+                attr2->setURI(uri);
+                cout << "Header Attribute Uri = " << attr1->getURI()<<endl;
+                cout << "Child Node Attribute Uri = " << attr2->getURI()<<endl;
+                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;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-		cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-		cout << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest1Client.cpp Thu Apr 27 20:03:51 2006
@@ -25,72 +25,72 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		const AxisChar *localname="TestHeader";
-		op = "add";
-		i1 = 2;
-		i2 = 3; 
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("Test","http://ws.apache.org/axisCppTest/");
-		cout<<phb->setLocalName(NULL)<<endl;
-		cout<<phb->getLocalName()<<endl;
-		cout<<phb->setLocalName(localname)<<endl;		
-		IHeaderBlock *fhb=ws.getFirstSOAPHeaderBlock();	
-		localname=fhb->getLocalName();
-		cout << "Local Name is " << localname << endl;
-		if (strcmp(op, "add") == 0)
-		{
-			iResult=ws.add(i1, i2);			
-			cout << iResult << endl;
-			bSuccess = true;
-		}
-		
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                const AxisChar *localname="TestHeader";
+                op = "add";
+                i1 = 2;
+                i2 = 3; 
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("Test","http://ws.apache.org/axisCppTest/");
+                cout<<phb->setLocalName(NULL)<<endl;
+                cout<<phb->getLocalName()<<endl;
+                cout<<phb->setLocalName(localname)<<endl;               
+                IHeaderBlock *fhb=ws.getFirstSOAPHeaderBlock(); 
+                localname=fhb->getLocalName();
+                cout << "Local Name is " << localname << endl;
+                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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest2Client.cpp Thu Apr 27 20:03:51 2006
@@ -26,71 +26,71 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		op = "add";
-		i1 = 2;
-		i2 = 3; 
-		const AxisChar *prefix="np";
-		const AxisChar *uri="http://axis.apache.com";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://apache.org/");
-		cout<<phb->setPrefix(NULL)<<endl;
-		cout<<phb->setPrefix(prefix)<<endl;
-		cout<<phb->setURI(NULL)<<endl;
-		cout<<phb->setURI(uri)<<endl;		
-		if (strcmp(op, "add") == 0)
-		{
-			iResult=ws.add(i1, i2);	
-			cout << iResult << endl;
-			bSuccess = true;
-		}
-	    
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                op = "add";
+                i1 = 2;
+                i2 = 3; 
+                const AxisChar *prefix="np";
+                const AxisChar *uri="http://axis.apache.com";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://apache.org/");
+                cout<<phb->setPrefix(NULL)<<endl;
+                cout<<phb->setPrefix(prefix)<<endl;
+                cout<<phb->setURI(NULL)<<endl;
+                cout<<phb->setURI(uri)<<endl;           
+                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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest3Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest3Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest3Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest3Client.cpp Thu Apr 27 20:03:51 2006
@@ -28,89 +28,89 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		op = "add";
-		i1 = 2;
-		i2 = 3; 
-		const AxisChar *prefix="np";
-		const AxisChar *uri="http://ws.apache.org/";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");
-		INamespace *Insp1=phb->createNamespaceDecl(prefix,uri);			
-		INamespace *Insp2=phb->createNamespaceDecl("np1","http://axis.apache.org/");
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                op = "add";
+                i1 = 2;
+                i2 = 3; 
+                const AxisChar *prefix="np";
+                const AxisChar *uri="http://ws.apache.org/";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");
+                INamespace *Insp1=phb->createNamespaceDecl(prefix,uri);                 
+                INamespace *Insp2=phb->createNamespaceDecl("np1","http://axis.apache.org/");
 
-		IAttribute *attr1=phb->createAttribute(NULL,NULL,NULL,NULL);
+                IAttribute *attr1=phb->createAttribute(NULL,NULL,NULL,NULL);
         IAttribute *attr2=phb->createAttribute(NULL,NULL,NULL);
-		if(attr1 || attr2)
-			cout << "Attribute returned for NULL arguments in createAttribute"<<endl;
+                if(attr1 || attr2)
+                        cout << "Attribute returned for NULL arguments in createAttribute"<<endl;
 
-		const AxisChar *temp="apache";
-		const AxisChar *localname="name";	
-		IAttribute *Iattr1=phb->createAttribute(localname,prefix,temp);		
-		IAttribute *Iattr2=phb->createAttribute(localname,"np1","","Axis");		
-		IAttribute *Iattr3=phb->createAttribute(localname,"","","");		
-
-		cout << "np:name=" << phb->getAttributeValue(localname,prefix)<<endl;
-		cout << "np1:name=" << phb->getAttributeValue("name","np1")<<endl;
-		cout <<"name=" << phb->getAttributeValue("name","")<<endl;
-		if(phb->getAttributeValue(NULL,NULL)!=NULL)
-			cout<<"NULL is not returned for NULL argumets in getAttributeValue"<<endl;
-		if(phb->getAttributeValue("name","nm")!=NULL)
-			cout<<"NULL is not returned for Non existing attribute"<<endl;
-		if(phb->getAttributeValue("NAME","np1")!=NULL)
-			cout<<"NULL is not returned for Non existing Attribute"<<endl;
-		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;
-			}
+                const AxisChar *temp="apache";
+                const AxisChar *localname="name";       
+                IAttribute *Iattr1=phb->createAttribute(localname,prefix,temp);         
+                IAttribute *Iattr2=phb->createAttribute(localname,"np1","","Axis");             
+                IAttribute *Iattr3=phb->createAttribute(localname,"","","");            
+
+                cout << "np:name=" << phb->getAttributeValue(localname,prefix)<<endl;
+                cout << "np1:name=" << phb->getAttributeValue("name","np1")<<endl;
+                cout <<"name=" << phb->getAttributeValue("name","")<<endl;
+                if(phb->getAttributeValue(NULL,NULL)!=NULL)
+                        cout<<"NULL is not returned for NULL argumets in getAttributeValue"<<endl;
+                if(phb->getAttributeValue("name","nm")!=NULL)
+                        cout<<"NULL is not returned for Non existing attribute"<<endl;
+                if(phb->getAttributeValue("NAME","np1")!=NULL)
+                        cout<<"NULL is not returned for Non existing Attribute"<<endl;
+                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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp Thu Apr 27 20:03:51 2006
@@ -27,104 +27,104 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		op = "add";
-		i1 = 2;
-		i2 = 3; 
-		AxisChar *localname="Name";
-		AxisChar *prefix="np";
-		AxisChar *uri="http://ws.apache.org/";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");		
-		BasicNode * Bnode1=phb->createChild(ELEMENT_NODE,localname,prefix,uri, NULL);
-		/*Passing NULL as argument*/
-		if(phb->createChild(ELEMENT_NODE,NULL,NULL,NULL, NULL))
-			cout<<"NULL Returned for Element_node"<<endl;
-		if(phb->createChild(CHARACTER_NODE,NULL,NULL,NULL, NULL))
-			cout<<"NULL Returned for Character_node"<<endl;
-		BasicNode * Bnode2=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"APACHE");
-		BasicNode * Bnode3=phb->createChild(ELEMENT_NODE,"FirstPart","np1","http://ws.apache.org/", NULL);
-		BasicNode * Bnode4=phb->createChild(ELEMENT_NODE,"LastPart","","http://ws.apache.org/", NULL);
-		BasicNode * Bnode5=phb->createChild(CHARACTER_NODE,"","","","APACHE");		
-		BasicNode * Bnode6=phb->createChild(ELEMENT_NODE);
-		Bnode6->setLocalName("Project");
-		IAttribute *a=Bnode6->createAttribute("Type","Open Source");
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                op = "add";
+                i1 = 2;
+                i2 = 3; 
+                AxisChar *localname="Name";
+                AxisChar *prefix="np";
+                AxisChar *uri="http://ws.apache.org/";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");             
+                BasicNode * Bnode1=phb->createChild(ELEMENT_NODE,localname,prefix,uri, NULL);
+                /*Passing NULL as argument*/
+                if(phb->createChild(ELEMENT_NODE,NULL,NULL,NULL, NULL))
+                        cout<<"NULL Returned for Element_node"<<endl;
+                if(phb->createChild(CHARACTER_NODE,NULL,NULL,NULL, NULL))
+                        cout<<"NULL Returned for Character_node"<<endl;
+                BasicNode * Bnode2=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"APACHE");
+                BasicNode * Bnode3=phb->createChild(ELEMENT_NODE,"FirstPart","np1","http://ws.apache.org/", NULL);
+                BasicNode * Bnode4=phb->createChild(ELEMENT_NODE,"LastPart","","http://ws.apache.org/", NULL);
+                BasicNode * Bnode5=phb->createChild(CHARACTER_NODE,"","","","APACHE");          
+                BasicNode * Bnode6=phb->createChild(ELEMENT_NODE);
+                Bnode6->setLocalName("Project");
+                IAttribute *a=Bnode6->createAttribute("Type","Open Source");
         cout <<"Project Type=" << a->getValue() << endl;
-		BasicNode * Bnode7=phb->createChild(CHARACTER_NODE);
-		Bnode7->setValue("AXISCPP");
+                BasicNode * Bnode7=phb->createChild(CHARACTER_NODE);
+                Bnode7->setValue("AXISCPP");
         BasicNode * Bnode4a=phb->createChild(ELEMENT_NODE,"LastPartChild","","http://ws.apache.org/", NULL);
         Bnode4->addChild(Bnode4a);
-		Bnode6->addChild(Bnode7);
-		Bnode3->addChild(Bnode2);
-		Bnode4a->addChild(Bnode5);
-		Bnode1->addChild(Bnode3);
-		Bnode1->addChild(Bnode4);
-		phb->addChild(Bnode1);
-		phb->addChild(Bnode6);
-		BasicNode * Bnode8=phb->createChild(CHARACTER_NODE,"","","","This is a test message");
-		cout << phb->addChild(Bnode8)<<endl;
-		cout<<"AddChild returned "<< phb->addChild(NULL) << " For NULL Value "<< endl;
-		cout << "No Of Children = " << phb->getNoOfChildren()<<endl;
-	    BasicNode * firstnode=phb->getFirstChild();
-		cout << "First Node Name = " << firstnode->getLocalName() << endl;
-		BasicNode * secondnode=phb->getChild(2);
-		BasicNode *childnode=secondnode->getFirstChild();
-		cout << "Second Node Name=" << secondnode->getLocalName() << " Value = " << childnode->getValue()<< endl ;
-		cout << "Second Node Type = " << secondnode->getNodeType() << endl;
-		BasicNode * lastnode=phb->getLastChild();
-		cout  << "Last Node Value = " << lastnode->getValue() << endl;
-		cout  << "Last Node Type = " << lastnode->getNodeType() << endl;
+                Bnode6->addChild(Bnode7);
+                Bnode3->addChild(Bnode2);
+                Bnode4a->addChild(Bnode5);
+                Bnode1->addChild(Bnode3);
+                Bnode1->addChild(Bnode4);
+                phb->addChild(Bnode1);
+                phb->addChild(Bnode6);
+                BasicNode * Bnode8=phb->createChild(CHARACTER_NODE,"","","","This is a test message");
+                cout << phb->addChild(Bnode8)<<endl;
+                cout<<"AddChild returned "<< phb->addChild(NULL) << " For NULL Value "<< endl;
+                cout << "No Of Children = " << phb->getNoOfChildren()<<endl;
+            BasicNode * firstnode=phb->getFirstChild();
+                cout << "First Node Name = " << firstnode->getLocalName() << endl;
+                BasicNode * secondnode=phb->getChild(2);
+                BasicNode *childnode=secondnode->getFirstChild();
+                cout << "Second Node Name=" << secondnode->getLocalName() << " Value = " << childnode->getValue()<< endl ;
+                cout << "Second Node Type = " << secondnode->getNodeType() << endl;
+                BasicNode * lastnode=phb->getLastChild();
+                cout  << "Last Node Value = " << lastnode->getValue() << endl;
+                cout  << "Last Node Type = " << lastnode->getNodeType() << endl;
         if (strcmp(op, "add") == 0)
-		{
-			iResult=ws.add(i1, i2);			
-			cout  << iResult << endl;
-		}
-	    bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                {
+                        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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp Thu Apr 27 20:03:51 2006
@@ -28,119 +28,119 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		op = "add";
-		i1 = 2;
-		i2 = 3; 
-		AxisChar *localname="Name";
-		AxisChar *prefix="np";
-		AxisChar *uri="http://ws.apache.org/";
-		IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");
-
-		
-		/*An element node Bnoden1 is created  and set its name using setLocalName() */
-		BasicNode * Bnoden=phb->createImmediateChild(ELEMENT_NODE,NULL,NULL,NULL,NULL);
-		cout<<Bnoden->getNodeType()<<endl;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
+
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                op = "add";
+                i1 = 2;
+                i2 = 3; 
+                AxisChar *localname="Name";
+                AxisChar *prefix="np";
+                AxisChar *uri="http://ws.apache.org/";
+                IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader","http://ws.apache.org/");
+
+                
+                /*An element node Bnoden1 is created  and set its name using setLocalName() */
+                BasicNode * Bnoden=phb->createImmediateChild(ELEMENT_NODE,NULL,NULL,NULL,NULL);
+                cout<<Bnoden->getNodeType()<<endl;
         Bnoden->setLocalName("Project");
-		BasicNode *ch=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"AXISCPP");
-		Bnoden->addChild(ch);
+                BasicNode *ch=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"AXISCPP");
+                Bnoden->addChild(ch);
 
-		BasicNode * Bnoden2=phb->createImmediateChild(CHARACTER_NODE,NULL,NULL,NULL,NULL);
-		if(Bnoden2==NULL)
-			cout << "Null returned for Character_node" << endl;
-		else{
-			Bnoden2->setValue("AXISCPP");
-		}
+                BasicNode * Bnoden2=phb->createImmediateChild(CHARACTER_NODE,NULL,NULL,NULL,NULL);
+                if(Bnoden2==NULL)
+                        cout << "Null returned for Character_node" << endl;
+                else{
+                        Bnoden2->setValue("AXISCPP");
+                }
 
 
-		BasicNode * Bnode1=phb->createImmediateChild(ELEMENT_NODE,localname,prefix,uri, NULL);	
+                BasicNode * Bnode1=phb->createImmediateChild(ELEMENT_NODE,localname,prefix,uri, NULL);  
         BasicNode * Bnode2=phb->createChild(CHARACTER_NODE,NULL,NULL,NULL,"AXIS");
-		BasicNode * Bnode3=phb->createChild(ELEMENT_NODE,"FirstPart","np1","http://ws.apache.org/", NULL);
-		BasicNode * Bnode4=phb->createImmediateChild(ELEMENT_NODE,"Location","","http://ws.apache.org/", NULL);
-		BasicNode * Bnode5=phb->createChild(CHARACTER_NODE,"","","","Sri Lanka");		
-		BasicNode * Bnode6=phb->createImmediateChild(ELEMENT_NODE);
-		Bnode6->setLocalName("Project");
-		IAttribute *a=Bnode6->createAttribute("Type","Open Source");		    	
-			cout << "Project Type=" << a->getValue()<< endl ;
-		BasicNode * Bnode7=phb->createChild(CHARACTER_NODE);
-		Bnode7->setValue("AXISCPP");
-		Bnode6->addChild(Bnode7);
-		Bnode3->addChild(Bnode2);
-		Bnode4->addChild(Bnode5);
-		Bnode1->addChild(Bnode3);		
-		BasicNode * Bnode8=phb->createImmediateChild(CHARACTER_NODE,"","","","This is a test ");
-		BasicNode *Bnode9=phb->createImmediateChild(CHARACTER_NODE);
-		Bnode9->setValue("message");
-		cout << "No Of Children=" << phb->getNoOfChildren()<< endl ;
-	    BasicNode * firstnode=phb->getFirstChild();
-		cout << "First Node Name = " << firstnode->getLocalName()<< endl ;
-		BasicNode * parentnode=phb->getChild(5);
-		BasicNode * childnode=parentnode->getFirstChild();		
-		cout << "Parent Node Name = " << parentnode->getLocalName();
-		cout <<  " Value =" << childnode->getValue() << endl;
-		BasicNode * lastnode=phb->getLastChild();
-		cout  << "Last Child Value=" << lastnode->getValue()<< endl;
-		BasicNode *nullNode=phb->getChild(phb->getNoOfChildren()+1);
-		if(nullNode!=NULL)
-			cout << "NULL is not returned for non existing node" << endl ;
-		BasicNode *nullNode1=phb->getChild(0);
-		if(nullNode1!=NULL)
-			cout << "NULL is not returned for child location 0"<< endl ;
-		BasicNode *nullNode2=phb->getChild(-2);
-		if(nullNode2!=NULL)
-			cout << "NULL is not returned for -ve  child location"<< endl;
-		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;
-			}
+                BasicNode * Bnode3=phb->createChild(ELEMENT_NODE,"FirstPart","np1","http://ws.apache.org/", NULL);
+                BasicNode * Bnode4=phb->createImmediateChild(ELEMENT_NODE,"Location","","http://ws.apache.org/", NULL);
+                BasicNode * Bnode5=phb->createChild(CHARACTER_NODE,"","","","Sri Lanka");               
+                BasicNode * Bnode6=phb->createImmediateChild(ELEMENT_NODE);
+                Bnode6->setLocalName("Project");
+                IAttribute *a=Bnode6->createAttribute("Type","Open Source");                    
+                        cout << "Project Type=" << a->getValue()<< endl ;
+                BasicNode * Bnode7=phb->createChild(CHARACTER_NODE);
+                Bnode7->setValue("AXISCPP");
+                Bnode6->addChild(Bnode7);
+                Bnode3->addChild(Bnode2);
+                Bnode4->addChild(Bnode5);
+                Bnode1->addChild(Bnode3);               
+                BasicNode * Bnode8=phb->createImmediateChild(CHARACTER_NODE,"","","","This is a test ");
+                BasicNode *Bnode9=phb->createImmediateChild(CHARACTER_NODE);
+                Bnode9->setValue("message");
+                cout << "No Of Children=" << phb->getNoOfChildren()<< endl ;
+            BasicNode * firstnode=phb->getFirstChild();
+                cout << "First Node Name = " << firstnode->getLocalName()<< endl ;
+                BasicNode * parentnode=phb->getChild(5);
+                BasicNode * childnode=parentnode->getFirstChild();              
+                cout << "Parent Node Name = " << parentnode->getLocalName();
+                cout <<  " Value =" << childnode->getValue() << endl;
+                BasicNode * lastnode=phb->getLastChild();
+                cout  << "Last Child Value=" << lastnode->getValue()<< endl;
+                BasicNode *nullNode=phb->getChild(phb->getNoOfChildren()+1);
+                if(nullNode!=NULL)
+                        cout << "NULL is not returned for non existing node" << endl ;
+                BasicNode *nullNode1=phb->getChild(0);
+                if(nullNode1!=NULL)
+                        cout << "NULL is not returned for child location 0"<< endl ;
+                BasicNode *nullNode2=phb->getChild(-2);
+                if(nullNode2!=NULL)
+                        cout << "NULL is not returned for -ve  child location"<< endl;
+                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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest6Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest6Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest6Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest6Client.cpp Thu Apr 27 20:03:51 2006
@@ -27,75 +27,75 @@
 
 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;
-	url = argv[1];
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        const char* op = 0;
+        int i1=0, i2=0;
+        int iResult;
+        url = argv[1];
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		Calculator ws(endpoint);
-		IHeaderBlock *phb=ws.createSOAPHeaderBlock("TestHeader","http://apache.com","np");
-		phb->createImmediateChild(CHARACTER_NODE,"","","","Test Message");
-		IHeaderBlock *cl=phb->clone();
-		cl->createImmediateChild(ELEMENT_NODE,"Name","","","");
-		cout << "No of Child in clone=" << cl->getNoOfChildren();
-		cout << endl << "No of Child in original=" << phb->getNoOfChildren();
-		BasicNode * bn=phb->getFirstChild();		
-		bn->setValue("Axis");
-		cout << endl << "First Child Value=" << bn->getValue();
-		BasicNode *bn1=cl->getFirstChild();
-		BasicNode *bn2=cl->getLastChild();		
-		cout << endl << "First Child Value in clone=" << bn1->getValue();
-		cout << endl << "Last Child Name in clone=" << bn2->getLocalName();
-		op = "add";
-		i1 = 2;
-		i2 = 3;
-		if (strcmp(op, "add") == 0)
-		{
-			iResult = ws.add(i1, i2);
-			cout << endl << iResult << endl;
-		}
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                Calculator ws(endpoint);
+                IHeaderBlock *phb=ws.createSOAPHeaderBlock("TestHeader","http://apache.com","np");
+                phb->createImmediateChild(CHARACTER_NODE,"","","","Test Message");
+                IHeaderBlock *cl=phb->clone();
+                cl->createImmediateChild(ELEMENT_NODE,"Name","","","");
+                cout << "No of Child in clone=" << cl->getNoOfChildren();
+                cout << endl << "No of Child in original=" << phb->getNoOfChildren();
+                BasicNode * bn=phb->getFirstChild();            
+                bn->setValue("Axis");
+                cout << endl << "First Child Value=" << bn->getValue();
+                BasicNode *bn1=cl->getFirstChild();
+                BasicNode *bn2=cl->getLastChild();              
+                cout << endl << "First Child Value in clone=" << bn1->getValue();
+                cout << endl << "Last Child Name in clone=" << bn2->getLocalName();
+                op = "add";
+                i1 = 2;
+                i2 = 3;
+                if (strcmp(op, "add") == 0)
+                {
+                        iResult = ws.add(i1, i2);
+                        cout << endl << 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( 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 << "Unspecified 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 << "Unspecified exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;     
+        return 0;
 }



Mime
View raw message