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 na...@apache.org on 2006/04/25 02:37:41 UTC
svn commit: r396749 -
/webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c
Author: nadiramra
Date: Mon Apr 24 17:37:40 2006
New Revision: 396749
URL: http://svn.apache.org/viewcvs?rev=396749&view=rev
Log:
C support fixes/enhancements.
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c?rev=396749&r1=396748&r2=396749&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/c/RecurseTypesClient.c Mon Apr 24 17:37:40 2006
@@ -31,13 +31,15 @@
Type1 *input,*output;
int i;
+ Type1_Array arrayIn;
+ Type1 ** array;
axiscAxisRegisterExceptionHandler(exceptionHandler);
if (argc>2 && strcmp(argv[1], "-e") == 0)
endpoint = argv[2];
- ws = get_RecurseTypesWS_stub();
+ ws = get_RecurseTypesWS_stub(endpoint);
input = (Type1 *)Axis_Create_Type1();
input->att_kind = axiscAxisNew(XSDC_STRING,strlen(Kind_CHEQUE) + 1);
@@ -45,8 +47,7 @@
input->kind = axiscAxisNew(XSDC_STRING,strlen("Check In") + 1);
strcpy(input->kind, "Check In");
- Type1_Array arrayIn;
- Type1 ** array = (Type1 **)malloc(sizeof(Type1 *) * 10);
+ array = (Type1 **)malloc(sizeof(Type1 *) * 10);
for ( i = 0; i < 10; i++ )
{
@@ -55,9 +56,9 @@
strcpy(array[i]->kind, "Sample");
array[i]->index = 0;
}
- arrayIn.followings->m_Array = array;
- arrayIn.followings->m_Size = 10;
- arrayIn.followings->m_Type = C_USER_TYPE;
+ arrayIn.m_Array = array;
+ arrayIn.m_Size = 10;
+ arrayIn.m_Type = C_USER_TYPE;
output = getInput(ws, input);
@@ -77,14 +78,14 @@
for ( i = 0; i < outputSize; i++ )
printf("\tKind [%d] = %s\n", i, outArray[i]->kind);
- Axis_Delete_Type1(array, 1, 10);
+ Axis_Delete_Type1((Type1 *)array, 1, 10);
/* TODO need to free resources */
returnValue = 0; // Success
}
- printf("---------------------- TEST COMPLETE -----------------------------"<< endl;
+ printf("---------------------- TEST COMPLETE -----------------------------\n");
return returnValue;
}