axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Williams <ch...@manawiz.com>
Subject Re: [jira] Commented: (AXIS2-520) ADB pull parser does notserialize of 0-length arrays
Date Tue, 04 Apr 2006 02:12:57 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<span>
<div
 style="font-size: smaller; font-style: italic; margin-bottom: -2.4em;"><span>Simon
Fell <a class="moz-txt-link-rfc2396E" href="mailto:soap@zaks.demon.co.uk">&lt;soap@zaks.demon.co.uk&gt;</a></span>
wrote on <span>04/03/2006
03:49:25 PM</span>:<br>
</div>
</span><br>
<blockquote cite="midp2k3325i5ai2rfvlik094tjl4oadqbai4e@4ax.com"
 type="cite">
  <pre wrap="">On Tue, 04 Apr 2006 07:02:40 +0600, in soap you wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">On Mon, 2006-04-03 at 13:10 -0700, Simon Fell wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Please don't do this, if the schema says

&lt;complexType&gt;
&lt;element name="foo" type="xsd:string"/&gt;
&lt;element name="bar" minOccurs="0" maxOccurs="unbounded" nilable="true"/&gt;
&lt;/complexType&gt;

then 
&lt;x&gt;
&lt;foo&gt;a&lt;/foo&gt;
&lt;bar xsi:nil='true'/&gt;
&lt;/x&gt;

Means something completely different to
&lt;x&gt;
&lt;foo&gt;a&lt;/foo&gt;
&lt;/x&gt;
      </pre>
    </blockquote>
    <pre wrap="">True. What do you suggest we do for zero length arrays where we don't
have the schema around? The only think I can think of is for the pull
parser to have two modes .. and for the one who calls it to know what to
do. That way in an ADB generated case where the generated code knows the
right thing to do it can call the appropriate form of zero length array
serialization.

Sanjiva.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Unless you're doing .NET ass funky array wrapping (in which case you
deserve everything you get), a 0 zero length array should serialize no
elements.
  </pre>
</blockquote>
Which is exactly what my patch does, now attached to both this issue
<a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/AXIS2-520">http://issues.apache.org/jira/browse/AXIS2-520</a>
and issue 523
<a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/AXIS2-523">http://issues.apache.org/jira/browse/AXIS2-523</a><br>
<br>
Chuck<br>
<br>
</body>
</html>

Mime
View raw message