[jboss-dev-forums] [JBoss Web Services Development] - Genereate WSDL does contain information of static fields

navi ghag do-not-reply at jboss.com
Tue Apr 3 14:12:02 EDT 2012


navi ghag [https://community.jboss.org/people/navighag] created the discussion

"Genereate WSDL does contain information of static fields"

To view the discussion, visit: https://community.jboss.org/message/728082#728082

--------------------------------------------------------------
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
[https://community.jboss.org/message/728082#728082]

Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120403/e55a28ca/attachment.html 


More information about the jboss-dev-forums mailing list