随笔分类 -  WCF

摘要:例子比较简单 记录下思路1、接口中定义 实体和方法声明 //登录信息 [OperationContract] [WebInvoke(UriTemplate = "LogInf/{name}/{pwd}", Method = "POST", ResponseFormat = WebMessageFormat.Json)] LogInf GetLogInf(string name, string pwd);2//数据交换实体类 [DataContract] public class LogInf { [DataMember] public string Us 阅读全文
posted @ 2013-01-04 17:12 幽谷清水 阅读(4285) 评论(1) 推荐(0)