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 su...@apache.org on 2003/10/06 11:57:37 UTC

cvs commit: ws-axis/c/src/client Call.h Call.cpp

susantha    2003/10/06 02:57:37

  Modified:    c/src/client Call.h Call.cpp
  Log:
  Added method for adding basic type array parameters
  
  Revision  Changes    Path
  1.9       +3 -1      ws-axis/c/src/client/Call.h
  
  Index: Call.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/Call.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Call.h	1 Oct 2003 12:47:40 -0000	1.8
  +++ Call.h	6 Oct 2003 09:57:37 -0000	1.9
  @@ -95,8 +95,10 @@
   
   	/* Method for adding complex parameters */
   	void AddParameter(void* pObject, void* pSZFunct, void* pDelFunct, const char* pchName);
  -	/* Method for adding array parameters */
  +	/* Method for adding complex type array parameters */
   	void AddParameter(Axis_Array* pArray, void* pSZFunct, void* pDelFunct, void* pSizeFunct, const char* pchTypeName);
  +	/* Method for adding basic type array parameters */
  +	void AddParameter(Axis_Array* pArray, XSDTYPE nType);
   
   	/* Methods for adding parameters of basic types */
   	void AddParameter(int nValue,const char* pchName);
  
  
  
  1.11      +11 -0     ws-axis/c/src/client/Call.cpp
  
  Index: Call.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/Call.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Call.cpp	1 Oct 2003 12:47:40 -0000	1.10
  +++ Call.cpp	6 Oct 2003 09:57:37 -0000	1.11
  @@ -178,6 +178,17 @@
   	pRetParam->SetName(pchName);
   }
   
  +/**
  + * Method used to add arrays of basic types as parameters
  + */
  +void Call::AddParameter(Axis_Array* pArray, XSDTYPE nType)
  +{
  +	IArrayBean* pAb = m_pIWSSZ->makeArrayBean(nType, (void*)(pArray->m_Array));
  +	pAb->AddDimension(pArray->m_Size);
  +	pAb->SetItemName("item");
  +	IParam* pRetParam = m_pIWSSZ->AddOutputParam(pAb);
  +}
  +
   void Call::AddParameter(Axis_Array* pArray, void* pSZFunct, void* pDelFunct, void* pSizeFunct, const char* pchTypeName)
   {
   	IArrayBean* pAb = m_pIWSSZ->makeArrayBean((void*)(pArray->m_Array), pSZFunct, pDelFunct, pDelFunct);