Previous Next vertical dots separating previous/next from contents/index/pdf

Tutorial: Web Service

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.

Start Workshop for WebLogic

If you haven't started Workshop for WebLogic yet, use these steps to do so.

Create a New Workspace

  1. In the Workspace Launcher dialog, click the Browse button.
  2. In the Select Workspace Directory dialog, navigate to a directory of your choice and click Make New Folder.
  3. Name the new folder webSvcTutorial, press the Enter key and Click OK.
  4. In the Workspace Launcher dialog, click OK.

Click the arrow to navigate through the tutorial:

 

Skip navigation bar   Back to Top