BloggingAbout.NET
Thoughts of developers
WCF Test Harness: Creating a Stub Service

The following steps can be performed to create a stub service based on the service contract downloaded and compiled in Add a New Proxy via URL:

  1. Select the menu option Show Hosting Window on the Host menu.  This will bring up a non-modal dialog that can be used to manage stubbed services.
    image
  2.   Select the Add Service Contract menu option on the Host menu of the Hosting Window:
    image
  3. In the dialog, enter in a unique name for the service, select a service contract, and provide an address for the service:
    image
  4. Next, click Create Stub to generate an implementation of the service contract:
    image
  5. This will generate a metadata enabled service endpoint at the address specified.  Click the Start button to create and open the host:
    image
  6. If the TestHost.exe is currently running, you will get a failure as the Uri has already been allocated:
    image
  7. Stop the TestHost by pressing return in the consol application window:
    image
  8. Click the Start button again.  The host is now running...

Overview


Posted Tue, Dec 9 2008 12:03 PM by chilberto
Filed under: ,

Comments

Jeffrey Chilberto wrote WCF Test Harness: New Release
on Tue, Dec 9 2008 1:23 AM

I've created a new version of the WCF Test Harness including some bug fixes and the ability to create

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Please add 8 and 8 and type the answer here:
Copyright © 2003-2010 BloggingAbout.NET