ASP.NET Web Service template not exist?

后端 未结 4 1893
闹比i
闹比i 2020-12-19 14:45

I have a full installation of Visual Studio 2010 with .Net framework 4. I want create my first web service. but not exist web servi

相关标签:
4条回答
  • 2020-12-19 15:10
    File > New Project > Visual C# > Web Service Application
    

    You can create multiple projects under one solution..
    create a web service,build and run it.
    Then create another webapplication under the same solution file.
    Add reference..
    Thats it..

    0 讨论(0)
  • 2020-12-19 15:19

    create ASP.net Empty Web Site and add asmx file. that's it.

    Or You can Target the .Net Framework to 3.5 when you create the project and web service template available for .net 3.5, create the project and re target it to 4.0 or 4.5

    But You better move to Windows Communication Foundation (WCF)

    0 讨论(0)
  • 2020-12-19 15:20

    Use File->New Project->WCF Service Application.

    "ASP.NET Web Services" (aka ASMX) is a legacy technology. It exists only to support existing ASMX services. Do not use it for new development.

    0 讨论(0)
  • 2020-12-19 15:29

    Go to File --> New -->Asp.Net Empty Web application. on that Right click --> Add New item - >webservice template

    0 讨论(0)
提交回复
热议问题