You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2004/08/04 15:45:00 UTC
cvs commit: ws-axis/c/samples/client/interoptests/cgroupB InteropTestPortTypeB.h InteropTestPortTypeB.c InteropGroupBClient.c
sanjaya 2004/08/04 06:45:00
Modified: c/samples/client/interoptests/cgroupB Tag:
NamespaceTesting_branch InteropTestPortTypeB.h
InteropTestPortTypeB.c InteropGroupBClient.c
Log:
Changed the parameter orders of cgroupb hand written client side sample
to conform with WSDL2Ws changes
Revision Changes Path
No revision
No revision
1.5.10.1 +2 -2 ws-axis/c/samples/client/interoptests/cgroupB/InteropTestPortTypeB.h
Index: InteropTestPortTypeB.h
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/cgroupB/InteropTestPortTypeB.h,v
retrieving revision 1.5
retrieving revision 1.5.10.1
diff -u -r1.5 -r1.5.10.1
--- InteropTestPortTypeB.h 14 Jun 2004 08:00:44 -0000 1.5
+++ InteropTestPortTypeB.h 4 Aug 2004 13:45:00 -0000 1.5.10.1
@@ -14,8 +14,8 @@
extern void* get_InteropTestPortTypeB_stub(const char* pchEndPointUri);
extern void destroy_InteropTestPortTypeB_stub(void* p);
-extern void echoStructAsSimpleTypes(void* pStub, SOAPStruct* Value0, AXIS_OUT_PARAM float *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM xsd__string *OutValue2);
-extern SOAPStruct* echoSimpleTypesAsStruct(void* pStub, float Value0, int Value1, xsd__string Value2);
+extern void echoStructAsSimpleTypes(void* pStub, SOAPStruct* Value0, AXIS_OUT_PARAM xsd__string *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM float *OutValue2);
+extern SOAPStruct* echoSimpleTypesAsStruct(void* pStub, xsd__string Value0, int Value1, float Value2);
extern SOAPStructStruct* echoNestedStruct(void* pStub, SOAPStructStruct* Value0);
extern SOAPArrayStruct* echoNestedArray(void* pStub, SOAPArrayStruct* Value0);
1.7.10.1 +4 -4 ws-axis/c/samples/client/interoptests/cgroupB/InteropTestPortTypeB.c
Index: InteropTestPortTypeB.c
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/cgroupB/InteropTestPortTypeB.c,v
retrieving revision 1.7
retrieving revision 1.7.10.1
diff -u -r1.7 -r1.7.10.1
--- InteropTestPortTypeB.c 27 Apr 2004 03:23:05 -0000 1.7
+++ InteropTestPortTypeB.c 4 Aug 2004 13:45:00 -0000 1.7.10.1
@@ -36,7 +36,7 @@
/*
* This method wrap the service methodechoStructAsSimpleTypes
*/
-void echoStructAsSimpleTypes(void* pStub, SOAPStruct* Value0, AXIS_OUT_PARAM float *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM xsd__string *OutValue2)
+void echoStructAsSimpleTypes(void* pStub, SOAPStruct* Value0, AXIS_OUT_PARAM xsd__string *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM float *OutValue2)
{
Call* pCall = (Call*)pStub;
/* Following will establish the connections with the server too */
@@ -49,9 +49,9 @@
{
if(AXIS_SUCCESS == pCall->_functions->checkMessage(pCall->_object, "echoStructAsSimpleTypesResponse", "http://soapinterop.org/"))
{
- *OutValue0 = pCall->_functions->getElementAsFloat(pCall->_object, "outputFloat", 0);
+ *OutValue0 = pCall->_functions->getElementAsString(pCall->_object, "outputString", 0);
*OutValue1 = pCall->_functions->getElementAsInt(pCall->_object, "outputInteger", 0);
- *OutValue2 = pCall->_functions->getElementAsString(pCall->_object, "outputString", 0);
+ *OutValue2 = pCall->_functions->getElementAsFloat(pCall->_object, "outputFloat", 0);
}
}
pCall->_functions->unInitialize(pCall->_object);
@@ -61,7 +61,7 @@
/*
* This method wrap the service methodechoSimpleTypesAsStruct
*/
-SOAPStruct* echoSimpleTypesAsStruct(void* pStub, float Value0, int Value1, xsd__string Value2)
+SOAPStruct* echoSimpleTypesAsStruct(void* pStub, xsd__string Value0, int Value1, float Value2)
{
Call* pCall = (Call*)pStub;
SOAPStruct* pReturn = NULL;
1.4.10.1 +2 -2 ws-axis/c/samples/client/interoptests/cgroupB/InteropGroupBClient.c
Index: InteropGroupBClient.c
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/cgroupB/InteropGroupBClient.c,v
retrieving revision 1.4
retrieving revision 1.4.10.1
diff -u -r1.4 -r1.4.10.1
--- InteropGroupBClient.c 27 Jun 2004 04:53:47 -0000 1.4
+++ InteropGroupBClient.c 4 Aug 2004 13:45:00 -0000 1.4.10.1
@@ -62,7 +62,7 @@
/*testing echo Simple types as struct*/
str = strdup("content of string passed");
printf("invoking echoSimpleTypesAsStruct...\n");
- if (echoSimpleTypesAsStruct(pstub, 12345.67890, 5000, str) != NULL)
+ if (echoSimpleTypesAsStruct(pstub, str, 5000, 12345.67890) != NULL)
printf("successful\n");
else
printf("failed\n");
@@ -72,7 +72,7 @@
ss.varInt = 5000;
ss.varString = strdup("content of string passed");
printf("invoking echoStructAsSimpleTypes...\n");
- echoStructAsSimpleTypes(pstub, &ss, &outFloat, &outInt, &outStr);
+ echoStructAsSimpleTypes(pstub, &ss, &outStr, &outInt, &outFloat);
if (outInt == 5000 && (0 == strcmp(outStr,"content of string passed")) && outFloat > 12345.67)
printf("successful\n");
else