axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Bohnert" <...@online.de>
Subject Re: Deserializing an Array of Beans
Date Thu, 10 Jul 2003 09:45:52 GMT
did you try the wdsl2java generated code?
use -t for gerating a testcase and look at the code..
for me it works fine!

lg
Andreas2


----- Original Message ----- 
From: "Andreas Meier" <axis@neutral-grau.de>
To: <axis-user@ws.apache.org>
Sent: Wednesday, July 09, 2003 4:23 PM
Subject: Deserializing an Array of Beans


> Hi there,
> 
> I can't find a solution for deserializing an array of beans in my
> client application.
> 
> I have a method in my webservice which looks like that:
> 
>   public MyBean[] getMyBeans() {
>   ...
>   }
> 
> This mehod returns an array of MyBean objects. When calling this
> mehtod from my browser I can see that the array of beans is
> correctly serialized. However if I try to request the results from
> my client via
> 
>   ...
>   call.setOperation( "getMyBeans" );
>   ...
>   MyBean[] allMyBeans = (MyBean[]) call.invoke( new Object[] { } );
> 
> I get the following execption:
> "No deserializer defined for array type"
> 
> Doing the same with an array of primitive type (eg. int) causes no
> problem.
> 
> I already searched in the message archive but haven't found a
> solution for my problem (but others which seemed to have struggled
> with the same problem a long time ago).
> 
> Any ideas?
> 
> Thx.
> 
> Andreas
> 

Mime
View raw message