Dear Friends,
I have a problem regarding calling Webservices in InfoPath.
My Webservice doing a long process while submit the details from InfoPath , but my infopath doesn't support and tells that service has timeout.
So I set Timeout Property also... but still I getting the Problem,
My Code:
private void setWSAdapterTimeOut(string adapterName,int seconds)
{
WebServiceAdapter2 WSAdapter;
WSAdapter = (WebServiceAdapter2) thisXDocument.DataAdapters[adapterName];
WSAdapter.Timeout = seconds;
}
Calling Method:
private void Delegation()
{
WebServiceAdapter2 wsAdapter = (WebServiceAdapter2) thisXDocument.DataAdapters["Delegation"];
setWSAdapterTimeOut("Delegation",10000);
wsAdapter.Submit();
}
I dont know where is the problem whether in webservice or in Infopath.
Any one can help me out... its very urgent
Regards,
Vasanth.