public TaggedUserArrays lookupMS(string target, string maxRex)
{
TaggedUserArrays result = new TaggedUserArrays();
string msg = MdwsUtils.isAuthorizedConnection(mySession);
if (msg != "OK")
{
result.fault = new FaultTO(msg);
}
else if (target == "")
{
result.fault = new FaultTO("Missing target");
}
//else if (!StringUtils.isNumeric(maxRex))
//{
// result.fault = new FaultTO("Non-numeric maxRex");
//}
if (result.fault != null)
{
return result;
}
try
{
KeyValuePair<string, string> kvp = new KeyValuePair<string, string>("NAME",target);
UserApi api = new UserApi();
IndexedHashtable t = api.userLookup(mySession.ConnectionSet, kvp, maxRex);
result = new TaggedUserArrays(t);
}
catch (Exception e)
{
result.fault = new FaultTO(e.Message);
}
return result;
}