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?
Asked
Active
Viewed 1,812 times
3 Answers
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
- 22,252
- 5
- 45
- 83
-
deos WCF service still use SOAP? – user496949 Nov 20 '10 at 09:11
-
@user496949, It can be over HTTP, TCP, pipe default is HTTP and uses SOAP – Saeed Amiri Nov 20 '10 at 09:12
-
@user496949: WCF can use both SOAP and REST - your choice – marc_s Nov 20 '10 at 10:01
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
- 18,398
- 7
- 62
- 102
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,052
- 23
- 31