axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: svn commit: r1071949 - /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Date Fri, 18 Feb 2011 17:22:06 GMT
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,  <amilas@apache.org> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message