Say you are returning an array of strings...are you doing this?

return new String[0];

or this?

return null;

thanks,
dims

On 5/23/07, John G. Norman <[EMAIL PROTECTED]> wrote:
Hi.

My Axis2 1.2 POJO service
(http://ws.apache.org/axis2/1_2/pojoguide.html) can return
an array of length 0.

Does anyone know definitively if this will work with a vanilla client
generated with org.apache.axis2.tool.ant.AntCodegenTask
taking all of the defaults?

(I.e., I'm trying to leverage as much of the auto-generated stuff as
possible.)

At present, my client is generating a runtime exception: unexpected
subelement.

Before I start going into this, if anyone has a proof case that a 0-length
array can be successfully returned, I would appreciate it.

I'm not going to paste in the XML 'cos I'm more concerned to know if anyone
can confirm the successful case, before I start to debug.




--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to