• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

calling a class, webservice

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

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
 
Beware the other head of science - it bites! Nibble on this message:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic