I've read the discussion thread on enums on this list.. It still doesn't
solve my problem.
I am using the type-safe enumeration in my java class (code included below)
and am hoping to get an enumeration mapping in the WSDL using the java2wsdl
tool. But I am unable to produce it.. Any help in figuring out what I'm
doing wrong would be helpful.
public final class SearchType {
//this is the dummy constructor requirement for Java2WSDL to work.
public SearchType() {
this.name = "COMPANY_SEARCH";
}
private SearchType(String name) {
this.name = name;
}
private final String name;
public static final SearchType COMPANY_SEARCH =
new SearchType("COMPANY_SEARCH");
public static final SearchType SITE_SEARCH =
new SearchType("SITE_SEARCH");
public static final SearchType XYZ_SEARCH = new
SearchType("XYZ_SEARCH");
public final String toString() {
return name;
}
}
--
Rajal