Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 89030 invoked from network); 10 Nov 2005 10:05:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Nov 2005 10:05:50 -0000 Received: (qmail 6255 invoked by uid 500); 10 Nov 2005 10:05:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6227 invoked by uid 500); 10 Nov 2005 10:05:48 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 6216 invoked by uid 99); 10 Nov 2005 10:05:48 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 Nov 2005 02:05:48 -0800 Received: (qmail 88875 invoked by uid 65534); 10 Nov 2005 10:05:28 -0000 Message-ID: <20051110100528.88874.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r332259 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gMonthClient.cpp Date: Thu, 10 Nov 2005 10:05:27 -0000 To: axis-cvs@ws.apache.org From: jamejose@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jamejose Date: Thu Nov 10 02:05:06 2005 New Revision: 332259 URL: http://svn.apache.org/viewcvs?rev=332259&view=rev Log: Updated the testcase with new Array APIs Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gMonthClient.cpp 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=332259&r1=332258&r2=332259&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 Nov 10 02:05:06 2005 @@ -116,25 +116,30 @@ */ // Test array xsd__gMonth_Array arrayInput; - arrayInput.m_Array = new xsd__gMonth*[2]; - xsd__gMonth * array = new xsd__gMonth[2]; - arrayInput.m_Size = 2; - for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++) + int arraySize =2; + xsd__gMonth ** array = new xsd__gMonth*[arraySize]; + + for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++) { - array[inputIndex] = time; - arrayInput.m_Array[inputIndex] = &array[inputIndex]; + array[inputIndex] = new xsd__gMonth(time); + } - xsd__gMonth_Array arrayResult = ws->asArray(arrayInput); - cout << "array of " << arrayResult.m_Size << " elements" << endl; - for (int index = 0; index < arrayResult.m_Size ; index++) + arrayInput.set(array,arraySize); + xsd__gMonth_Array* arrayResult = ws->asArray(&arrayInput); + int outputSize = 0; + const xsd__gMonth ** output = arrayResult->get(outputSize); + cout << "array of " << outputSize << " elements" << endl; + for (int index = 0; index < outputSize ; index++) { - strftime(returnString, 50, "%b", arrayResult.m_Array[index]); - cout << " element[" << index << "]=" << returnString << endl; - delete arrayResult.m_Array[index]; + strftime(returnString, 50, "%b", output[index]); + cout << " element[" << index << "]=" << returnString << endl; + } + // Clear up input array + for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ ) + { + delete array[deleteIndex]; } delete [] array; - delete [] arrayInput.m_Array; - delete [] arrayResult.m_Array; // Test complex type SimpleComplexType complexTypeInput;