asp.net timeout when calling a web service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jgn1013
    New Member
    • Jan 2007
    • 5

    asp.net timeout when calling a web service

    I have a .net applicaiton that calls a third party web service. I beleive whe the query takes more then 1:43sec my connections closes giving me a timeout error. Do you think this has to do with my corporate firewall settings?

    "
    System.Net.WebE xception: The operation has timed-out.
    at System.Web.Serv ices.Protocols. WebClientProtoc ol.GetWebRespon se(WebRequest request)
    at System.Web.Serv ices.Protocols. HttpWebClientPr otocol.GetWebRe sponse(WebReque st request)
    at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String methodName, Object[] parameters)
    at webservices.bul lhorn.WS.DataEx port.Export(Dou ble privateLabelID, String apiEncryptionKe y, Double userID, Double reportID, DateTime startDate, DateTime endDate, Boolean includeExported , Boolean markAsExported, String status, String customParam1, String customParam2, String customParam3, String customParam4, String customParam5) in
    "
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I think the default time out is like 3seconds in asp.net settings.
    I would suspect the settings of IIS/website before suspecting the corporate firewall. But you never know.

    Comment

    • jgn1013
      New Member
      • Jan 2007
      • 5

      #3
      I figured out my problem, it think. Before calling the web service, I have to set the ws.timeout = System.Threadin g.Timeout.Infin ite

      so for anyone have timeout issue, after you instantiate your web service, you must set the timeout value.

      thirdparty.webs ervice ws = new thirdparty.webs ervice
      ws.timeout = System.Threadin g.Timeout.Infin ite

      Comment

      Working...