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?
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.
dnx451": { "frameworkAssemblies": { "System.Web.Services": "" }, "dependencies": { "ClassLibrary2": "1.0.0-*" } }
and remove dnxcore50": { }
altogether. This is as of beta7. Im my example, you' might also be noticing dnx451
and dnxcore
instead of aspnet45
and aspnet50
that appear in almost all the other posts about this topic on SO. Not sure the reason this was done, but its used all throughout github.com/aspnet. –
Atingle © 2022 - 2024 — McMap. All rights reserved.