locked
How to handle the WebService Exceptions? RRS feed

  • Question

  • User805880657 posted

    Hi sir,

    My Project is containing Web services...When internet is disconnected,I have to handle the web exceptions with out throwing any errors..Could you please tell me how to handle it? Kindly give me the solution for this problem.

    Thursday, May 23, 2013 1:12 AM

Answers

  • User705563967 posted

    put the webservice calling code in try catch and in catch put some mesage in label or donot need to do anything.

    try{

    call webservice //

    }

    catch(exception ex)

    {

    label1.txt="try again later ";

    }

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 23, 2013 4:17 AM