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 ro...@apache.org on 2003/10/22 07:02:39 UTC

cvs commit: ws-axis/c/src/client/samples/Calculator Point.cpp Calculator.cpp

roshan      2003/10/21 22:02:39

  Modified:    c/src/client/samples/Calculator Point.cpp Calculator.cpp
  Log:
  fixed the following problem: There were method calls to Call->AddParameter with passing only 2 arguments. Changes those code to pass 3 arguments
  
  Revision  Changes    Path
  1.6       +3 -3      ws-axis/c/src/client/samples/Calculator/Point.cpp
  
  Index: Point.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/Calculator/Point.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Point.cpp	20 Oct 2003 03:27:51 -0000	1.5
  +++ Point.cpp	22 Oct 2003 05:02:39 -0000	1.6
  @@ -44,8 +44,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;
   }
  @@ -115,7 +115,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, 
  
  
  
  1.20      +4 -2      ws-axis/c/src/client/samples/Calculator/Calculator.cpp
  
  Index: Calculator.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/samples/Calculator/Calculator.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Calculator.cpp	20 Oct 2003 08:40:18 -0000	1.19
  +++ Calculator.cpp	22 Oct 2003 05:02:39 -0000	1.20
  @@ -41,7 +41,9 @@
   	/* The value for SOAPAction is specified in the binding section of the WSDL */
   	m_pCall->SetHeader("SOAPAction", "servicename");
   	/* End point URI too can be taken from WSDL */
  +
   	m_pCall->SetEndpointURI("http://localhost/axis/Calculator");
  +
   }
   
   Calculator::~Calculator()
  @@ -59,8 +61,8 @@
   	m_pCall->SetSOAPVersion(SOAP_VER_1_1);
   	/* This should be done before adding parameters or return type */
   	m_pCall->SetOperation("Add", "http://www.opensource.lk/");
  -	m_pCall->AddParameter(a, "a");
  -	m_pCall->AddParameter(b, "b");
  +	m_pCall->AddParameter(a, "a", XSD_INT);
  +	m_pCall->AddParameter(b, "b", XSD_INT);
   	m_pCall->SetReturnType(XSD_INT);
   	nStatus = m_pCall->Invoke();
   	if (SUCCESS == nStatus)