TimeOut Problem in WebService.... - InfoPath Dev
in

InfoPath Dev

TimeOut Problem in WebService....

Last post 05-01-2006 01:08 PM by marielo. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-28-2006 12:05 AM

    TimeOut Problem in WebService....

    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.
  • 04-28-2006 03:35 AM In reply to

    Re: TimeOut Problem in WebService....

    I dont see any problem in you calling the code, you first try out calling the webservice from IE and check out how much time it is taking. Depending upon that you can set the timeout on your control.

    Any way the time that you are giving is in Milliseconds, try giving a higher number or the time that IE takes to call the webservice and check out if that helps.
  • 04-28-2006 03:44 AM In reply to

    Re: TimeOut Problem in WebService....

    quote:
    Originally posted by Agni Jonnalagadda

    I dont see any problem in you calling the code, you first try out calling the webservice from IE and check out how much time it is taking. Depending upon that you can set the timeout on your control.

    Any way the time that you are giving is in Milliseconds, try giving a higher number or the time that IE takes to call the webservice and check out if that helps.

  • 05-01-2006 01:08 PM In reply to

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

    Re: TimeOut Problem in WebService....

    Please, if you find anything, let us know. i have the same problem and found no solution.
    MarieLo
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.