Are WCF's default services soothing or soap based?

I am new to WCF and just made a sample service. Please guide me by default. WCF services - is it soap or calm, if we do not specify anywhere? I tried to launch the URL of my services and got this page. I feel like this is SOAP. Kindly guide.

thanks

+6
source share
2 answers

The default WCF service is SOAP — unless you use webHttpBinding , which is REST (and this is the only RESTful binding so far). To test your SOAP-based services, you can't just go to the URL in your browser — you need to use a SOAP test application like SoapUI or WCF Test Client .

WCF data services and RIA WCF services are based on webHttpBinding and therefore are based on REST. REST services can be tested by simply looking at the URL - you will return XML that can be displayed in your browser (or JSON, which you can save to a file and see)

+10
source

By default, WCF services are soap-based if you use the WCF Service project element in visual studio.

0
source

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


All Articles