How to run default method GetData of WCF. it is not showing result.it is showing 400 Bad Request. So how to run api in rest client or postman and browser
-
Send the correct parameters to the service – mahlatse Dec 05 '18 at 09:24
-
thank you @mahlatse ,It has been resolve. – Kuldeep Kumar Dec 06 '18 at 10:34
1 Answers
It depends on which binding is used for creating the communication channel. Postman is usually used to debug restful webservices. By default, WCF implements the webservice specification.
WCF create communication channels based on the binding configuration and use SOAP message to communicate with clients.
https://learn.microsoft.com/en-us/dotnet/framework/wcf/whats-wcf
Here are the request details when we use Basichttpbinding and self-host the wcf application.
The default is to use the Http-Post request WCF operation method, and a SOAPAction header is passed.
It can also create Restful web services. you can refer to the following link.
https://learn.microsoft.com/en-us/dotnet/framework/wcf/wcf-and-aspnet-web-api
How can I use a WCF Service?
Feel free to let me know if there is anything I can help with.

- 7,117
- 1
- 8
- 22