How to use soap web services in Asp.net Core?
asp.net-core, asp.net-core-mvc
Solution
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.
- It will not work with CoreCLR
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.
Problem
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?