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 pr...@apache.org on 2005/11/24 19:31:41 UTC

svn commit: r348779 - in /webservices/axis/trunk/c: src/soap/SoapDeSerializer.cpp tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.cpp

Author: prestonf
Date: Thu Nov 24 10:31:34 2005
New Revision: 348779

URL: http://svn.apache.org/viewcvs?rev=348779&view=rev
Log:
Any tests where failing because parser code was not differentiating properly between a START, END and START_END tags.

Modified:
    webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.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=348779&r1=348778&r2=348779&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp (original)
+++ webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp Thu Nov 24 10:31:34 2005
@@ -2665,8 +2665,14 @@
     list < AxisString > lstXML;
 
     if (!m_pNode)
-    	m_pNode = m_pParser->anyNext ();
-    tagCount++;
+	{
+    	m_pNode = m_pParser->anyNext();
+	}
+
+	if( END_ELEMENT != m_pNode->m_type)
+	{
+		tagCount++;
+	}
 
     while ((END_ELEMENT != m_pNode->m_type) || (tagCount >= 0))
     {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.cpp?rev=348779&r1=348778&r2=348779&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicGet_AddAnyObjectTestOutOfScope/Calculator.cpp Thu Nov 24 10:31:34 2005
@@ -93,13 +93,23 @@
 				cout << any->_size<<endl;
 				cout << any->_array[0]<<endl;
 			}
-			any = (AnyType*)m_pCall->getAnyObject();
-			any = (AnyType*)m_pCall->getAnyObject();
-			any = (AnyType*)m_pCall->getAnyObject();
-			if(any!=NULL){
-				cout << any->_size<<endl;
-				cout << any->_array[0]<<endl;
-			}		
+			any = (AnyType*)m_pCall->getAnyObject();	// Skip past </divResponse> tag
+//			any = (AnyType*)m_pCall->getAnyObject();	// Skip past </Body> tag
+//			any = (AnyType*)m_pCall->getAnyObject();	// Skip past </Envelope> tag
+
+			if( any != NULL)
+			{
+				if( any->_size > 0 && strcmp( any->_array[0], "</divResponse>"))
+				{
+					cout << "Error - Unexpected tag in buffer." << endl;
+					cout << any->_size << endl;
+					cout << any->_array[0] << endl;
+				}
+			}
+			else
+			{
+				cout << "Error - No tags left in buffer." << endl;
+			}
 		}
 
 	}