axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/server/samples/cppservicewrapper CPPServiceWrapper.cpp
Date Wed, 22 Oct 2003 04:58:21 GMT
roshan      2003/10/21 21:58:21

  Modified:    c/src/server/samples/cppservicewrapper CPPServiceWrapper.cpp
  Log:
  bug fix
  
  Revision  Changes    Path
  1.12      +6 -6      ws-axis/c/src/server/samples/cppservicewrapper/CPPServiceWrapper.cpp
  
  Index: CPPServiceWrapper.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/samples/cppservicewrapper/CPPServiceWrapper.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CPPServiceWrapper.cpp	16 Oct 2003 08:12:23 -0000	1.11
  +++ CPPServiceWrapper.cpp	22 Oct 2003 04:58:21 -0000	1.12
  @@ -42,8 +42,8 @@
   			<< Axis_TypeName_Point << "\" xmlns:" << sPrefix << "=\"" 
   			<< Axis_URI_Point << "\">";
   	}
  -	pSZ << pSZ.SerializeBasicType("x", p->x);
  -	pSZ << pSZ.SerializeBasicType("y", p->y);
  +	pSZ << pSZ.SerializeBasicType("x", p->x, XSD_INT);
  +	pSZ << pSZ.SerializeBasicType("y", p->y, XSD_INT);
   	pSZ << "</" << Axis_TypeName_Point << ">";
   	return SUCCESS;
   }
  @@ -185,7 +185,7 @@
   			<< Axis_TypeName_Polygon << "\" xmlns:" << sPrefix << "=\""

   			<< Axis_URI_Polygon << "\">";
   	}
  -	pSZ << pSZ.SerializeBasicType("name", p->name);
  +	pSZ << pSZ.SerializeBasicType("name", p->name, XSD_STRING);
   	//Serialize array.
   	pSZ.SerializeArray((Axis_Array*)(&p->points), 
   		(void*) Axis_Serialize_Point, (void*) Axis_Delete_Point, (void*) Axis_GetSize_Point,

  @@ -266,7 +266,7 @@
   	//Call actual web service method with appropriate parameters
   	double ret = pWs->Distance(v0, v1);
   
  -	return pIWSSZ->AddOutputParam("DistanceReturn", ret);
  +	return pIWSSZ->AddOutputParam("DistanceReturn", ret, XSD_DOUBLE);
   }
   
   int CPPServiceWrapper::AddPoint(IMessageData* mc)
  @@ -310,7 +310,7 @@
   	//Call actual web service method with appropriate parameters
   	int ret = pWs->Add(v0, v1);
   
  -	return pIWSSZ->AddOutputParam("AddReturn", ret);
  +	return pIWSSZ->AddOutputParam("AddReturn", ret, XSD_INT);
   }
   
   int CPPServiceWrapper::Perimeter(IMessageData* mc)
  @@ -330,7 +330,7 @@
   	//Call actual web service method with appropriate parameters
   	double ret = pWs->Perimeter(v0);
   
  -	return pIWSSZ->AddOutputParam("PerimeterReturn", ret);
  +	return pIWSSZ->AddOutputParam("PerimeterReturn", ret, XSD_DOUBLE);
   }
   
   int CPPServiceWrapper::EchoPointArray(IMessageData* mc)
  
  
  

Mime
View raw message