ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r397747 [15/17] - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/
Date Fri, 28 Apr 2006 03:04:04 GMT
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_floatClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_floatClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_floatClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_floatClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,113 +22,113 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/XSD_float";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/XSD_float";
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		// bool bSuccess = false;
+                // bool bSuccess = false;
 
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSD_float* ws = new XSD_float(endpoint);
-
-		// Test non-nillable element
-	    xsd__float result = ws->asNonNillableElement((xsd__float)35.353588);
-		printf("non-nillable element=%.6g\n", result);
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSD_float* ws = new XSD_float(endpoint);
+
+                // Test non-nillable element
+            xsd__float result = ws->asNonNillableElement((xsd__float)35.353588);
+                printf("non-nillable element=%.6g\n", result);
         fflush(stdout);
 
-		// Test nillable element, with a value
-		xsd__float* nillableInput = new xsd__float();
-		*(nillableInput) = (xsd__float)35.353588;
-		xsd__float* nillableResult = ws->asNillableElement(nillableInput);
-		if (nillableResult)
-		{
-			printf("nillable element=%.6g\n", *(nillableResult));
+                // Test nillable element, with a value
+                xsd__float* nillableInput = new xsd__float();
+                *(nillableInput) = (xsd__float)35.353588;
+                xsd__float* nillableResult = ws->asNillableElement(nillableInput);
+                if (nillableResult)
+                {
+                        printf("nillable element=%.6g\n", *(nillableResult));
             fflush(stdout);
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nillable element=<nil>" << endl;
-		}
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nillable element=<nil>" << endl;
+                }
        delete nillableInput;
 
-		// Test nillable element, with nil
+                // Test nillable element, with nil
         nillableResult = ws->asNillableElement(NULL);
-		if (nillableResult)
-		{
-			printf("nil element=%.6g\n", *(nillableResult));
+                if (nillableResult)
+                {
+                        printf("nil element=%.6g\n", *(nillableResult));
             fflush(stdout);
-			delete nillableResult;
-		}
-		else
-		{
-			cout << "nil element=<nil>" << endl;
-		}
-
-		// Test required attribute
-		RequiredAttributeElement requiredAttributeInput;
-		requiredAttributeInput.setrequiredAttribute((xsd__float)35.353588);
-		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
-		printf("required attribute=%.6g\n", requiredAttributeResult->getrequiredAttribute());
+                        delete nillableResult;
+                }
+                else
+                {
+                        cout << "nil element=<nil>" << endl;
+                }
+
+                // Test required attribute
+                RequiredAttributeElement requiredAttributeInput;
+                requiredAttributeInput.setrequiredAttribute((xsd__float)35.353588);
+                RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
+                printf("required attribute=%.6g\n", requiredAttributeResult->getrequiredAttribute());
         fflush(stdout);
-		delete requiredAttributeResult;
+                delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
  * Exact coding of this section may change depending on chosen implementation
-		// Test optional attribute, with a value
-		OptionalAttributeElement optionalAttributeInput;
-		optionalAttributeInput.setoptionalAttribute(35.353588);
-		OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			printf("optional attribute, with data=%.6g\n", *(optionalAttributeResult->getoptionalAttribute()));
+                // Test optional attribute, with a value
+                OptionalAttributeElement optionalAttributeInput;
+                optionalAttributeInput.setoptionalAttribute(35.353588);
+                OptionalAttributeElement* optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        printf("optional attribute, with data=%.6g\n", *(optionalAttributeResult->getoptionalAttribute()));
             fflush(stdout);
-		}
-		else
-		{
-			cout << "optional attribute, with data=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
-
-		// Test optional attribute, not present
-		//optionalAttributeInput.setattribute();
-		optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
-		if (optionalAttributeResult->getoptionalAttribute())
-		{
-			printf("optional attribute, not present=%.6g\n", *(optionalAttributeResult->getoptionalAttribute()));
+                }
+                else
+                {
+                        cout << "optional attribute, with data=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
+
+                // Test optional attribute, not present
+                //optionalAttributeInput.setattribute();
+                optionalAttributeResult = ws->asOptionalAttribute(&optionalAttributeInput);
+                if (optionalAttributeResult->getoptionalAttribute())
+                {
+                        printf("optional attribute, not present=%.6g\n", *(optionalAttributeResult->getoptionalAttribute()));
             fflush(stdout);
-		}
-		else
-		{
-			cout << "optional attribute, not present=<not present>" << endl;
-		}
-		delete optionalAttributeResult;
+                }
+                else
+                {
+                        cout << "optional attribute, not present=<not present>" << endl;
+                }
+                delete optionalAttributeResult;
 */
 
-		// Test array
+                // Test array
         xsd__float_Array arrayInput;
-		int arraySize=2;
-		xsd__float ** array = new xsd__float*[arraySize];
+                int arraySize=2;
+                xsd__float ** array = new xsd__float*[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new xsd__float(35.353588);
         }
-		arrayInput.set(array,arraySize);
-		xsd__float_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__float ** output = arrayResult->get(outputSize);
+                arrayInput.set(array,arraySize);
+                xsd__float_Array* arrayResult = ws->asArray(&arrayInput);
+                int outputSize=0;
+                const xsd__float ** output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
-		for (int index = 0; index < outputSize ; index++)
-		{
-			printf("  element[%i]=%.6g\n", index,  *(output[index]));
+                for (int index = 0; index < outputSize ; index++)
+                {
+                        printf("  element[%i]=%.6g\n", index,  *(output[index]));
             fflush(stdout);
-			
-		}
+                        
+                }
          // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
@@ -137,32 +137,32 @@
         delete [] array;
         delete arrayResult;
 
-		// Test complex type
-		SimpleComplexType complexTypeInput;
-		complexTypeInput.setcomplexTypeElement((xsd__float) 35.353588);
-		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
-		printf("within complex type=%.6g\n", complexTypeResult->getcomplexTypeElement());
+                // Test complex type
+                SimpleComplexType complexTypeInput;
+                complexTypeInput.setcomplexTypeElement((xsd__float) 35.353588);
+                SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
+                printf("within complex type=%.6g\n", complexTypeResult->getcomplexTypeElement());
         fflush(stdout);
-		delete complexTypeResult;
+                delete complexTypeResult;
 
-		// Tests now complete
+                // Tests now complete
 
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-		cout << "Exception : " << e.what() << endl;
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured: " << e.what() << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+                cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured: " << e.what() << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBindingDetail_v2Test1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBindingDetail_v2Test1Client.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBindingDetail_v2Test1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBindingDetail_v2Test1Client.cpp Thu Apr 27 20:03:51 2006
@@ -45,190 +45,190 @@
     }
 
     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, "585e9258-c7b7-4701-986e-1646f7166ed1");	
+        do
+        {
+                try 
+                {
+                        char buffer[100];
+                        // Storing Binding Key to Buffer 
+                        sprintf(buffer, "585e9258-c7b7-4701-986e-1646f7166ed1");        
              
-			 /* Case1 :
-			    In this we pass one binding key and get back one binding Template and then displays the details*/
-			bindingKey_Array arrBindingKeys;
-			bindingKey * arrayBinding = new bindingKey[ARRAYSIZE];  
-			int i;
-			for (i = 0; i < ARRAYSIZE; i++)
-			 {
-				 arrayBinding[i] = new char[100];
-				 strcpy(arrayBinding[i],buffer);
-			 }
-			arrBindingKeys.set(arrayBinding,ARRAYSIZE);
-			cout << "invoking get_bindingDetail ...\n";			
-			bindingTemplate_Array* bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
-			outputSize = 0;
-			bindingTemplate ** arrayOutBinding = bindingTemplates->get(outputSize);			
-			cout << "bindingTemplate_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Binding Template " <<  i + 1 << endl;
-				cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
-				cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;	
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
-				{
-					cout << "\t Access Point " << endl;						
-					cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
-					cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;					
-				}*/
-				if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
-						int tModelInstanceInfoSize=0;
-						tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
-						cout << "\ttModelInstanceInfo..." << endl;
-						for(int k=0;k<tModelInstanceInfoSize;k++){
-							cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< endl;
-						}
-				}  
-			}
-
-
-			/* Case2:
-			   In this we pass 2 bindingKeys and get back two business Services */
-			
-			arrayBinding = new bindingKey[2];        
-			for (i = 0; i < 2; i++)
-			 {
-				 arrayBinding[i] = new char[100];				 
-			 } 
-			 strcpy(arrayBinding[0],buffer);
-			 strcpy(arrayBinding[1],"2ebf3e2e-58c0-4022-83a6-eed8b1eea6e8");
-			arrBindingKeys.set(arrayBinding,2);
-			cout << "\n\ninvoking get_bindingDetail ...\n";			
-			//Inquire *ws1 = new Inquire(endpoint); 
-			bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
-			outputSize = 0;
-			arrayOutBinding = bindingTemplates->get(outputSize);			
-			cout << "bindingTemplate_Array size = " <<  outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Binding Template " <<  i + 1 << endl;
-				cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
-				cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;	
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
-				{
-					cout << "\t Access Point " << endl;						
-					cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
-					cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;					
-				}*/
-				if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
-						int tModelInstanceInfoSize=0;
-						tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
-						cout << "\ttModelInstanceInfo..." << endl;
-						for(int k=0;k<tModelInstanceInfoSize;k++){
-							cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< endl;
-						}
-				}  
-
-			}
-
-			/* Case 3:
-			   In this we pass a non existing Binding Key */
-
-			
-			arrayBinding = new bindingKey[2];        
-			for (i = 0; i < 1; i++)
-			 {
-				 arrayBinding[i] = new char[100];	
-				 strcpy(arrayBinding[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
-			 } 
-			 
-			
-			arrBindingKeys.set(arrayBinding,1);			
-			//Inquire *ws2 = new Inquire(endpoint); 
-			cout << "\n\ninvoking get_bindingDetail ...\n";
-			bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
-			outputSize = 0;
-			arrayOutBinding = bindingTemplates->get(outputSize);			
-			cout << "bindingTemplate_Array size = " << outputSize << endl;
-			for( i = 0; i < outputSize; i++ ) 
-			{
-				cout << "Binding Template " <<  i + 1 << endl;
-				cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
-				cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;	
-				//Display Description
-				int outputSizeDesc=0;
-				description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
-				{
-					cout << "\t Access Point " << endl;						
-					cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
-					cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;					
-				}*/
-				
-				if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
-						int tModelInstanceInfoSize=0;
-						tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
-						cout << "\ttModelInstanceInfo..." << endl;
-						for(int k=0;k<tModelInstanceInfoSize;k++){
-							cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< 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 binding key and get back one binding Template and then displays the details*/
+                        bindingKey_Array arrBindingKeys;
+                        bindingKey * arrayBinding = new bindingKey[ARRAYSIZE];  
+                        int i;
+                        for (i = 0; i < ARRAYSIZE; i++)
+                         {
+                                 arrayBinding[i] = new char[100];
+                                 strcpy(arrayBinding[i],buffer);
+                         }
+                        arrBindingKeys.set(arrayBinding,ARRAYSIZE);
+                        cout << "invoking get_bindingDetail ...\n";                     
+                        bindingTemplate_Array* bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
+                        outputSize = 0;
+                        bindingTemplate ** arrayOutBinding = bindingTemplates->get(outputSize);                 
+                        cout << "bindingTemplate_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Binding Template " <<  i + 1 << endl;
+                                cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
+                                cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;    
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
+                                {
+                                        cout << "\t Access Point " << endl;                                             
+                                        cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
+                                        cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;                                        
+                                }*/
+                                if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
+                                                int tModelInstanceInfoSize=0;
+                                                tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
+                                                cout << "\ttModelInstanceInfo..." << endl;
+                                                for(int k=0;k<tModelInstanceInfoSize;k++){
+                                                        cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< endl;
+                                                }
+                                }  
+                        }
+
+
+                        /* Case2:
+                           In this we pass 2 bindingKeys and get back two business Services */
+                        
+                        arrayBinding = new bindingKey[2];        
+                        for (i = 0; i < 2; i++)
+                         {
+                                 arrayBinding[i] = new char[100];                                
+                         } 
+                         strcpy(arrayBinding[0],buffer);
+                         strcpy(arrayBinding[1],"2ebf3e2e-58c0-4022-83a6-eed8b1eea6e8");
+                        arrBindingKeys.set(arrayBinding,2);
+                        cout << "\n\ninvoking get_bindingDetail ...\n";                 
+                        //Inquire *ws1 = new Inquire(endpoint); 
+                        bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
+                        outputSize = 0;
+                        arrayOutBinding = bindingTemplates->get(outputSize);                    
+                        cout << "bindingTemplate_Array size = " <<  outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Binding Template " <<  i + 1 << endl;
+                                cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
+                                cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;    
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
+                                {
+                                        cout << "\t Access Point " << endl;                                             
+                                        cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
+                                        cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;                                        
+                                }*/
+                                if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
+                                                int tModelInstanceInfoSize=0;
+                                                tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
+                                                cout << "\ttModelInstanceInfo..." << endl;
+                                                for(int k=0;k<tModelInstanceInfoSize;k++){
+                                                        cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< endl;
+                                                }
+                                }  
+
+                        }
+
+                        /* Case 3:
+                           In this we pass a non existing Binding Key */
+
+                        
+                        arrayBinding = new bindingKey[2];        
+                        for (i = 0; i < 1; i++)
+                         {
+                                 arrayBinding[i] = new char[100];       
+                                 strcpy(arrayBinding[0],"05e39405-6216-46bd-8f4c-dad67cda4c15");
+                         } 
+                         
+                        
+                        arrBindingKeys.set(arrayBinding,1);                     
+                        //Inquire *ws2 = new Inquire(endpoint); 
+                        cout << "\n\ninvoking get_bindingDetail ...\n";
+                        bindingTemplates = ws->get_bindingDetail(&arrBindingKeys, cpname);
+                        outputSize = 0;
+                        arrayOutBinding = bindingTemplates->get(outputSize);                    
+                        cout << "bindingTemplate_Array size = " << outputSize << endl;
+                        for( i = 0; i < outputSize; i++ ) 
+                        {
+                                cout << "Binding Template " <<  i + 1 << endl;
+                                cout << "\t Binding Key Ref = " << arrayOutBinding[i]->bindingKey_Ref<<endl;
+                                cout << "\t Service Key Ref = " << arrayOutBinding[i]->serviceKey_Ref<<endl;    
+                                //Display Description
+                                int outputSizeDesc=0;
+                                description ** arrayDesc = arrayOutBinding[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( arrayOutBinding[i]->accessPoint_Ref)
+                                {
+                                        cout << "\t Access Point " << endl;                                             
+                                        cout << "\t\t Point = " << arrayOutBinding[i]->accessPoint_Ref->accessPoint_value << endl;
+                                        cout <<  "\t\t URL Type = " << arrayOutBinding[i]->accessPoint_Ref->URLType_Ref << endl;                                        
+                                }*/
+                                
+                                if(arrayOutBinding[i]->tModelInstanceDetails_Ref){
+                                                int tModelInstanceInfoSize=0;
+                                                tModelInstanceInfo ** arrtModelInstInfo = arrayOutBinding[i]->tModelInstanceDetails_Ref->tModelInstanceInfo_Ref->get(tModelInstanceInfoSize);
+                                                cout << "\ttModelInstanceInfo..." << endl;
+                                                for(int k=0;k<tModelInstanceInfoSize;k++){
+                                                        cout<<"\t\ttModelKey Value = " << arrtModelInstInfo[k]<< 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;
 }



Mime
View raw message