Microsoft Developer Network > Forenhomepage > SharePoint - InfoPath Forms Services > TimedOut Error when Updating Infopath Form Library files using webservice
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetTimedOut Error when Updating Infopath Form Library files using webservice

  • Donnerstag, 2. Juli 2009 06:34Sandeep.Handa TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Enthält Code
    Hi All,
    I am having problem of Operation Timeout when i am call webservice from BizTalk ..
    Actually i call webservice from class library..like mentioned below..

    Boolean

    ans = WebService_X.UpdateFormLibrary(Emp_login, CoachLogin);

    then the value of ans i use to update database as well ..
    the response is taking 60 per file ..
    Now if there are 5 to 6 files for an employee it will take around 6 to 7 mins to update the files in forms Xml..
    Now to avoid this i increased the timeout at BizTalk level from where i am calling this webservice also in inetmgr i increased timeout...

    Now what i am observing is while doing update to form library ..there is ta=ime table by a code statement which will download the Xml and update..code mentioned below..

    spFolder = webSite.Folders[strFolderPath].SubFolders[strSubFolderPath];
    
     BLANK = spFolder.Files[LI["Name"].ToString()];
    
     MemoryStream inStream = new MemoryStream(BLANK.OpenBinary());
           
                    XmlTextReader reader = new XmlTextReader(inStream);
                    XmlDocument xd = new XmlDocument();
                    xd.Load(reader);
                    reader.Close();
                    inStream.Close();
    Now the statement  BLANK = spFolder.Files[LI["Name"].ToString()];
    is taking around 45 to 50 secs..
    this also slow down my sharepoint site..
    due to which time for response is increased drastically ..and due to which at BizTalk i get timeout error ..



    Pls advise what could be the problem which making sharepoint site slower ...

    Sandeep

Antworten

Alle Antworten