axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/client/samples/CalculatorC CalcClientC.c Calculator.c Calculator.h Point.c Point.h
Date Fri, 14 Nov 2003 11:31:45 GMT
damitha     2003/11/14 03:31:45

  Modified:    c/src/client/samples/CalculatorC Tag: CWrapperSupport
                        CalcClientC.c Calculator.c Calculator.h Point.c
                        Point.h
  Log:
  
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.4.4   +1 -1      ws-axis/c/src/client/samples/CalculatorC/CalcClientC.c
  
  Index: CalcClientC.c
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/CalculatorC/CalcClientC.c,v
  retrieving revision 1.1.4.3
  retrieving revision 1.1.4.4
  diff -u -r1.1.4.3 -r1.1.4.4
  --- CalcClientC.c	14 Nov 2003 11:25:12 -0000	1.1.4.3
  +++ CalcClientC.c	14 Nov 2003 11:31:44 -0000	1.1.4.4
  @@ -20,7 +20,7 @@
   
   	ret = AddPoint(p1,p2);
   
  -	printf("%s%d%s%d", "the resulting point is: ", ret->x,"--", ret->y);
  +	printf("The resulting point is:%d%s%d\n", ret->x,"--", ret->y);
   	
   	return 0;
   }
  
  
  
  1.1.2.4   +10 -11    ws-axis/c/src/client/samples/CalculatorC/Attic/Calculator.c
  
  Index: Calculator.c
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/CalculatorC/Attic/Calculator.c,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- Calculator.c	14 Nov 2003 11:25:12 -0000	1.1.2.3
  +++ Calculator.c	14 Nov 2003 11:31:44 -0000	1.1.2.4
  @@ -1,28 +1,27 @@
  -// Calculator.cpp: implementation of the Calculator class.
  -//
  -//////////////////////////////////////////////////////////////////////
  +/* Calculator.cpp: implementation of the Calculator class.*/
  +
   
   #include "Calculator.h"
   
   #include <axis/common/GDefine.h>
   
  -//Parameters and wrapper methods to manipulate Point
  +/*Parameters and wrapper methods to manipulate Point*/
   extern int Axis_DeSerialize_Point(Point* param, IWrapperSoapDeSerializer *pDZ);
   extern void* Axis_Create_Point(bool bArray, int nSize);
   extern void Axis_Delete_Point(Point* param, bool bArray, int nSize);
   extern int Axis_Serialize_Point(Point* param, IWrapperSoapSerializer* pSZ, bool bArray);
   extern int Axis_GetSize_Point(Point* param);
   
  -//Parameters and wrapper methods to manipulate Polygon
  +/*Parameters and wrapper methods to manipulate Polygon*/
   extern int Axis_DeSerialize_Polygon(Polygon* param, IWrapperSoapDeSerializer *pDZ);
   extern void* Axis_Create_Polygon(bool bArray, int nSize);
   extern void Axis_Delete_Polygon(Polygon* param, bool bArray, int nSize);
   extern int Axis_Serialize_Polygon(Polygon* param, IWrapperSoapSerializer* pSZ, bool bArray);
   extern int Axis_GetSize_Polygon(Polygon* param);
   
  -//////////////////////////////////////////////////////////////////////
  -// Construction/Destruction
  -//////////////////////////////////////////////////////////////////////
  +
  +/* Construction/Destruction*/
  +
   Call* g_pCalculator = NULL;
   
   int Add(int a, int b)
  @@ -64,7 +63,7 @@
   	if (SUCCESS != pCall->Initialize(g_pCalculator)) return NULL;
   	pCall->SetHeader(g_pCalculator, "SOAPAction", "Calculator");
   	pCall->SetSOAPVersion(g_pCalculator, SOAP_VER_1_1);
  -	pCall->SetOperation(g_pCalculator, "AddPoint", "http://www.opensource.lk/");//this
should be done before adding parameters or return type
  +	pCall->SetOperation(g_pCalculator, "AddPoint", "http://www.opensource.lk/");/*this
should be done before adding parameters or return type*/
   	pCall->AddCmplxParameter(g_pCalculator, p1, (void*) Axis_Serialize_Point, (void*) Axis_Delete_Point,
"p1");
   	pCall->AddCmplxParameter(g_pCalculator, p2, (void*) Axis_Serialize_Point, (void*) Axis_Delete_Point,
"p2");
   	pCall->SetCmplxReturnType(g_pCalculator, (void*) Axis_DeSerialize_Point, (void*) Axis_Create_Point,
(void*) Axis_Delete_Point, Axis_TypeName_Point, Axis_URI_Point);
  @@ -87,7 +86,7 @@
   	pCall = g_pCalculator->__vfptr;
   	if (SUCCESS != pCall->Initialize(g_pCalculator)) return RetArray;
   	pCall->SetSOAPVersion(g_pCalculator, SOAP_VER_1_1);
  -	pCall->SetOperation(g_pCalculator, "EchoPointArray", "http://www.opensource.lk/");//this
should be done before adding parameters or return type
  +	pCall->SetOperation(g_pCalculator, "EchoPointArray", "http://www.opensource.lk/");/*this
should be done before adding parameters or return type*/
   	pCall->AddCmplxArrayParameter(g_pCalculator, (Axis_Array*)(&Array), (void*) Axis_Serialize_Point,
(void*) Axis_Delete_Point, (void*) Axis_GetSize_Point, Axis_TypeName_Point, Axis_URI_Point,
"PointArray");
   	pCall->SetCmplxArrayReturnType(g_pCalculator, (Axis_Array*)(&RetArray), (void*)
Axis_DeSerialize_Point, (void*) Axis_Create_Point, (void*) Axis_Delete_Point, (void*) Axis_GetSize_Point,
Axis_TypeName_Point, Axis_URI_Point);
   	nStatus = pCall->Invoke(g_pCalculator);
  @@ -111,7 +110,7 @@
   	pCall = g_pCalculator->__vfptr;
   	if (SUCCESS != pCall->Initialize(g_pCalculator)) return NULL;
   	pCall->SetSOAPVersion(g_pCalculator, SOAP_VER_1_1);
  -	pCall->SetOperation(g_pCalculator, "EchoPolygon", "http://www.opensource.lk/");//this
should be done before adding parameters or return type
  +	pCall->SetOperation(g_pCalculator, "EchoPolygon", "http://www.opensource.lk/");/*this
should be done before adding parameters or return type*/
   	pCall->AddCmplxParameter(g_pCalculator, p, (void*) Axis_Serialize_Polygon, (void*)
Axis_Delete_Polygon, "p");
   	pCall->SetCmplxReturnType(g_pCalculator, (void*) Axis_DeSerialize_Polygon, (void*)
Axis_Create_Polygon, (void*) Axis_Delete_Polygon, Axis_TypeName_Polygon, Axis_URI_Polygon);
   	nStatus = pCall->Invoke(g_pCalculator);
  
  
  
  1.4.4.2   +4 -4      ws-axis/c/src/client/samples/CalculatorC/Calculator.h
  
  Index: Calculator.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/CalculatorC/Calculator.h,v
  retrieving revision 1.4.4.1
  retrieving revision 1.4.4.2
  diff -u -r1.4.4.1 -r1.4.4.2
  --- Calculator.h	11 Nov 2003 04:35:48 -0000	1.4.4.1
  +++ Calculator.h	14 Nov 2003 11:31:44 -0000	1.4.4.2
  @@ -1,6 +1,6 @@
  -// Calculator.h: interface for the Calculator class.
  -//
  -//////////////////////////////////////////////////////////////////////
  +/* Calculator.h: interface for the Calculator class.*/
  +
  +
   
   #if !defined(AFX_CALCULATOR_H__B5394466_ACFF_4962_B259_B0891BBB4775__INCLUDED_)
   #define AFX_CALCULATOR_H__B5394466_ACFF_4962_B259_B0891BBB4775__INCLUDED_
  @@ -13,4 +13,4 @@
   extern int Add(int,int);
   extern Point* AddPoint(Point*, Point*);
   
  -#endif // !defined(AFX_CALCULATOR_H__B5394466_ACFF_4962_B259_B0891BBB4775__INCLUDED_)
  +#endif /* !defined(AFX_CALCULATOR_H__B5394466_ACFF_4962_B259_B0891BBB4775__INCLUDED_)*/
  
  
  
  1.1.2.2   +6 -6      ws-axis/c/src/client/samples/CalculatorC/Attic/Point.c
  
  Index: Point.c
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/CalculatorC/Attic/Point.c,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Point.c	11 Nov 2003 04:35:48 -0000	1.1.2.1
  +++ Point.c	14 Nov 2003 11:31:44 -0000	1.1.2.2
  @@ -3,7 +3,7 @@
   #include <axis/common/IWrapperSoapDeSerializer.h>
   #include <axis/common/IWrapperSoapSerializer.h>
   
  -//Parameters and wrapper methos to manipulate Point
  +/*Parameters and wrapper methos to manipulate Point*/
   int Axis_DeSerialize_Point(Point* p, IWrapperSoapDeSerializer *pDZ)
   {
   	IWrapperSoapDeSerializerX* pDZX = pDZ->__vfptr;
  @@ -50,7 +50,7 @@
   	return sizeof(Point);
   }
   
  -//Parameters and wrapper methods to manipulate Polygon
  +/*Parameters and wrapper methods to manipulate Polygon*/
   int Axis_DeSerialize_Polygon(Polygon* p, IWrapperSoapDeSerializer *pDZ)
   {
   	Axis_Array array;
  @@ -58,7 +58,7 @@
   	p->name = pDZX->GetString(pDZ);
   	array = pDZX->GetCmplxArray(pDZ, (void*)Axis_DeSerialize_Point, (void*)Axis_Create_Point,
(void*)Axis_Delete_Point, (void*)Axis_GetSize_Point, Axis_TypeName_Point, Axis_URI_Point);

   	memcpy(&p->points, &array, sizeof(Axis_Array));
  -	if (p->points.m_Size < 1) return FAIL; //CF_ZERO_ARRAY_SIZE_ERROR
  +	if (p->points.m_Size < 1) return FAIL; /*CF_ZERO_ARRAY_SIZE_ERROR*/
   	return SUCCESS;
   }
   
  @@ -76,7 +76,7 @@
   	Polygon* pTemp;
   	if (bArray)
   	{
  -		//delete any pointer members or array members of this struct here
  +		/*delete any pointer members or array members of this struct here*/
   		pTemp = p;
   		for (x=0; x<nSize; x++)
   		{
  @@ -87,7 +87,7 @@
   	}
   	else
   	{
  -		//delete any pointer members or array members of this struct here
  +		/*delete any pointer members or array members of this struct here*/
   		Axis_Delete_Point(p->points.m_Array, true, p->points.m_Size);
   		free(p);
   	}
  @@ -108,7 +108,7 @@
   			Axis_URI_Polygon, "\">", NULL);
   	}
   	pSZX->Serialize(pSZ, pSZX->SerializeBasicType(pSZ, "name", p->name, XSD_STRING),
NULL);
  -	//Serialize array.
  +	/*Serialize array.*/
   	pSZX->SerializeCmplxArray(pSZ, (Axis_Array*)(&p->points), 
   		(void*) Axis_Serialize_Point, (void*) Axis_Delete_Point, (void*) Axis_GetSize_Point,

   		Axis_TypeName_Point, Axis_URI_Point, "points");
  
  
  
  1.3.4.2   +1 -1      ws-axis/c/src/client/samples/CalculatorC/Point.h
  
  Index: Point.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/CalculatorC/Point.h,v
  retrieving revision 1.3.4.1
  retrieving revision 1.3.4.2
  diff -u -r1.3.4.1 -r1.3.4.2
  --- Point.h	11 Nov 2003 04:35:48 -0000	1.3.4.1
  +++ Point.h	14 Nov 2003 11:31:44 -0000	1.3.4.2
  @@ -26,4 +26,4 @@
   static const char* Axis_URI_Polygon = "http://www.opensource.lk/Polygon";
   static const char* Axis_TypeName_Polygon = "Polygon";
   
  -#endif //__POINT_PARAM_H__INCLUDED_
  \ No newline at end of file
  +#endif /*__POINT_PARAM_H__INCLUDED_*/
  
  
  

Mime
View raw message