axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamej...@apache.org
Subject svn commit: r332466 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp
Date Fri, 11 Nov 2005 06:25:43 GMT
Author: jamejose
Date: Thu Nov 10 22:25:30 2005
New Revision: 332466

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

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

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp?rev=332466&r1=332465&r2=332466&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp Thu
Nov 10 22:25:30 2005
@@ -177,17 +177,16 @@
         // Test array
         xsd__anyURI_Array arrayInput;
 		int arraySize=2;
-		xsd__anyURI* array=new xsd__anyURI[arraySize]();        
+		xsd__anyURI* array=new xsd__anyURI[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
-            input = new char[25];
-            strcpy (input, simpleanyURI);
-            array[inputIndex] = input;
+            array[inputIndex]= new char[25];
+            strcpy (array[inputIndex], simpleanyURI);            
         }
 		arrayInput.set(array,arraySize);
-        xsd__anyURI_Array arrayResult = ws->asArray(arrayInput);
+        xsd__anyURI_Array* arrayResult = ws->asArray(&arrayInput);
 		int outputSize=0;
-		const xsd__anyURI *output= arrayResult.get(outputSize);
+		const xsd__anyURI *output= arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -213,7 +212,6 @@
             delete array[deleteIndex];
         }
         delete [] array;
-
 
         // Test complex type
         input = new char[25];



Mime
View raw message