How to use soap web services in Asp.net Core?

前端 未结 1 680
执笔经年
执笔经年 2020-12-25 14:32

I have got some classes generated by wsdl for soap web services. These are using namespace System.Web.Services. How can I use them in asp.net core?

相关标签:
1条回答
  • 2020-12-25 14:43

    I have answered few days back on following question.

    ASP.NET 5 add WCF service reference

    In above case there is a WCF service and in your case it is Web Service.

    Following thing you should concern or consider.

    1. It will not work with CoreCLR
    2. You have to add reference to "System.Web.Services" following way.

      aspnet50": { "frameworkAssemblies": {
      "System.Web.Services": "" }, "dependencies": { "ClassLibrary2": "1.0.0-*" } }

    All other steps are similar that you have to create classlibrary project and add reference of that project or directly add class generated from WSDL to your asp.net 5 project.

    Note : For this answer I have used VS 2015 CTP 5.

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