axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamej...@apache.org
Subject svn commit: r332472 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp
Date Fri, 11 Nov 2005 06:38:27 GMT
Author: jamejose
Date: Thu Nov 10 22:38:16 2005
New Revision: 332472

URL: http://svn.apache.org/viewcvs?rev=332472&view=rev
Log:
Updated the testcase with new Array APIs

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp?rev=332472&r1=332471&r2=332472&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp Thu Nov
10 22:38:16 2005
@@ -299,19 +299,20 @@
 
         // Test array
             
+		    
 		int arraySize = 2;
         xsd__ID_Array arrayInput;
-		xsd__ID * array=new xsd__ID[arraySize]();        
-        for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
+		xsd__ID * array=new xsd__ID[arraySize];        
+        for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
-            input = new char[25];
-            strcpy (input, simpleID);
-            array[inputIndex] = input;
+            array[inputIndex]= new char[25];
+            strcpy (array[inputIndex], simpleID);
+           
         }
         arrayInput.set(array,arraySize);
-        xsd__ID_Array arrayResult = ws->asArray(arrayInput);
+        xsd__ID_Array* arrayResult = ws->asArray(&arrayInput);
 		int outputSize=0;
-		const xsd__ID * output=arrayResult.get(outputSize);
+		const xsd__ID * output=arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {



Mime
View raw message