Web Service timeout - InfoPath Dev
in

InfoPath Dev

Web Service timeout

Last post 04-06-2006 09:58 AM by marielo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-06-2006 08:17 AM

    • marielo
    • Not Ranked
    • Joined on 04-06-2006
    • Canada
    • Posts 3

    Web Service timeout

    Hi,
    I want to request data from a web service. I know that the web service needs around 2 minutes to process data from our database.
    I followed the instructions on how to increase the Web service timeout (C#):
    myAdaptor = (WebServiceAdapter2)thisXDocument.DataAdapters["GetRelation"];
    myAdaptor.Timeout = 300;
    myAdaptor.Query();

    The first time the form goes through this code, I will still get the timeout error. The second time, the query will complete as expected.

    Can someone give me a clue on what the problem could be ? I have posted this question in Microsoft public newsgroup, and as of now I have had no reply.

    Thanks !
  • 04-06-2006 08:33 AM In reply to

    Hi Marielo and welcome to the forum!

    This is just a hunch, but maybe the query is timing out whenever you start the form. In the data connections wizard did you set the data connection to query whenever the form is first loaded? If so, this might be causing the timeout.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 04-06-2006 09:58 AM In reply to

    • marielo
    • Not Ranked
    • Joined on 04-06-2006
    • Canada
    • Posts 3
    Hi Matt and thanks for your reply.
    The form does not launch automatically the request when it loads. The user must first choose values for some parameters, using drop-down lists populated by other web services.
    And when parameters are set, the user presses a "submit" button that launches the web service that times out the first time the button is pressed.
    thanks again for your help !
    MarieLo
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.