You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ba...@gmx.net on 2007/03/29 15:51:39 UTC

mapping typed collections

Hello!

I have an RPC-encoded-style service using Axis 1.4 which contains typed lists (jdk1.5 generics) as parameters/return types, e.g.

List<String> hello( List<Moo> li )

As well as typed lists within service parameters, e.g.

int ciao( Foo foo ) 

where Foo has a member List<Boo> boo;

Unfortunately the generated WSDL does not contain a definition of Moo and Boo, and every List is mapped with an ArrayOf_xsd_anyType.

I understand that it is not possible to determine the element type of a Collection during runtime (unlike in case of a regular array). But maybe it is possible to provide a hint to the Axis framework how to map typed collections correctly. Can I pass some sort of metadata to the engine to achieve the correct handling?

I tried the getTypeDesc() construct, but it does not seem to help. I'm not afraid of overrding Axis code, just please someone tell me where to start!

Thanks!

Balazs

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org