Building Services Using the Service Factory 2010
The Web Service Software Factory is now maintained by the community and can be found on the Service Factory site.
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies.
Retired: November 2011
Using the Service Factory to build services involves creating models of three kinds and performing both design and implementation activities. The Service Factory includes the following models:
- Service Contract Model
- Data Contract Model
- Host Model
Each of these models is created with a graphical designer. To help you get started as quickly as possible, the Performing the Activities topic provides a list of the activities that can be performed using each model, and references the corresponding exercises described in the Hands On Lab - Building a Web Service (VS2010). While Performing the Activities will help you get started, it does not provide details about the activities or the caveats and limitations of the models and related factory capabilities. You can find this information in the following topics that are grouped in two stages:
- Design Activities
- Implementation Activities
You should review these sections before you build production services.
In general, a model represents concepts (or elements) of a domain. The Service Factory models represent concepts in the Web service domain, and are used to provide input for generating the service implementation code. The necessary links must be in place for the models to work. . To be successful with the Service Factory you must understand what those links are and what they represent.
Figure 1 shows how the models relate to one another and indicates their external dependencies.
The relationships shown in Figure 1 are created at different times throughout the process of designing and implementing services. Most of the links within and between the models are created during the design stage.
Figure 1 also shows how the models are connected (or related) to the implementation artifacts. The Service Factory uses the project mapping table to relate the Service Contract Model and Data Contract Model elements to the Visual Studio solution projects that contain the corresponding code. The Host Model links the host and client elements directly to the Visual Studio solution projects.