I have a .NET Core 3.1 project, to which I need to add a web service. I can add it regularly as a service reference, however it does not work, returns "There was no endpoint listening at "xxx" that could accept the message. This is often caused by an incorrect address or SOAP action".
Now, the service is up and running, and connections are triple checked and completely ok. I've made a .NET Framework 4.5 app, to emulate the work of the Core application, and there when I add it as a service reference, it returns the same error.
However, when i add it as a web reference (which generates code based on FW 2.0), it works properly. (that option is not available in Core, at least not to my knowledge)
Is there any way to emulate generating the code based on 2.0 in .NET Core, i've tried using dotnet-svcutil (no additional configuration, just the basic install), but still to no awail.
Any help?
asmxsoap web services, Service Reference was intended for WCF. Have you tried copying the working code that files that were generated into your new .net core project?