MSDN > 論壇首頁 > SharePoint - InfoPath Forms Services > TimedOut Error when Updating Infopath Form Library files using webservice
發問發問
 

已答覆TimedOut Error when Updating Infopath Form Library files using webservice

  • 2009年7月2日 上午 06:34Sandeep.Handa 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     包含代碼
    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

解答

  • 2009年7月2日 上午 11:09Sandeep.Handa 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆包含代碼
    Hi All.. I got the solution.. Instead of BLANK = spFolder.Files[LI["Name"].ToString()]; i wrote .. BLANK = LI.File; and it worked.... Thanks Sandeep

所有回覆

  • 2009年7月2日 上午 11:09Sandeep.Handa 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆包含代碼
    Hi All.. I got the solution.. Instead of BLANK = spFolder.Files[LI["Name"].ToString()]; i wrote .. BLANK = LI.File; and it worked.... Thanks Sandeep