public TaggedDemographicsRecordArrays getClaimants(
string lastName, string firstName, string middleName, string dob,
string zipcode, string state, string city, int maxrex)
{
TaggedDemographicsRecordArrays result = new TaggedDemographicsRecordArrays();
try
{
buildConnectionSetForGetClaimants();
Address addr = new Address();
if (!String.IsNullOrEmpty(zipcode))
{
addr.Zipcode = zipcode;
}
if (!String.IsNullOrEmpty(state))
{
addr.State = state;
}
if (!String.IsNullOrEmpty(city))
{
addr.City = city;
}
IndexedHashtable t = Claim.getClaimants(mySession.ConnectionSet, lastName, firstName, middleName, dob, addr, maxrex);
t = removeDups(t);
result = new TaggedDemographicsRecordArrays(t);
}
catch (Exception ex)
{
result.fault = new FaultTO(ex.Message);
}
finally
{
mySession.ConnectionSet.disconnectAll();
}
return result;
}