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 du...@apache.org on 2005/11/29 09:08:06 UTC

svn commit: r349665 - in /webservices/axis/trunk/c/src: common/Param.cpp common/Param.h engine/client/Call.cpp soap/SoapSerializer.cpp soap/SoapSerializer.h

Author: dushshantha
Date: Tue Nov 29 00:07:38 2005
New Revision: 349665

URL: http://svn.apache.org/viewcvs?rev=349665&view=rev
Log:
rollback the changed i have made as a fix to AXISCPP-843 becouse it is fixed.

Modified:
    webservices/axis/trunk/c/src/common/Param.cpp
    webservices/axis/trunk/c/src/common/Param.h
    webservices/axis/trunk/c/src/engine/client/Call.cpp
    webservices/axis/trunk/c/src/soap/SoapSerializer.cpp
    webservices/axis/trunk/c/src/soap/SoapSerializer.h

Modified: webservices/axis/trunk/c/src/common/Param.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/common/Param.cpp?rev=349665&r1=349664&r2=349665&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/common/Param.cpp (original)
+++ webservices/axis/trunk/c/src/common/Param.cpp Tue Nov 29 00:07:38 2005
@@ -153,7 +153,7 @@
             {
 				TRACE_SERIALIZE_FUNCT_ENTRY(m_Value.pCplxObj->pSZFunct, m_Value.pCplxObj->pObject, &pSZ, false);
                 int stat = AXIS_FAIL;
-                stat = m_Value.pCplxObj->pSZFunct (m_Value.pCplxObj->pObject, &pSZ, false, nsQualified);
+                stat = m_Value.pCplxObj->pSZFunct (m_Value.pCplxObj->pObject, &pSZ, false);
 				TRACE_SERIALIZE_FUNCT_EXIT(m_Value.pCplxObj->pSZFunct, stat);
             }
             else
@@ -164,7 +164,7 @@
                  */
 				TRACE_SERIALIZE_FUNCT_ENTRY(m_Value.pCplxObj->pSZFunct, m_Value.pCplxObj->pObject, &pSZ, false);
                 int stat = AXIS_FAIL;
-                stat = m_Value.pCplxObj->pSZFunct (m_Value.pCplxObj->pObject, &pSZ, false, nsQualified);
+                stat = m_Value.pCplxObj->pSZFunct (m_Value.pCplxObj->pObject, &pSZ, false);
 				TRACE_SERIALIZE_FUNCT_EXIT(m_Value.pCplxObj->pSZFunct, stat);
 
 				pSZ.serialize ("</", m_sName.c_str (), ">\n", NULL);
@@ -258,16 +258,6 @@
 void Param::setName (const AxisChar* sName)
 {
     m_sName = sName;
-}
-
-bool Param::getNsQualified()
-{
-	return nsQualified;
-}
-
-void Param::setNsQualified(bool nsq)
-{
-	nsQualified = nsq;
 }
 
 // ComplexObjectHandler functions

Modified: webservices/axis/trunk/c/src/common/Param.h
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/common/Param.h?rev=349665&r1=349664&r2=349665&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/common/Param.h (original)
+++ webservices/axis/trunk/c/src/common/Param.h Tue Nov 29 00:07:38 2005
@@ -63,8 +63,7 @@
     AxisString m_strPrefix; /* needed in serialization only */
     AxisString m_strUri; /* needed in serialization only */
     IAnySimpleType* m_AnySimpleType;
-    bool nsQualified;
-
+    
 public: 
     void setValue(XSDTYPE nType, IAnySimpleType* value);
     int serialize(SoapSerializer& pSZ);
@@ -76,8 +75,6 @@
     int setUserType(void* pObject, AXIS_DESERIALIZE_FUNCT pDZFunct, 
         AXIS_OBJECT_DELETE_FUNCT pDelFunct);
     void setName(const AxisChar* sName);
-    bool getNsQualified();
-    void setNsQualified(bool nsq);
 };
 
 AXIS_CPP_NAMESPACE_END

Modified: webservices/axis/trunk/c/src/engine/client/Call.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/engine/client/Call.cpp?rev=349665&r1=349664&r2=349665&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/engine/client/Call.cpp (original)
+++ webservices/axis/trunk/c/src/engine/client/Call.cpp Tue Nov 29 00:07:38 2005
@@ -160,10 +160,10 @@
 }
 
 void Call::addCmplxParameter (void* pObject, void* pSZFunct, void* pDelFunct,
-    const AxisChar* pName, const AxisChar* pNamespace, bool nsQualified)
+    const AxisChar* pName, const AxisChar* pNamespace)
 {
      m_nStatus = m_pIWSSZ->addOutputCmplxParam (pObject, pSZFunct, pDelFunct, pName,
-        pNamespace, nsQualified);
+        pNamespace);
 }
 
 int Call::invoke ()

Modified: webservices/axis/trunk/c/src/soap/SoapSerializer.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/SoapSerializer.cpp?rev=349665&r1=349664&r2=349665&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapSerializer.cpp (original)
+++ webservices/axis/trunk/c/src/soap/SoapSerializer.cpp Tue Nov 29 00:07:38 2005
@@ -236,8 +236,7 @@
 										 void * pSZFunct, 
                                          void * pDelFunct,
 										 const AxisChar * pName,
-                                         const AxisChar * pNamespace,
-                                         bool nsQualified)
+                                         const AxisChar * pNamespace)
 { 
 	int	iSuccess = AXIS_SUCCESS;
 
@@ -247,8 +246,7 @@
     pParam->m_Value.pCplxObj->pObject = pObject;
     pParam->m_Value.pCplxObj->pSZFunct = (AXIS_SERIALIZE_FUNCT) pSZFunct;
     pParam->m_Value.pCplxObj->pDelFunct = (AXIS_OBJECT_DELETE_FUNCT) pDelFunct;
-	pParam->setNsQualified(nsQualified);
-    if( m_pSoapEnvelope &&
+	if( m_pSoapEnvelope &&
 		(m_pSoapEnvelope->m_pSoapBody) &&
 		(m_pSoapEnvelope->m_pSoapBody->m_pSoapMethod)) 
     {
@@ -848,21 +846,11 @@
 int SoapSerializer::serializeAsElement( const AxisChar * pName, 
                                         const AxisChar * pNamespace,
                                         void * pValue, 
-                                        XSDTYPE type,
-                                        bool nsQualified) 
+                                        XSDTYPE type) 
 {
     IAnySimpleType* pSimpleType = AxisUtils::createSimpleTypeObject(pValue, type);
     int ret;
-    if (nsQualified)
-    {
-    	ret = serializeAsElement(pName, pNamespace, pSimpleType);
-    }
-    else
-    {
-    	ret = serializeAsElement(pName, NULL, pSimpleType);
-    }
-    
-    
+    ret = serializeAsElement(pName, pNamespace, pSimpleType);
     // Samisa: got to clean memory allocated in AxisUtils::createSimpleTypeObject
     delete pSimpleType;
 

Modified: webservices/axis/trunk/c/src/soap/SoapSerializer.h
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/SoapSerializer.h?rev=349665&r1=349664&r2=349665&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapSerializer.h (original)
+++ webservices/axis/trunk/c/src/soap/SoapSerializer.h Tue Nov 29 00:07:38 2005
@@ -134,7 +134,7 @@
 
     /* for complex types */
     int AXISCALL addOutputCmplxParam(void* pObject, void* pSZFunct, 
-        void* pDelFunct, const AxisChar* pName, const AxisChar* pNamespace, bool nsQualified = false);
+        void* pDelFunct, const AxisChar* pName, const AxisChar* pNamespace);
 
     int AXISCALL addFaultDetail(void* pObject, void* pSZFunct,
         void* pDelFunct, const AxisChar* pName, const AxisChar* pNamespace );
@@ -209,8 +209,7 @@
     int AXISCALL serializeAsElement(const AxisChar* pchName,
                                     const AxisChar* pNamespace,
                                     void* pValue,
-                                    XSDTYPE type,
-                                    bool nsQualified = false);
+                                    XSDTYPE type);
     int AXISCALL serializeAsElement(const AxisChar* pchName,
                                     IAnySimpleType* pSimpleType);
 	int AXISCALL serializeAsElement(const AxisChar* pchName,