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 cb...@apache.org on 2005/02/12 06:23:44 UTC

cvs commit: ws-axis/c/src/common ArrayBean.cpp

cblecken    2005/02/11 21:23:44

  Modified:    c/src/common ArrayBean.cpp
  Log:
  Fixing further problems with missing prefixing (AXISCPP-197)
  
  Revision  Changes    Path
  1.33      +13 -11    ws-axis/c/src/common/ArrayBean.cpp
  
  Index: ArrayBean.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/ArrayBean.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ArrayBean.cpp	27 Jan 2005 08:32:37 -0000	1.32
  +++ ArrayBean.cpp	12 Feb 2005 05:23:44 -0000	1.33
  @@ -230,6 +230,8 @@
           /* this is to prevent serializing type information for basic array 
   	 * elements 
   	 */
  +	   	const AxisChar* pNamespace = pSZ.getNamespace();
  +       	        
          	if (RPC_ENCODED == nStyle) pSZ.setStyle(RPC_LITERAL); 
           switch (m_type)
           {
  @@ -239,7 +241,7 @@
                   char* p = (char*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -250,7 +252,7 @@
                   short* p = (short*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -261,7 +263,7 @@
                   LONGLONG* p = (LONGLONG*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -273,7 +275,7 @@
                   long* p = (long*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -284,7 +286,7 @@
                   double* p = (double*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -301,7 +303,7 @@
                   tm* p = (tm*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -313,7 +315,7 @@
                   int* p = (int*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -323,7 +325,7 @@
                   float* p = (float*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -336,7 +338,7 @@
                   AxisChar** p = (AxisChar**)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -346,7 +348,7 @@
                   xsd__hexBinary* p = (xsd__hexBinary*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }
  @@ -356,7 +358,7 @@
                   xsd__base64Binary* p = (xsd__base64Binary*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    pSZ.serializeAsElement(m_ItemName.c_str(), (void*)p, m_type);
  +                    pSZ.serializeAsElement(m_ItemName.c_str(), pNamespace, (void*)p, m_type);
                       p++;
                   }
               }