Microsoft Developer Network > 포럼 홈 > 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일 목요일 오전 6: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
    • 답변으로 표시됨Sandeep.Handa 2009년 7월 2일 목요일 오전 11:09
    •  

모든 응답

  • 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
    • 답변으로 표시됨Sandeep.Handa 2009년 7월 2일 목요일 오전 11:09
    •