2 Replies Latest reply on Apr 3, 2012 4:32 PM by navighag

    Genereate WSDL does contain information of static fields

    navighag

      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