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:
Create a web service project.
Add a web service to the project.
Add an operation (web method) to the web service.
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:
Copy existing controls into the web service project created in Part I.
Create a new custom control called MailingListControl
that calls methods on the imported controls.
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.
Test the web service.
Start Workshop for WebLogic
If you haven't started Workshop for WebLogic yet, use these steps to do so.
On Microsoft Windows:
On the Start Menu, click All Programs >
BEA Products> Workshop for WebLogic Platform 10.0
On Linux:
Run BEA_HOME/workshop_10.0/workshop4WP/workshop4WP
Create a New Workspace
In the Workspace Launcher dialog, click the Browse
button.
In the Select Workspace Directory
dialog, navigate to a directory of your choice and click Make New
Folder.
Name the new folder webSvcTutorial, press
the Enter key and Click OK.