Chapter 11. Creating a SOA Case

WHAT'S IN THIS CHAPTER?

  • Defining requirements for the case

  • Developing the complete solution

  • Testing the solution

This chapter is an interactive walkthrough of how to create a solution in SOA architecture with Visual Studio 2010 using WCF. It starts by defining requirements for a case and shows you how to develop the solution, step by step. At the end of this chapter you will have developed a number of services, hosts, and clients as part of the solution. This is a complete example — you can test the process and see it working in action.

THE REQUIREMENTS FOR THE CASE

You need to create services for a car rental company. The company needs a service for managing their fleet of cars, a service to register their customers, and a service to register the rentals.

These three services are considered internal and will be used by their own applications.

Besides these services, they also need an external service accessible by partners of the company that can insert a customer and register a rental with one call.

Operations for the CarManagementService:

  • InsertNewCar: Receives the data for a car and inserts it into a database.

  • RemoveCar: Receives the ID of a car and deletes it from the database.

  • UpdateMileage: Receives the data for a car and updates the mileage for the car in the database.

  • ListCars: Returns all cars with their data.

  • GetCarPicture: Returns a picture for the car with a specified ID.

Operations in the CustomerService:

  • RegisterCustomer: Receives the data for a customer ...

Get Professional WCF 4: Windows Communication Foundation with .NET 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.