摘要:
新建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 阅读全文
posted @ 2011-06-20 19:08
LoveJenny
阅读(3514)
评论(3)
推荐(4)
浙公网安备 33010602011771号