There are three parts to creating a new service:
- Creating a class that contains the business logic
- Creating a service that has operations that reference operations to the class's methods
- Creating a service group
The service group is a collection of one or more services and acts as the service reference, should we consume it within Visual Studio. We will see how this translates to a Uniform Resource Identifier (URI) in the next recipe.
In this example, we will have two service operations: one to get a list of vehicles, and one to update a vehicle's group. The XML documentation has been omitted to save space.