摘要:
新建Rest服务接口: [ServiceContract]public interface IService1{ [OperationContract] string GetData(int value);}接着新建一个服务实现类:public class Service1 : IService1{ public string GetData(int value) { int i = 0; int j = 5 / i; return string.Format("You entered: {0}", value); }}在这里让Service1 抛出”divided by 阅读全文