can ksoap2 pass an enum to webservice?
there is a wcf webservice:
[OperationContract]
string TestEnum(CodeType code);
CodeType is dotnet enum:
public enum CodeType
{
[EnumMember]
ALL,
[EnumMember]
VehicleColor
}
How can i call this wcf webservice at android client?
i create a enum CodeType and implements KvmSerializable. In method getPropertyInfo, what is the value of info.name(info.type)?
public enum CodeType implements KvmSerializable, BaseInterface {
ALL,
VehicleColor;
//.......
@Override
public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {
//info.namespace = this.NameSpace;
info.name = ?;
info.type = ?;
}
}
Thanks for your help.