Can WCF rest post method not allowed? sure, This article about How to create Wcf Rest Post Method Example in console application? Before that, we must know what is a RESTful api. A RESTful API is about an application program interface (API) that uses HTTP method requests to GET, PUT, POST and DELETE data.

A RESTful API – also referred to like a RESTful web service – is based on representational state transfer (REST) technology, an architectural style and approach to communications often used in web services development.

The REST technology is generally preferred for the more robust Simple Object Access Protocol (SOAP) technology because The REST leverages less bandwidth, making it to more suitable for internet usage. An API for a website is code that allows two software programs to communicate with each another . The API spells out the proper way for a developer to write a program requesting services from an operating system or other application.

The REST usually used by browsers can be thought of as the language of the internet. With cloud use on the rise, APIs are emerging to expose web services. The REST is a logical choice for building APIs that allow users to connect and interact with cloud services. RESTful APIs are used by such sites like Amazon, Google, LinkedIn and Twitter.

In this guide, I will tell you how to make WCF Rest multiple parameters post starting from making a project in Microsoft Visual Studio until testing in browser. You can also follow this instruction directly using your computer.


  1. Create new project console application with Microsoft Visual Studio 2017 or etc. (Example : restwcf)


  1. Edit file app.config like below:

  1. Create IService.cs for interface class like below:

  1. Add reference if you get any error, you need some reference like below :


  1. After that, we need create function to give return the request. We’ll create new file with name Service.cs like below:

  1. The program class is a console app that is the main entry point to start the application, it configures and launches the web api host and web server using an instance of WebHostBuilder. Edit program class as below:

  1. Running the application with Debug or Release mode In Microsoft visual studio 2017.
  2. Testing application if already running with postman like below :


You can see WCF Rest Post Method Example in Here.

Thank you for reading this article about Create a WCF Rest Service C#, I hope this article is useful for you. Visit My Github about .Net Cshap in Here

WCF Rest Post Method Example
Tagged on:                     

Leave a Reply

Your email address will not be published. Required fields are marked *