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 ja...@apache.org on 2005/09/26 14:31:18 UTC
svn commit: r291612 -
/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp
Author: jamejose
Date: Mon Sep 26 05:31:05 2005
New Revision: 291612
URL: http://svn.apache.org/viewcvs?rev=291612&view=rev
Log:
Updated SimpleArrayDocClient to echo some large numbers
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp?rev=291612&r1=291611&r2=291612&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp Mon Sep 26 05:31:05 2005
@@ -22,7 +22,7 @@
#include <axis/AxisException.hpp>
#include <iostream>
-#define ARRAYSIZE 2
+#define ARRAYSIZE 100
int main(int argc, char* argv[])
{
@@ -44,20 +44,19 @@
ArrayTestPortType ws(endpoint);
//testing echoIntArray
intArrayType arrin;
+ intArrayType* arrout;
arrin.intItem.m_Array = new int*[ARRAYSIZE];
int * intArray = new int[ARRAYSIZE];
arrin.intItem.m_Size = ARRAYSIZE;
for (x=0;x<ARRAYSIZE;x++)
{
- intArray[x] = x;
+ intArray[x] = x + 1000;
arrin.intItem.m_Array[x] = &intArray[x];
}
cout << "invoking echoIntArray..."<<endl;
- if (ws.echoIntArray(&arrin)->intItem.m_Array != NULL)
- cout << "successful "<<endl;
- else
- cout << "failed "<<endl;
-
+ arrout=ws.echoIntArray(&arrin);
+ for(x=0;x<ARRAYSIZE;x++)
+ cout << *(arrout->intItem.m_Array[x])<<endl;
bSuccess = true;
}
catch(AxisException& e)