try
{
RetrieveIncidentKeysListResponse response = new
RetrieveIncidentKeysListResponse();
RetrieveIncidentKeysListRequest request = new
RetrieveIncidentKeysListRequest();
request.model = new IncidentModelType();
request.model.keys = new IncidentKeysType();
request.model.instance = new IncidentInstanceType();
request.model.instance.IMTicketStatus = new
ServiceReference1.StringType();
request.model.instance.IMTicketStatus.Value = "Open";
request.model.instance.OutageFlag = new
ServiceReference1.BooleanType();
request.model.instance.OutageFlag.Value = true;
request.model.instance.Domain = new ServiceReference1.StringType();
request.model.instance.Domain.Value = "MMnBB";
response = IM.RetrieveIncidentKeysList(request);
return response;
}
catch (Exception ex)
{
string Text3Write = "Problem Occurred With Incident Data Retrieval
Based on DB rules";
using (StreamWriter sw = File.AppendText(path))
{
sw.WriteLine(Text3Write);
sw.WriteLine("Exception Occurred :" + ex.ToString());
}
}
Here is my code in try and catch :) but IM.Close(); not working here they behave like abort(); i don't know why ?