axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r380165 - /webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp
Date Thu, 23 Feb 2006 17:23:35 GMT
Author: dicka
Date: Thu Feb 23 09:23:32 2006
New Revision: 380165

URL: http://svn.apache.org/viewcvs?rev=380165&view=rev
Log:
AXISCPP-938

Add check for soap encoding namespace, when validating rpc/encoded messages while deserializing
basic types.

Modified:
    webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp

Modified: webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp?rev=380165&r1=380164&r2=380165&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp (original)
+++ webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp Thu Feb 23 09:23:32 2006
@@ -2277,27 +2277,27 @@
 {
     /* first check whether this is a start element node */
     if (START_ELEMENT != pElement->m_type)
-	return XSD_UNKNOWN;
+    {
+        return XSD_UNKNOWN;
+    }
     for (int i = 0; pElement->m_pchAttributes[i]; i += 3)
     {
-	if (URI_XSI == URIMapping::getURI (pElement->m_pchAttributes[i + 1]))
-	{
-	    ::QName qn;
-	    XSDTYPE
-		type = XSD_UNKNOWN;
-	    qn.splitQNameString (pElement->m_pchAttributes[i + 2], ':');
-	    const char *
-		pNS = m_pParser->getNS4Prefix (qn.uri);
-	    if (pNS)
-	    {
-		if (URI_XSD == URIMapping::getURI (pNS))
-		{
-		    type = TypeMapping::map (qn.localname);
-		}
-	    }
-	    qn.mergeQNameString (':');
-	    return type;
-	}
+        if (URI_XSI == URIMapping::getURI (pElement->m_pchAttributes[i + 1]))
+        {
+            ::QName qn;
+            XSDTYPE type = XSD_UNKNOWN;
+            qn.splitQNameString (pElement->m_pchAttributes[i + 2], ':');
+            const char * pNS = m_pParser->getNS4Prefix (qn.uri);
+            if (pNS)
+            {
+                if (URI_XSD == URIMapping::getURI (pNS) || URI_ENC == URIMapping::getURI
(pNS))
+                {
+                    type = TypeMapping::map (qn.localname);
+                }
+            }
+            qn.mergeQNameString (':');
+            return type;
+        }
     }
 
     return XSD_UNKNOWN;



Mime
View raw message