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 cd...@apache.org on 2005/05/31 07:04:18 UTC
cvs commit: ws-axis/c/samples/client/base Client.cpp
cdinapala 2005/05/30 22:04:17
Modified: c/samples/client/base Client.cpp
Log:
Modify the file for give solution to the JIRA issue AXISCPP-665.
Revision Changes Path
1.5 +8 -4 ws-axis/c/samples/client/base/Client.cpp
Index: Client.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/base/Client.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Client.cpp 8 Apr 2005 02:31:28 -0000 1.4
+++ Client.cpp 31 May 2005 05:04:17 -0000 1.5
@@ -156,8 +156,10 @@
// testing echo Struct
SOAPStruct stct;
- stct.varFloat = 12345.7346345;
- stct.varInt = 5000;
+ xsd__int integer = 5000;
+ xsd__float floatVal = 12345.7346345;
+ stct.varFloat = &floatVal;
+ stct.varInt = &integer;
stct.varString = strdup ("This is string in SOAPStruct");
printf ("invoking echoStruct...\n");
ws.setTransportProperty ("SOAPAction", "InteropBase#echoStruct");
@@ -172,8 +174,10 @@
arrstct.m_Size = ARRAYSIZE;
for (x = 0; x < ARRAYSIZE; x++)
{
- arrstct.m_Array[x].varFloat = 1.1111 * x;
- arrstct.m_Array[x].varInt = x;
+ integer = x;
+ floatVal = 1.1111 * x;
+ arrstct.m_Array[x].varFloat = &floatVal;
+ arrstct.m_Array[x].varInt = &integer;
sprintf (buffer1,
"varString of %dth element of SOAPStruct array", x);
arrstct.m_Array[x].varString = buffer1;