2

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?

bluish
  • 24,718
  • 26
  • 114
  • 174
user496949
  • 79,431
  • 144
  • 301
  • 419

3 Answers3

2

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>
Saeed Amiri
  • 21,774
  • 5
  • 43
  • 82
2

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.

Phill
  • 17,724
  • 6
  • 55
  • 101
1

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.

Community
  • 1
  • 1
Adam Flanagan
  • 3,060
  • 23
  • 31