public TaggedTextArray getUsersWithOption(string optionName)
{
TaggedTextArray result = new TaggedTextArray();
if (!(MdwsUtils.isAuthorizedConnection(mySession) == "OK"))
{
result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
}
else if (String.IsNullOrEmpty(optionName))
{
result.fault = new FaultTO("Empty Option Name");
}
if (result.fault != null)
{
return result;
}
try
{
OrderedDictionary d = User.getUsersWithOption(mySession.ConnectionSet.BaseConnection, optionName);
result = new TaggedTextArray(d);
}
catch (Exception exc)
{
result.fault = new FaultTO(exc);
}
return result;
}