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 [17/17] - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getServiceDetail_v2Test1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getServiceDetail_v2Test1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getServiceDetail_v2Test1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getServiceDetail_v2Test1Client.cpp Thu Apr 27 20:03:51 2006
@@ -45,212 +45,212 @@
     }
 
     sprintf(endpoint, argv[1]); 
-	char* cpname = "2.0";
-	int outputSize=0;
+        char* cpname = "2.0";
+        int outputSize=0;
     Inquire *ws = new Inquire(endpoint);   
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-	do
-	{
-		try 
-		{
-			char buffer[100];
-			// Storing service Key to Buffer 
-			sprintf(buffer, "f0aa27f0-88e7-4750-808a-a4d038a48ae7");			
+        do
+        {
+                try 
+                {
+                        char buffer[100];
+                        // Storing service Key to Buffer 
+                        sprintf(buffer, "f0aa27f0-88e7-4750-808a-a4d038a48ae7");                        
              
-			 /* Case1 :
-			    In this we pass one service key and get back one business service and then displays the details*/
-			serviceKey_Array arrServiceKeys;
-			serviceKey * arrayService = new serviceKey[ARRAYSIZE];  
-			int i;
-			for (i = 0; i < ARRAYSIZE; i++)
-			 {
-				 arrayService[i] = new char[100];
-				 strcpy(arrayService[i],buffer);
-			 }
-			arrServiceKeys.set(arrayService,ARRAYSIZE);
-			cout << "invoking get_serviceDetail ...\n";			
-			businessService_Array* businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
-			outputSize = 0;
-			businessService ** arrayOutService = businessServices->get(outputSize);			
-			cout << "businessService_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Business Service " <<  i + 1 << endl;
-				cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref<<endl;
-				cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref<<endl;							
-				cout << "\t Names... \n" ;
-				int outputSizeName = 0;
-
-				//Display name of the business Service
-
-				name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
-				for( int j = 0; j < outputSizeName; j++)
-				{
-					cout << "\t\t Name " << j + 1 << " = " <<  arrayName[j]->name_value <<endl;
-				} 
-
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutService[i]->description_Ref->get(outputSizeDesc);
-				cout << "\t Description ... " << endl;
-				for( int j = 0; j < outputSizeDesc; j++)
-				{
-					cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
-				} 	
-				if( arrayOutService[i]->bindingTemplates_Ref )
-				{
-					cout << "\t\t\t Binding Templates...\n" ;
-					int outputSizeBT=0;
-					bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
-					for( int k = 0; k < outputSizeBT; k++ )
-					{
-						cout << "\t\t\t\t Access Point " <<  k + 1 << endl;
-						if( arrayOutServiceT[k]->accessPoint_Ref )
-						{
-							cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
-							cout <<  "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << endl;
-						}
-					}
-				}
-				
-				if(arrayOutService[i]->categoryBag_Ref){
-						int KRArraySize = 0;
-						keyedReference ** KRArray = arrayOutService[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
-						cout << "\t\t\t Category Bag Array Size .. " << KRArraySize << endl;
-						for(int k=0;k<KRArraySize;k++){
-							cout << "\t\t\t Category Bag "<< k+1 << endl;
-						cout << "\t\t\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
-						cout << "\t\t\t\ttKeyName = " <<KRArray[k]->keyName << endl;
-						cout << "\t\t\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                		
-						}
-				}
+                         /* Case1 :
+                            In this we pass one service key and get back one business service and then displays the details*/
+                        serviceKey_Array arrServiceKeys;
+                        serviceKey * arrayService = new serviceKey[ARRAYSIZE];  
+                        int i;
+                        for (i = 0; i < ARRAYSIZE; i++)
+                         {
+                                 arrayService[i] = new char[100];
+                                 strcpy(arrayService[i],buffer);
+                         }
+                        arrServiceKeys.set(arrayService,ARRAYSIZE);
+                        cout << "invoking get_serviceDetail ...\n";                     
+                        businessService_Array* businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
+                        outputSize = 0;
+                        businessService ** arrayOutService = businessServices->get(outputSize);                 
+                        cout << "businessService_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Business Service " <<  i + 1 << endl;
+                                cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref<<endl;
+                                cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref<<endl;                                                    
+                                cout << "\t Names... \n" ;
+                                int outputSizeName = 0;
+
+                                //Display name of the business Service
+
+                                name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
+                                for( int j = 0; j < outputSizeName; j++)
+                                {
+                                        cout << "\t\t Name " << j + 1 << " = " <<  arrayName[j]->name_value <<endl;
+                                } 
+
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutService[i]->description_Ref->get(outputSizeDesc);
+                                cout << "\t Description ... " << endl;
+                                for( int j = 0; j < outputSizeDesc; j++)
+                                {
+                                        cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
+                                }       
+                                if( arrayOutService[i]->bindingTemplates_Ref )
+                                {
+                                        cout << "\t\t\t Binding Templates...\n" ;
+                                        int outputSizeBT=0;
+                                        bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
+                                        for( int k = 0; k < outputSizeBT; k++ )
+                                        {
+                                                cout << "\t\t\t\t Access Point " <<  k + 1 << endl;
+                                                if( arrayOutServiceT[k]->accessPoint_Ref )
+                                                {
+                                                        cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
+                                                        cout <<  "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << endl;
+                                                }
+                                        }
+                                }
+                                
+                                if(arrayOutService[i]->categoryBag_Ref){
+                                                int KRArraySize = 0;
+                                                keyedReference ** KRArray = arrayOutService[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
+                                                cout << "\t\t\t Category Bag Array Size .. " << KRArraySize << endl;
+                                                for(int k=0;k<KRArraySize;k++){
+                                                        cout << "\t\t\t Category Bag "<< k+1 << endl;
+                                                cout << "\t\t\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
+                                                cout << "\t\t\t\ttKeyName = " <<KRArray[k]->keyName << endl;
+                                                cout << "\t\t\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                         
+                                                }
+                                }
            
-			}
+                        }
 
 
-			/* Case2:
-			   In this we pass 2 serviceKeys and get back two business Services */
-			
-			arrayService = new serviceKey[2];        
-			for (i = 0; i < 2; i++)
-			 {
-				 arrayService[i] = new char[100];				 
-			 } 
-			 strcpy(arrayService[0],buffer);
-			 strcpy(arrayService[1],"90757090-956e-4e13-82c0-4e85904ec076");
-			arrServiceKeys.set(arrayService,2);
-			cout << "\n\ninvoking get_serviceDetail ...\n";			
-			//Inquire *ws1 = new Inquire(endpoint); 
-			businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
-			outputSize = 0;
-			arrayOutService = businessServices->get(outputSize);			
-			cout << "businessService_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Business Service " << i + 1 <<endl;
-				cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref << endl;
-				cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref<<endl;				
-				cout << "\t Names... \n";
-				int outputSizeName = 0;
-				name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
-				for( int j = 0; j < outputSizeName; j++)
-				{
-					cout << "\t\t Name " << j + 1 << " = " << arrayName[j]->name_value << endl;
-				}           
-				if( arrayOutService[i]->bindingTemplates_Ref )
-				{
-					cout << "\t\t\t Binding Templates...\n" ;
-					int outputSizeBT=0;
-					bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
-					for( int k = 0; k < outputSizeBT; k++ )
-					{
-						cout << "\t\t\t\t Access Point " << k + 1;
-						if( arrayOutServiceT[k]->accessPoint_Ref )
-						{
-							cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
-							cout << "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << endl;
-						}
-					}
-				}			
+                        /* Case2:
+                           In this we pass 2 serviceKeys and get back two business Services */
+                        
+                        arrayService = new serviceKey[2];        
+                        for (i = 0; i < 2; i++)
+                         {
+                                 arrayService[i] = new char[100];                                
+                         } 
+                         strcpy(arrayService[0],buffer);
+                         strcpy(arrayService[1],"90757090-956e-4e13-82c0-4e85904ec076");
+                        arrServiceKeys.set(arrayService,2);
+                        cout << "\n\ninvoking get_serviceDetail ...\n";                 
+                        //Inquire *ws1 = new Inquire(endpoint); 
+                        businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
+                        outputSize = 0;
+                        arrayOutService = businessServices->get(outputSize);                    
+                        cout << "businessService_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Business Service " << i + 1 <<endl;
+                                cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref << endl;
+                                cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref<<endl;                            
+                                cout << "\t Names... \n";
+                                int outputSizeName = 0;
+                                name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
+                                for( int j = 0; j < outputSizeName; j++)
+                                {
+                                        cout << "\t\t Name " << j + 1 << " = " << arrayName[j]->name_value << endl;
+                                }           
+                                if( arrayOutService[i]->bindingTemplates_Ref )
+                                {
+                                        cout << "\t\t\t Binding Templates...\n" ;
+                                        int outputSizeBT=0;
+                                        bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
+                                        for( int k = 0; k < outputSizeBT; k++ )
+                                        {
+                                                cout << "\t\t\t\t Access Point " << k + 1;
+                                                if( arrayOutServiceT[k]->accessPoint_Ref )
+                                                {
+                                                        cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
+                                                        cout << "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << endl;
+                                                }
+                                        }
+                                }                       
            
-			}
+                        }
 
-			/* Case 3:
-			   In this we pass a non existing Service Key */
+                        /* Case 3:
+                           In this we pass a non existing Service Key */
 
-			
-			arrayService = new serviceKey[2];        
-			for (i = 0; i < 1; i++)
-			 {
-				 arrayService[i] = new char[100];	
-				 strcpy(arrayService[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
-			 } 
-			 
-			
-			arrServiceKeys.set(arrayService,1);			
-			//Inquire *ws2 = new Inquire(endpoint); 
-			cout << "\n\ninvoking get_serviceDetail ...\n";
-			businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
-			outputSize = 0;
-			arrayOutService = businessServices->get(outputSize);			
-			cout << "businessService_Array size = " << outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Business Entity " << i + 1 << endl;
-				cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref << endl;
-				cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref << endl;
-				cout << "\t Names... \n";
-				int outputSizeName = 0;
-				name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
-				for( int j = 0; j < outputSizeName; j++)
-				{
-					cout << "\t\t Name  " << j + 1 << " = " << arrayName[j]->name_value;
-				}           
-				
-				if( arrayOutService[i]->bindingTemplates_Ref )
-				{
-					cout << "\t\t\t Binding Templates...\n" ;
-					int outputSizeBT=0;
-					bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
-					for( int k = 0; k < outputSizeBT; k++ )
-					{
-						cout << "\t\t\t\t Access Point " << k + 1 << endl;
-						if( arrayOutServiceT[k]->accessPoint_Ref )
-						{
-							cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
-							cout << "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << 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;
-			}
+                        
+                        arrayService = new serviceKey[2];        
+                        for (i = 0; i < 1; i++)
+                         {
+                                 arrayService[i] = new char[100];       
+                                 strcpy(arrayService[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
+                         } 
+                         
+                        
+                        arrServiceKeys.set(arrayService,1);                     
+                        //Inquire *ws2 = new Inquire(endpoint); 
+                        cout << "\n\ninvoking get_serviceDetail ...\n";
+                        businessServices = ws->get_serviceDetail(&arrServiceKeys, cpname);
+                        outputSize = 0;
+                        arrayOutService = businessServices->get(outputSize);                    
+                        cout << "businessService_Array size = " << outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Business Entity " << i + 1 << endl;
+                                cout << "\t Business Key Ref = " << arrayOutService[i]->businessKey_Ref << endl;
+                                cout << "\t Service Key Ref = " << arrayOutService[i]->serviceKey_Ref << endl;
+                                cout << "\t Names... \n";
+                                int outputSizeName = 0;
+                                name** arrayName = arrayOutService[i]->name_Ref->get(outputSizeName);
+                                for( int j = 0; j < outputSizeName; j++)
+                                {
+                                        cout << "\t\t Name  " << j + 1 << " = " << arrayName[j]->name_value;
+                                }           
+                                
+                                if( arrayOutService[i]->bindingTemplates_Ref )
+                                {
+                                        cout << "\t\t\t Binding Templates...\n" ;
+                                        int outputSizeBT=0;
+                                        bindingTemplate ** arrayOutServiceT = arrayOutService[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
+                                        for( int k = 0; k < outputSizeBT; k++ )
+                                        {
+                                                cout << "\t\t\t\t Access Point " << k + 1 << endl;
+                                                if( arrayOutServiceT[k]->accessPoint_Ref )
+                                                {
+                                                        cout << "\t\t\t\t\t Point = " << arrayOutServiceT[k]->accessPoint_Ref->accessPoint_value << endl;
+                                                        cout << "\t\t\t\t\t URL Type = " << arrayOutServiceT[k]->accessPoint_Ref->URLType_Ref << 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)
-			{
+                        {
         printf("Exception caught : %s\n", e.what());
-			}
+                        }
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
     return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getTModelDetail_v2Test1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getTModelDetail_v2Test1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getTModelDetail_v2Test1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getTModelDetail_v2Test1Client.cpp Thu Apr 27 20:03:51 2006
@@ -45,219 +45,219 @@
     }
 
     sprintf(endpoint, argv[1]); 
-	char* cpname = "2.0";
-	int outputSize=0;
+        char* cpname = "2.0";
+        int outputSize=0;
     Inquire *ws = new Inquire(endpoint);   
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-	do
-	{
-		try 
-		{
-			char buffer[100];
-			// Storing Binding Key to Buffer 
-			sprintf(buffer, "uuid:2524c425-656e-4eb2-8b13-080cfb081382");	
+        do
+        {
+                try 
+                {
+                        char buffer[100];
+                        // Storing Binding Key to Buffer 
+                        sprintf(buffer, "uuid:2524c425-656e-4eb2-8b13-080cfb081382");   
              
-			 /* Case1 :
-			    In this we pass one tModel key and get back one tModel and then displays the details*/
-			tModelKey_Array arrTModelKeys;
-			tModelKey * arrayTModel = new tModelKey[ARRAYSIZE];  
-			int i;
-			for (i = 0; i < ARRAYSIZE; i++)
-			 {
-				 arrayTModel[i] = new char[100];
-				 strcpy(arrayTModel[i],buffer);
-			 }
-			arrTModelKeys.set(arrayTModel,ARRAYSIZE);
-			cout << "invoking get_tModelDetail ...\n";			
-			tModel_Array* tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
-			outputSize = 0;
-			tModel ** arrayOutTModel = tModels->get(outputSize);			
-			cout << "tModel_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "tModel " <<  i + 1 << endl;
-				cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
-				cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
-				//Display name of tModel				
-				cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;			
-
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
-				cout << "\t Description ... " << endl;
-				for( int j = 0; j < outputSizeDesc; j++)
-				{
-					cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
-				}
-				
-				if(arrayOutTModel[i]->overviewDoc_Ref){
-					cout << "\tOverviewDoc ... " << endl;
-					int OVDescSize=0;
-					description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
-					for(int k=0;k<OVDescSize;k++){
-						cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
-					}
-					cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
-				}
-
-				if(arrayOutTModel[i]->categoryBag_Ref){
-						int KRArraySize = 0;
-						keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
-						cout << "\t Category Bag Array Size = " << KRArraySize << endl;
-						for(int k=0;k<KRArraySize;k++){
-							cout << "\t\t Category Bag "<< k+1 << endl;
-							cout << "\t\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
-							cout << "\t\t\ttKeyName = " <<KRArray[k]->keyName << endl;
-							cout << "\t\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                		
-						}
-				}
-
-			}
-
-
-			/* Case2:
-			   In this we pass 2 tModelKeys and get back two tModels */
-			
-			arrayTModel = new tModelKey[2];        
-			for (i = 0; i < 2; i++)
-			 {
-				 arrayTModel[i] = new char[100];				 
-			 } 
-			 strcpy(arrayTModel[0],buffer);
-			 strcpy(arrayTModel[1],"uuid:52ed8652-e2f8-4816-bc71-f48748f471bf");
-			arrTModelKeys.set(arrayTModel,2);
-			cout << "\n\ninvoking get_tModelDetail ...\n";			
-			//Inquire *ws1 = new Inquire(endpoint); 
-			tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
-			outputSize = 0;
-			arrayOutTModel = tModels->get(outputSize);			
-			cout << "tModel_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "tModel " <<  i + 1 << endl;
-				cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
-				cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
-				//Display name of tModel				
-				cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;			
-
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
-				cout << "\t Description ... " << endl;
-				for( int j = 0; j < outputSizeDesc; j++)
-				{
-					cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
-				}
-				
-				if(arrayOutTModel[i]->overviewDoc_Ref){
-					cout << "\tOverviewDoc ... " << endl;
-					int OVDescSize=0;
-					description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
-					for(int k=0;k<OVDescSize;k++){
-						cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
-					}
-					cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
-				}
-
-				if(arrayOutTModel[i]->categoryBag_Ref){
-						int KRArraySize = 0;
-						keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
-						cout << "\t Category Bag Array Size .. " << KRArraySize << endl;
-						for(int k=0;k<KRArraySize;k++){
-							cout << "\t Category Bag "<< k+1 << endl;
-							cout << "\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
-							cout << "\t\ttKeyName = " <<KRArray[k]->keyName << endl;
-							cout << "\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                		
-						}
-				}
-			}
-			/* Case 3:
-			   In this we pass a non existing tModel Key */
-
-			
-			arrayTModel = new tModelKey[1];        
-			for (i = 0; i < 1; i++)
-			 {
-				 arrayTModel[i] = new char[100];	
-				 strcpy(arrayTModel[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
-			 } 
-			 
-			
-			arrTModelKeys.set(arrayTModel,1);			
-			//Inquire *ws2 = new Inquire(endpoint); 
-			cout << "\n\ninvoking get_tModelDetail ...\n";
-			tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
-			outputSize = 0;
-			arrayOutTModel = tModels->get(outputSize);			
-			cout << "tModel_Array size = " << outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "tModel " <<  i + 1 << endl;
-				cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
-				cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
-				//Display name of tModel				
-				cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;			
-
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
-				cout << "\t Description ... " << endl;
-				for( int j = 0; j < outputSizeDesc; j++)
-				{
-					cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
-				}
-				
-				if(arrayOutTModel[i]->overviewDoc_Ref){
-					cout << "\tOverviewDoc ... " << endl;
-					int OVDescSize=0;
-					description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
-					for(int k=0;k<OVDescSize;k++){
-						cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
-					}
-					cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
-				}
-
-				if(arrayOutTModel[i]->categoryBag_Ref){
-						int KRArraySize = 0;
-						keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
-						cout << "\t Category Bag Array Size .. " << KRArraySize << endl;
-						for(int k=0;k<KRArraySize;k++){
-							cout << "\t Category Bag "<< k+1 << endl;
-							cout << "\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
-							cout << "\t\ttKeyName = " <<KRArray[k]->keyName << endl;
-							cout << "\t\ttKeyValue = " << KRArray[k]->keyValue << 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;
-			}
+                         /* Case1 :
+                            In this we pass one tModel key and get back one tModel and then displays the details*/
+                        tModelKey_Array arrTModelKeys;
+                        tModelKey * arrayTModel = new tModelKey[ARRAYSIZE];  
+                        int i;
+                        for (i = 0; i < ARRAYSIZE; i++)
+                         {
+                                 arrayTModel[i] = new char[100];
+                                 strcpy(arrayTModel[i],buffer);
+                         }
+                        arrTModelKeys.set(arrayTModel,ARRAYSIZE);
+                        cout << "invoking get_tModelDetail ...\n";                      
+                        tModel_Array* tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
+                        outputSize = 0;
+                        tModel ** arrayOutTModel = tModels->get(outputSize);                    
+                        cout << "tModel_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "tModel " <<  i + 1 << endl;
+                                cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
+                                cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
+                                //Display name of tModel                                
+                                cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;                 
+
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
+                                cout << "\t Description ... " << endl;
+                                for( int j = 0; j < outputSizeDesc; j++)
+                                {
+                                        cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
+                                }
+                                
+                                if(arrayOutTModel[i]->overviewDoc_Ref){
+                                        cout << "\tOverviewDoc ... " << endl;
+                                        int OVDescSize=0;
+                                        description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
+                                        for(int k=0;k<OVDescSize;k++){
+                                                cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
+                                        }
+                                        cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
+                                }
+
+                                if(arrayOutTModel[i]->categoryBag_Ref){
+                                                int KRArraySize = 0;
+                                                keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
+                                                cout << "\t Category Bag Array Size = " << KRArraySize << endl;
+                                                for(int k=0;k<KRArraySize;k++){
+                                                        cout << "\t\t Category Bag "<< k+1 << endl;
+                                                        cout << "\t\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
+                                                        cout << "\t\t\ttKeyName = " <<KRArray[k]->keyName << endl;
+                                                        cout << "\t\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                           
+                                                }
+                                }
+
+                        }
+
+
+                        /* Case2:
+                           In this we pass 2 tModelKeys and get back two tModels */
+                        
+                        arrayTModel = new tModelKey[2];        
+                        for (i = 0; i < 2; i++)
+                         {
+                                 arrayTModel[i] = new char[100];                                 
+                         } 
+                         strcpy(arrayTModel[0],buffer);
+                         strcpy(arrayTModel[1],"uuid:52ed8652-e2f8-4816-bc71-f48748f471bf");
+                        arrTModelKeys.set(arrayTModel,2);
+                        cout << "\n\ninvoking get_tModelDetail ...\n";                  
+                        //Inquire *ws1 = new Inquire(endpoint); 
+                        tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
+                        outputSize = 0;
+                        arrayOutTModel = tModels->get(outputSize);                      
+                        cout << "tModel_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "tModel " <<  i + 1 << endl;
+                                cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
+                                cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
+                                //Display name of tModel                                
+                                cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;                 
+
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
+                                cout << "\t Description ... " << endl;
+                                for( int j = 0; j < outputSizeDesc; j++)
+                                {
+                                        cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
+                                }
+                                
+                                if(arrayOutTModel[i]->overviewDoc_Ref){
+                                        cout << "\tOverviewDoc ... " << endl;
+                                        int OVDescSize=0;
+                                        description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
+                                        for(int k=0;k<OVDescSize;k++){
+                                                cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
+                                        }
+                                        cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
+                                }
+
+                                if(arrayOutTModel[i]->categoryBag_Ref){
+                                                int KRArraySize = 0;
+                                                keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
+                                                cout << "\t Category Bag Array Size .. " << KRArraySize << endl;
+                                                for(int k=0;k<KRArraySize;k++){
+                                                        cout << "\t Category Bag "<< k+1 << endl;
+                                                        cout << "\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
+                                                        cout << "\t\ttKeyName = " <<KRArray[k]->keyName << endl;
+                                                        cout << "\t\ttKeyValue = " << KRArray[k]->keyValue << endl;                             
+                                                }
+                                }
+                        }
+                        /* Case 3:
+                           In this we pass a non existing tModel Key */
+
+                        
+                        arrayTModel = new tModelKey[1];        
+                        for (i = 0; i < 1; i++)
+                         {
+                                 arrayTModel[i] = new char[100];        
+                                 strcpy(arrayTModel[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
+                         } 
+                         
+                        
+                        arrTModelKeys.set(arrayTModel,1);                       
+                        //Inquire *ws2 = new Inquire(endpoint); 
+                        cout << "\n\ninvoking get_tModelDetail ...\n";
+                        tModels = ws->get_tModelDetail(&arrTModelKeys, cpname);
+                        outputSize = 0;
+                        arrayOutTModel = tModels->get(outputSize);                      
+                        cout << "tModel_Array size = " << outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "tModel " <<  i + 1 << endl;
+                                cout << "\t tModel Key Ref = " << arrayOutTModel[i]->tModelKey_Ref<<endl;
+                                cout << "\t Authorized Name = " << arrayOutTModel[i]->authorizedName << endl;
+                                //Display name of tModel                                
+                                cout << "\t Name = " << arrayOutTModel[i]->name_Ref->name_value <<endl;                 
+
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutTModel[i]->description_Ref->get(outputSizeDesc);
+                                cout << "\t Description ... " << endl;
+                                for( int j = 0; j < outputSizeDesc; j++)
+                                {
+                                        cout << "\t\t Description " << j+1 << " = " << arrayDesc[j]->description_value<< endl;
+                                }
+                                
+                                if(arrayOutTModel[i]->overviewDoc_Ref){
+                                        cout << "\tOverviewDoc ... " << endl;
+                                        int OVDescSize=0;
+                                        description ** overviewDesc = arrayOutTModel[i]->overviewDoc_Ref->description_Ref->get(OVDescSize);
+                                        for(int k=0;k<OVDescSize;k++){
+                                                cout << "\t\t Description "<< k+1 << overviewDesc[k]->description_value << endl;
+                                        }
+                                        cout << "\t\toverviewURL = " << arrayOutTModel[i]->overviewDoc_Ref->overviewURL << endl;
+                                }
+
+                                if(arrayOutTModel[i]->categoryBag_Ref){
+                                                int KRArraySize = 0;
+                                                keyedReference ** KRArray = arrayOutTModel[i]->categoryBag_Ref->keyedReference_Ref->get(KRArraySize);
+                                                cout << "\t Category Bag Array Size .. " << KRArraySize << endl;
+                                                for(int k=0;k<KRArraySize;k++){
+                                                        cout << "\t Category Bag "<< k+1 << endl;
+                                                        cout << "\t\ttModelKey_Ref = " << KRArray[k]->tModelKey_Ref << endl;
+                                                        cout << "\t\ttKeyName = " <<KRArray[k]->keyName << endl;
+                                                        cout << "\t\ttKeyValue = " << KRArray[k]->keyValue << 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)
-			{
+                        {
         printf("Exception caught : %s\n", e.what());
-			}
+                        }
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
     return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp Thu Apr 27 20:03:51 2006
@@ -48,32 +48,32 @@
     Inquire *ws = new Inquire(endpoint); 
     //ws->setProxy("localhost", 9090);
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
     try 
     {
         char buffer[100];
         sprintf(buffer, "UUID:2524c425-656e-4eb2-8b13-080cfb081382");
 
         tModelKey_Array arrtModelKeys;
-		tModelKey * array = new tModelKey [ARRAYSIZE];        
+                tModelKey * array = new tModelKey [ARRAYSIZE];        
         int i = 0;
         for (i = 0; i < ARRAYSIZE; i++)
         {
             array[i] = new char[100];
-			strcpy(array[i],buffer);
+                        strcpy(array[i],buffer);
 
         }
-		arrtModelKeys.set(array,ARRAYSIZE);
+                arrtModelKeys.set(array,ARRAYSIZE);
         char* cpname = "2.0";
         
         printf("invoking get_tModelDetail...\n");
         tModel_Array *result = ws->get_tModelDetail(&arrtModelKeys, cpname);
-		int outputSize=0;
-		tModel ** arrayOut = result->get(outputSize);
+                int outputSize=0;
+                tModel ** arrayOut = result->get(outputSize);
         printf("tModel_Array size = %d\n", outputSize);
         for( i = 0; i < outputSize; i++ ) 
         {
@@ -83,8 +83,8 @@
             printf("\t Authorized Name = %s\n", arrayOut[i]->authorizedName);
             if(arrayOut[i]->name_Ref)
                 printf("\t Name = %s\n", arrayOut[i]->name_Ref->name_value);
-				int outputSizeDesc = 0;
-			    description ** arrayDesc= arrayOut[i]->description_Ref->get(outputSizeDesc);  
+                                int outputSizeDesc = 0;
+                            description ** arrayDesc= arrayOut[i]->description_Ref->get(outputSizeDesc);  
             for( int j = 0; j < outputSizeDesc; j++)
             {
                 printf("\t Description %d = %s\n", j + 1,  arrayDesc[j]->description_value);
@@ -96,18 +96,18 @@
 
         sprintf(buffer, "aea80cae-6cde-4eac-9feb-19ac9719ebb9");
         businessKey_Array arrBusinessKeys;
-		businessKey * arrayBusiness = new businessKey[ARRAYSIZE];        
+                businessKey * arrayBusiness = new businessKey[ARRAYSIZE];        
         for (i = 0; i < ARRAYSIZE; i++)
         {
             arrayBusiness[i] = new char[100];
-			strcpy(arrayBusiness[i],buffer);
+                        strcpy(arrayBusiness[i],buffer);
         }
-		arrBusinessKeys.set(arrayBusiness,ARRAYSIZE);
+                arrBusinessKeys.set(arrayBusiness,ARRAYSIZE);
         printf("invoking get_businessDetail ...\n");
-        //printf("businessEntity_Array size = %d\n", ws->get_businessDetail(arrBusinessKeys, cpname).m_Size);		
+        //printf("businessEntity_Array size = %d\n", ws->get_businessDetail(arrBusinessKeys, cpname).m_Size);           
         businessEntity_Array* businessEntities = ws->get_businessDetail(&arrBusinessKeys, cpname);
-		outputSize = 0;
-		businessEntity ** arrayOutB = businessEntities->get(outputSize);
+                outputSize = 0;
+                businessEntity ** arrayOutB = businessEntities->get(outputSize);
         //businessEntity_Array get_businessDetail(businessKey_Array Value0,xsd__string Value1);
         printf("businessEntity_Array size = %d\n", outputSize);
         for( i = 0; i < outputSize; i++ ) 
@@ -117,8 +117,8 @@
             printf("\t Operator = %s\n", arrayOutB[i]->_operator);
             printf("\t Authorized Name = %s\n", arrayOutB[i]->authorizedName);
             printf( "\t Names... \n" );
-			int outputSizeBE = 0;
-			 name** arrayBE = arrayOutB[i]->name_Ref->get(outputSizeBE);
+                        int outputSizeBE = 0;
+                         name** arrayBE = arrayOutB[i]->name_Ref->get(outputSizeBE);
             for( int j = 0; j < outputSizeBE; j++)
             {
                 printf("\t\t Name %d = %s\n", j + 1,  arrayBE[j]->name_value);
@@ -127,8 +127,8 @@
             if( arrayOutB[i]->businessServices_Ref )
             {
                 printf( "\t Business Services...\n" );
-				int outputSizeBS = 0;
-				businessService ** arrayOutBS = arrayOutB[i]->businessServices_Ref->businessService_Ref->get(outputSizeBS);
+                                int outputSizeBS = 0;
+                                businessService ** arrayOutBS = arrayOutB[i]->businessServices_Ref->businessService_Ref->get(outputSizeBS);
                 for( int j = 0; j < outputSizeBS; j++ )
                 {
                     printf( "\t\t Business Service %d...\n", j + 1 );
@@ -137,8 +137,8 @@
                     if( arrayOutBS[j]->bindingTemplates_Ref )
                     {
                          printf( "\t\t\t Binding Templates...\n" );
-						 int outputSizeBT=0;
-						 bindingTemplate ** arrayOutBT = arrayOutBS[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
+                                                 int outputSizeBT=0;
+                                                 bindingTemplate ** arrayOutBT = arrayOutBS[j]->bindingTemplates_Ref->bindingTemplate_Ref->get(outputSizeBT);
                          for( int k = 0; k < outputSizeBT; k++ )
                          {
                             printf( "\t\t\t\t Access Point %d...\n", k + 1 );
@@ -164,27 +164,27 @@
     } 
     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)
-			{
+                        {
         printf("Exception caught : %s\n", e.what());
-			}
+                        }
     }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
 
     return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/nillableComplexTypeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/nillableComplexTypeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
Binary files - no diff available.