JBoss Community

Genereate WSDL does contain information of static fields

created by navi ghag in JBoss Web Services Development - View the full discussion

Hi

I am building a web service using jboss 4.2.2. I have a web method which accepts an object of type Contact.

Contact class further has a member variable of type ContactTypeEnum(see explanation below)

private java.lang.String _value_;

private static java.util.HashMap _table_ = new java.util.HashMap();

public static final java.lang.String _Management = "Management";

public static final java.lang.String _IT = "IT";

public  static final ContactTypeEnum Managemant = new ContactTypeEnum(_Management);

public  static final ContactTypeEnum IT = new ContactTypeEnum(_IT);

protected ContactTypeEnum(java.lang.String value) {

                  _value_ = value;

                  _table_.put(_value_,this);

              }

........................................................

 

 

But in generated WSDL I get

<xs:complexType name="contactTypeEnum">

<xs:sequence/>

 

There is no information about the various fileds available in class ContactTypeEnum.

Any ideas???

 

Thanks

Reply to this message by going to Community

Start a new discussion in JBoss Web Services Development at Community