Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling a class, webservice  RSS feed

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The webservice which I am using has a class StateOptions, In the class I have static final variables and static final methods like


public static final java.lang.String _AK = org.apache.axis2.databinding.utils.ConverterUtil.convertToString("AK");

one such variable for each state


public static final StateOptions AK = new StateOptions(_AK,true);

one such method for each state.

and I have the constructor StateOptions which is protected. I am writing my webservice client in a different package

Now when I am setting the state in the address it requires an argument of type StateOptions.

like setState(GenderOptions.AK)

In my JSP, I am just reading the state (2 variables AK) how do I convert this to the type StateOPtions.AK or any other type which the user inputs.

Please advice
I child proofed my house but they still get in. Distract them with this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!