aspose file tools*
The moose likes Web Services and the fly likes calling a class, webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "calling a class, webservice" Watch "calling a class, webservice" New topic
Author

calling a class, webservice

Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
The webservice which I am using has a class StateOptions, In the class I have static final variables and static final methods like

Variables

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

one such variable for each state

Methods

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: calling a class, webservice
 
Similar Threads
Document or not? gazillion public constants in one class
inheritance question
Multiple sets of constants
Static vs. Final
Workaround no "static abstract" methods?