Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
calling a class, webservice
Joined: Sep 12, 2009
Oct 15, 2009 10:59:30
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
_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.
, 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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: calling a class, webservice
Document or not? gazillion public constants in one class
Workaround no "static abstract" methods?
Multiple sets of constants
Static vs. Final
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013