Hello there,

 

I have a situation where I write my WSDL file, and then use the Xfire Eclipse 
plugin to generate Java classes based on the WSDL file (probably using 
wsdl2java or something).

 

Now I want a service operation to return a collection of complex types; for 
instance, a list of tns:Bean elements. This is relatively easy to archive in 
the WSDL-embedded schema: you could create complex type called tns:BeanList 
that contain a sequence of zero-to-many tns:Bean elements, however, this will 
also result in a Java class called BeanList and cause my Java service 
implementation to return BeanLists - now, what I really want is to, in Java, 
just return either List<Bean> or Bean[] objects. 

But how? Isn't it possible to construct my WSDL in such a way, so that the Java 
code generator will make my service List<Bean> or Bean[] objects?

 

 

 

 

Med venlig hilsen/Best regards
Christian Vest Hansen 
Developer 
 
Reception  +45 3393 1434
Mobile        +45 6130 4121
Web            www.unwire.com

UNWIRE ApS
Masnedøgade 20, 3. sal
DK-2100 Copenhagen Ø. 
Denmark

 

Reply via email to