How does the flow of a Web Service work?

-3

I need to develop a web service , and so your main idea is client-server communication.

But do not understand how this would be done using the MVC architecture and using the C # language, do you have a need for a local server with Apache?

    
asked by anonymous 20.04.2016 / 02:40

2 answers

0
  

How does the flow of a Web Service work?

The working principle may well be answered for this excellent question and your answers , plus some add-ons.

There are several protocols that implement a Web Service . The most famous of these are SOAP and REST . If we talk about C #, we're talking about the ASP.NET Web Service for SOAP and ASP.NET Web API for REST.

  

I need to develop a web service, and so your main idea is to communicate client, server.

Not exactly. The main idea is to make two applications, no matter on which platforms are developed, to talk. One can be customer of the other and vice versa.

  

But do not understand how this would be done using the MVC architecture and using the C # language, do you have a need for a local server with Apache?

The MVC architecture is not for building Web Services . The MVC architecture is for building applications . The basic difference between them is the entity that interacts with each one. In the application, it will be a user (usually a human). In the service, it will be an application or another service.

Typically, the server used for web applications and services is IIS - Internet Information Services , or Internet Information Services. After the release of ASP.NET Core, there is also the option of other servers, such as Kestrel .

Still, if you really want to run .NET code in Apache (which is little recommended, but for some specific need you have), you can use the mod_mono .

    
17.09.2016 / 00:03
-3

What you are looking for is how to create a REST Service, that is, an API.

If you want to use C # to create your API, then follow these steps:

I believe it's a good way to start and create your web service .

    
20.04.2016 / 14:50