Hi
I am using filterservice to retrive all the folios and i am getting timeout error as follows
"Server was unable to process request. ---> Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
i have tried increasing the timeout property of the web service and no luck. Do we have any parameter in the xml? Can anyone point to the right way to set the timeout?
below is the code i am using
thanks
S.Saba
string strFolio = "something";
string strXML = "<?xml version="1.0" encoding="utf-8" ?><Search><Criteria>"+strFolio+"</Criteria>" +
"<Scope><Folio Search="True" />" +
"<Folder Search="False" />" +
"<ProcessName Search="False" />" +
"<ActivityName Search="False" />" +
"<EventName Search="False" />" +
"<ProcessData Search="False" />" +
"<ActivityData Search="False" />" +
"<Originator Search="False" />" +
"<Destination Search="False" />" +
"</Scope>" +
"<Filter><DateFilter Filter="False">" +
"<FromDate></FromDate>" +
"<ToDate></ToDate></DateFilter>" +
"<ProcessFilter Filter="False">" +
"<Folder>STAR</Folder>" +
"<Process>STAR Medical Request</Process></ProcessFilter></Filter>" +
"<Sort>Folio Asc</Sort></Search>";
System.Xml.XmlDocument folioSearch = new System.Xml.XmlDocument();
folioSearch.LoadXml(strXML);
K2Filter.FilterService wsK2 = new K2Filter.FilterService();
wsK2.Url = k2_server + "/K2V3/WorkspaceService/FilterService.asmx";
sK2.Credentials = SetCredential();
wsK2.Timeout = 600000;
System.Data.DataSet ds = null;
try
{
ds = wsK2.Find(folioSearch,
Environment.UserDomainName + """ + Environment.UserName, 1);dvRes.DataSource = ds.Tables[0];
lblRes.Text = ds.Tables[0].Rows.Count.ToString() +
" Result(s) found";}
catch (Exception ex)
{
lblRes.Text = ex.Message;
}