Guides you through the process of configuring the client endpoint and running the client in Debug mode.
Configure the client endpoint
- In the
Solution Explorer, right-click the
app.config file in the
OOSqlClientWCF project; then select
Edit WCF Configuration from the context menu.
- In the left pane of the
Microsoft Service Configuration Editor, expand
Client > Endpoints; then click
WSHttpBinding_ISqlBook.
- In the right pane, click the
Contract field; then click its browse button.
- Browse to the
\bin\Debug subdirectory of the
OOSqlBookWCF project.
- Double-click
OOSqlBookWCF.dll.
- Select the
OOSqlBookWCF.IsqlBook contract; then click
Open.
- Click
File > Save; then close the Editor.
Run the client
- In the
Solution Explorer, right-click the
OOSqlClientWCF project; then select
Set as StartUp Project from the context menu.
- From the main menu, click
DEBUG > Start Debugging.
- When prompted, enter
1111.
This returns the data associated with stock number 1111.
- Press
Enter to exit the console application.
This concludes the tutorial.