Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 915
eadam Avatar asked Feb 20 '15 00:02

eadam


1 Answers

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.

like image 72
dotnetstep Avatar answered Oct 11 '22 12:10

dotnetstep