WCF初见之HelloWorld

1.直接创建一个WCF服务应用程序,项目名称为“HelloWorld”,如下图: 2.然后再IService1.cs中定义 WCF服务协定,具体代码如下: using System; using System.ServiceModel; namespace HelloWorld {//定义协定,协定指定服务支持的操作 [ServiceContract] //定义一个名为IServ
相关文章
相关标签/搜索