Author: amilas
Date: Sat Feb 19 05:16:35 2011
New Revision: 1072255

URL: http://svn.apache.org/viewvc?rev=1072255&view=rev
Log:
fixing the issue with earlier patch. it should be 
innerElement.getSchemaTypeName(). if this is null it anyway casue a null 
pointer exception. now all the tests passed

Modified:
    
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Modified: 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java?rev=1072255&r1=1072254&r2=1072255&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
 Sat Feb 19 05:16:35 2011
@@ -139,6 +139,10 @@ public class BuilderUtil {
                         while (iterator.hasNext()) {
                             XmlSchemaElement innerElement = 
(XmlSchemaElement)iterator.next();
                             QName qName = innerElement.getQName();
+                            // ignoring the elements without proper type and 
minoccurs zero
+                            if ((innerElement.getSchemaTypeName() == null) && 
(innerElement.getMinOccurs() == 0)){
+                                continue;
+                            }
                             if (qName == null && 
innerElement.getSchemaTypeName()
                                     
.equals(org.apache.ws.commons.schema.constants.Constants.XSD_ANYTYPE)) {
                                 createSOAPMessageWithoutSchema(soapFactory, 
bodyFirstChild,


Reply via email to