axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEVAL SHAH" <deva...@hotmail.com>
Subject How to write a wsdd for a service that has a List
Date Wed, 10 Aug 2005 17:49:28 GMT
Hello,

I have a class called ResultList which contains a List as a variable. This 
list is a collection of a another class called Result. How do I write my 
wsdd so that it understands that ResultList contains a list of Result.

class ResultList {
  List resultList;
  getters and setters ....
}

class Result{
int num;
String name;
}

When I try to generate the classes with wsdl2Java by ResultList class 
becomes
class ResultList{
  Object [] resultList;
}

It doesnt generate the Result class at all.
Is it possible to tell Axis that I want a List that contains Result and not 
an array of objects.

Thank you in advance
Deval



Mime
View raw message