开发者

Is ASP.NET web service replaced by WCF web service?

开发者 https://www.devze.com 2023-01-26 05:35 出处:网络
I don\'t see any template to write asp.net web service 开发者_StackOverflow中文版in Visual Stuido 2010. I am wondering it is replaced by WCF web service?You can use WCF service application, some attri

I don't see any template to write asp.net web service 开发者_StackOverflow中文版in Visual Stuido 2010. I am wondering it is replaced by WCF web service?


You can use WCF service application, some attributes are changed like WebMethod isOperationContract here

Edit: for soap binding:

<services>
  <service name="Service1">
    <endpoint address="soap" binding="basicHttpBinding" contract="IService1"/>
  </service>
</services>


You can still create old asmx web services in Visual Studio 2010. When adding a new item in a Web Site/Web Application, you should see "Web Service" under the web templates.


I believe Microsodft are intending to replace .asmx with wcf (See this post) but the .asmx template is still available in VS2010 under the web menu at the bottom.

0

精彩评论

暂无评论...
验证码 换一张
取 消