摘要: --背景 使用WCF定义REST风格的WebService,如下: [ServiceContract] public interface INISTService { [OperationContract, WebInvoke(UriTemplate = "/EnrollTP/{context}", 阅读全文
posted @ 2016-05-04 10:11 TonyZhang24 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 摘抄于其他帖子,在此记录以备后用。 1. 定义服务数据契约(SOAP与REST方式相同) public class Employee { [DataMember] public string Id { get; set; } [DataMember] public string Name { get 阅读全文
posted @ 2016-05-04 09:17 TonyZhang24 阅读(923) 评论(0) 推荐(0) 编辑