Command-Line Interface Applications

The simplest user interface is the command-line application. It uses the console for its input and output. While not visually appealing, it often provides a fast and simple way to accomplish tasks. For our CLI application, we will have it call the HelloWorld Web Method and print the results. As you will recall, HelloWorld was modified in Chapter 1 to read its value from the Web.config file associated with the Web Service.

The first things we need to do are open up Visual Studio and create a new project. In Visual Studio, you will see CLI applications called console applications. Perform the following steps to create the console application:

1.
Select File, Project, New Project.
2.
Select the following items ...

Get Creating and Consuming Web Services in Visual Basic® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.