Tutorial: Web Services

This tutorial is subdivided into two parts. The first part shows you how to build a web service project containing a simple web service. The second part builds on the project and web service created in the first part by adding a simple custom control that calls methods on existing controls.

You will also learn how to use the Web Service Design View, a graphical editor for creating web services.

Note: This tutorial requests that you create a new workspace; if you already have a workspace open, this will restart the IDE. Before beginning, you might want to launch help in standalone mode to avoid an interruption the restart could cause, then locate this topic in the new browser. See Using Help in a Standalone Mode for more information.

Part I : Simple Web Service

In the first part of the tutorial, you will use the IDE to build a web service project and a simple web service.

These are the steps you will follow for Part I of the tutorial:

  1. Create a web service project.
  2. Add a web service to the project.
  3. Add an operation (web method) to the web service.
  4. Test the web service.

Part II : Web Service That Calls Methods on Provided Controls

In the second part of the tutorial, you will create a custom control that calls methods on pre-existing controls that are provided to you. You will then add a method to your web service that calls a method on this custom control. The result is to return data from a sample database.

These are the steps you will follow for Part II of the tutorial:

  1. Copy existing controls into the web service project created in Part I.
  2. Create a new custom control called MailingListControl that calls methods on the imported controls.
  3. Add MailingListControl to the web service created in Part I and add an operation (method) to the web service that calls a method on MailingListControl.
  4. Test the web service.

To Start Workshop

If you haven't started Workshop yet, follow these steps: Start Workshop.

To Create a New Workspace (Optional)

If you would like to execute the tutorial in a separate workspace follow these steps: Create a New Workspace.

Note: If you already have a workspace open, this will restart Workshop. Before beginning, you might want to launch help in standalone mode to avoid an interruption the restart could cause, then locate this topic in the new browser. See Using Help in a Standalone Mode for more information

 

Click the arrow to navigate through the tutorial:


Still need help? Post a question on the Workshop newsgroup.