This change causes test failures in org.apache.axis2.jaxrs.ArchiveDeploymentTest and org.apache.axis2.jaxrs.PojoTest (axis2-integration). I'm going to revert it.
Andreas On Fri, Feb 18, 2011 at 11:41, <[email protected]> wrote: > Author: amilas > Date: Fri Feb 18 10:41:40 2011 > New Revision: 1071949 > > URL: http://svn.apache.org/viewvc?rev=1071949&view=rev > Log: > ignoring the elements without a type and minoccurs zero > > 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=1071949&r1=1071948&r2=1071949&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 > Fri Feb 18 10:41:40 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.getSchemaType() == null) && > (innerElement.getMinOccurs() == 0)){ > + continue; > + } > if (qName == null && > innerElement.getSchemaTypeName() > > .equals(org.apache.ws.commons.schema.constants.Constants.XSD_ANYTYPE)) { > createSOAPMessageWithoutSchema(soapFactory, > bodyFirstChild, > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
