Web Services Software Factory tutorial (1 of 5)

Source: Internet
Author: User

This is the first in a series of five tutorial posts on the Web Services Software Factory. the Web Services Software Factory (WSSF) is a product that has come out of the Microsoft Patterns and Practices Group and its goal is to aid you in the mundane tasks that accompany setting up a robust WCF or ASMX service. the outline of the tutorials will be as follows:

Post 1: Download, Install, and Setup our Demo Project
Post 2: Create Data Contracts and Implement Business Entities and Translators
Post 3: Create Service Contracts and Implement the Methods
Post 4: Create Host Contract, Deploy and Test WSDL
Post 5: Generate Proxy, Create Simple Client, Call Service to Test

The original WSSF version had a lot of XML configuration to create contracts. with the version that came out in February (called the Modeling Edition), Microsoft Patterns and Practices added a lot of visual designers and even more code generation to the product. however, that is enough of the prelude, lets get into the example.

First you have to do some downloading and installing. you must first download and install GAX (Guidance Automation extension) 1.4. it can be found here. installation is very simple and you just have to run the installer and accept the defaults to go on.

Next, you have to download the WSSF itself. go here and download the product. if you are on Vista, you have to run the installer from an elevated command prompt. to do that you merely have to get the command prompt to show up in your start menu (either by searching or because you 've saved it there as I have) and right click on it. run As Administrator will be one of your options as shown below. after you have the prompt, execute the installer.

You will then get the installation wizard and again you can accept the defaults and move on.

Once you have installed the WSSF, start Visual Studio 2008 and click File-> New-> Project. then select Guidance Packages, Service Factory: Modeling Edition, and then Model Project. chose a directory and call the project MyCryptographyService and click OK. note: we are going to do WCF, so make sure that you target Framework 3.0 at a minimum. i'm going to choose 3.5 just to run the "latest and greatest"

Rename the MyCryptographyService model project file to MyCryptographyService. model (so we can add a project of that same name later ).

Right click on the solution and choose Add-> WCF Implementation Projects.

This brings up the Add New Project dialog yet again. Name it MyCryptographyService (this is why we renamed earlier) and click OK.

Visual Studio will grind away for a second and when it is done, it will have produced a boatload of projects for you in your solution. you will also notice that the projects that shoshould reference each other already do, helping you along in making sure that you separate your code properly. build your project and everything shoshould build nicely. it doesn' t do much now, but more will come next time. if you have errors, please make sure that you followed the steps correctly.

Next time we will dig into the designers and begin to implement the entities in our project.

 

Reprint [Pete on Software]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.