Professional Documents
Culture Documents
Overview
This walkthrough is intended to serve a couple of purposes. It provides a way to experience much of
what the Service Factory has to offer if you dont have enough time to complete the hands-on lab. This
walkthrough can also serve as an effective demonstration for anyone needing to deliver a presentation
about the Service Factory 2010.
The first time you complete this walkthrough, it may take longer than 15 minutes if you choose to poke
around a little. However, if you do the steps from start to finish, it will take approximately 15 minutes.
Also, because this walkthrough is trying to respect your time, you wont find much explanatory text.
Please use the hands-on labs and factory documentation for a more comprehensive introduction.
Scenario
This walkthrough shares the same scenario as the hands-on lab. If you are interested, you can find the
scenario in the Service Factory documentation.
Instructions
To complete this walkthrough, your computer must have the Service Factory 2010 installed, along with
all of the required system requirements. To make sure your computer has everything it needs for the
walkthrough; see the System Requirements topic in the Service Factory 2010 Documentation.
As you go through the walkthrough, you might receive some Validation Errors at the beginning but they
will cease to exist in the end.
to
public virtual MessageContracts.GetDemandResponse
GetPartDemand(MessageContracts.GetDemandRequest request)
{
return new MessageContracts.GetDemandResponse() {
PartLevel = request.AircraftPart.PartLevel
};
}
6. Using the Host Explorer, select the MaterialMgmtProxy, right-click on the Proxy shape (Triangle
Shape on MfgWinFormClient) and click on Add Service Reference. In the popup that opens, click
on Discover button. Select the BYA.Mfg.SCM.Host/MaterialMgmt.svc. Change the Namespace
to MaterialMgmtServiceReference and click OK.
Repeat this step for the VendorGatewayProxy. (Choose BYA.Mfg.SCM.Host/VendorGateway.svc
and change the Namespace to VendorGatewayServiceReference.)
7. Open the MainForm.cs file, and add the following using statement:
using BYA.Mfg.SCM.Client.MaterialMgmtServiceReference;
using BYA.Mfg.SCM.Client.VendorGatewayServiceReference;
9. All of the generated source code can be found in the Generated Code folder of each project
(except the client proxies, which are in the Service References folder).
10. Set BYA.Mfg.SCM.Client as the StartUp Project. Build and run the solution. Click on Execute.
You will be able to see the results grid with values.
More Exercise
For a more in-depth exercise with the Service Factory, please spend some time with the hands-on labs.