0 Replies Latest reply on Jan 6, 2007 11:03 PM by Liren Zhao

    How to got webservice Exception message?

    Liren Zhao
      I found faultEvent cann't get webservice exception,so I use a class let webservice to return it.such as

      public class wsResult{ public string ExceptionMessage;public object Result;}

      in web service:

      wsResult wsr = new wsResult();

      }catch(Exception ex)
      wsr.Result = null;
      wsr.ExceptionMessage = ex.Message;
      return wsr;

      is there any better way to do this?