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 na...@apache.org on 2008/07/16 04:39:25 UTC

svn commit: r677134 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java

Author: nadiramra
Date: Tue Jul 15 19:39:24 2008
New Revision: 677134

URL: http://svn.apache.org/viewvc?rev=677134&view=rev
Log:
AXISCPP-894 - Elements in the generated request message is not namespace qualified

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java?rev=677134&r1=677133&r2=677134&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java Tue Jul 15 19:39:24 2008
@@ -2076,6 +2076,13 @@
      */
     public static boolean shouldWeNamespaceQualifyNode(Node elementNode, boolean defaultAnswer)
     {
+        if (null == elementNode || elementNode.getNodeType() != Node.ELEMENT_NODE)
+            return defaultAnswer;
+        
+        // Ensure node represents an "element" node.  If not, get the parent.
+        if (!elementNode.getLocalName().equals("element"))
+            return shouldWeNamespaceQualifyNode(elementNode.getParentNode(), defaultAnswer);
+        
         String form = Utils.getAttribute(elementNode, "form");
         if (form != null)
         {