Topics: Service Factory Modeling Edition Forum
Apr 2, 2008 at 6:34 PM
Edited Apr 2, 2008 at 6:38 PM
Hi all,

I choose to start with the 15 min walk through (because I dont count with much time) but after finishing I had the filling that something is missing. There are no errors, everything perfect, but, is not the client supposed to do something when clicking that button? (ExecuteButton_Click)

Could you please provide a code sample that actually shows how to consume the web service?

I appreciate a lot.
Apr 3, 2008 at 5:40 PM
You can write something like the following:

MaterialMgmtProxy.MaterialMgmtContractClient proxy = new MaterialMgmtProxy.MaterialMgmtContractClient();
// load some values on AircraftPart and PartLevel
proxy.SetPartDemand(new MaterialMgmtProxy.AircraftPart(), new MaterialMgmtProxy.PartLevel());
VendorGatewayProxy.VendorGatewayContractClient vendorProxy = new VendorGatewayProxy.VendorGatewayContractClient();
// load some values in PartAvailabilityRequest
VendorGatewayProxy.PartAvailabilityResponse response = vendorProxy.GetPartAvailability(new VendorGatewayProxy.PartAvailabilityRequest());
// show the results in a grid
ResultsGrid grid = new ResultsGrid(response);