It seems like the schema in the wsdl might need a tweak as the adb
generated code is expecting at least 1. could you try saving the wsdl
and tweaking the schema (minOccurs/maxOccurs) and then codegen using
the tweaked wsdl. If you make no headway, please log a bug with your
javabean/wsdl etc.

thanks,
dims

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

I'm returning an array of javabeans. So it's like:

return new Thingy[0];

(Returning many of them is fine; returning one of them is fine.)


On 5/23/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>




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

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

Reply via email to