user496949
user496949

Reputation: 86135

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

I don't see any template to write asp.net web service in Visual Stuido 2010. I am wondering it is replaced by WCF web service?

Upvotes: 2

Views: 1837

Answers (3)

Adam Flanagan
Adam Flanagan

Reputation: 3052

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.

Upvotes: 1

Phill
Phill

Reputation: 18804

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.

Upvotes: 2

Saeed Amiri
Saeed Amiri

Reputation: 22565

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>

Upvotes: 2

Related Questions