You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by is...@apache.org on 2010/03/25 12:35:33 UTC

svn commit: r927352 - /axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java

Author: isurues
Date: Thu Mar 25 11:35:33 2010
New Revision: 927352

URL: http://svn.apache.org/viewvc?rev=927352&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AXIS2-4417

Modified:
    axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java

Modified: axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java?rev=927352&r1=927351&r2=927352&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java (original)
+++ axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java Thu Mar 25 11:35:33 2010
@@ -307,7 +307,8 @@ public class MethodMarshallerUtils {
                         context.setProcessType(unmarshalByJavaType[i]);
                         context.setIsxmlList(pd.isListType());
                     }
-                    
+
+                    boolean consume = true;
                     // Unmarshal the object into a JAXB object or JAXBElement
                     if (pd.isHeader()) {
                         
@@ -319,6 +320,7 @@ public class MethodMarshallerUtils {
                                                        localName,
                                                        context,
                                                        factory);
+                        consume = false;
                     } else {
                         if (totalBodyBlocks > 1) {
                             // You must use this method if there are more than one body block
@@ -332,7 +334,7 @@ public class MethodMarshallerUtils {
                         index++;
                     }
                     
-                    Element element = new Element(block.getBusinessObject(true), 
+                    Element element = new Element(block.getBusinessObject(consume),
                                                   block.getQName());
                     PDElement pde =
                         new PDElement(pd, element, unmarshalByJavaType == null ? null