Which C # SOAP client library is the easiest to use?

I would like to connect to a SOAP web service using C #. Before I start trying anything that Google throws at me, I would like to ask what is the cleanest and best way to do this, where most of the work is done for me.

I would like a high level method where I give it WSDL and it will basically handle a lot of things for me. Of course, I don’t want to do anything with XML, except to see what it does for debugging.

Which of the most attractive libraries / methods does Microsoft have for this? Please note that I am more interested in optimizing development time compared to performance, although there is probably not much difference in this situation.

Here is the best explanation of what I'm trying to achieve. best OOP approach to multiple SOAP web services

+4
source share
3 answers

What Assaf said. You have the choice between using a web link (wrapper around WSDL.exe) and using Help Service (wrapping around svcutil.exe). Service links are .NET 3.0+ and part of the WCF method.

Personally, I still use web links most of the time, but YMMV.

Edit: screenshot with two menu options :)

+5
source

What do web links do in C # projects. When you add a web link, it parses the WSDL and creates strongly typed classes for the API.

+4
source

There is no need for any fancy library ... This is the built-in functionality ... Just add the service link to your project directly from the context menu in Visual Studio.

+4
source

Source: https://habr.com/ru/post/1285891/


All Articles