The Feature Pack for Web Services provides several sample applications
that you can install onto an application server that has been enabled with
the Feature Pack for Web Services.
Before you begin
Install the Feature Pack for Web Services and create an application
server that is enabled with a Web Services profile. The enabled server is
the deployment target onto which you install the Web Services Samples.
About this task
Installing the Feature Pack for Web Services adds sample files to
the
app_server_root/samples/lib/WebServicesSamples directory
of your product installation.
This topic describes how to install and start
the WSSampleClientSei.ear and WSSampleServicesSei.ear enterprise
applications using an administrative console. You must install both enterprise
archive (EAR) files onto an enabled server before you can start the applications
and test them in a Web browser.
Procedure
- Click in the console navigation tree.
- On the Preparing for application installation page, specify to
install WSSampleClientSei.ear.
- Click Local file system or Remote
file system and specify the full path name of the WSSampleClientSei.ear file.
app_server_root/samples/lib/WebServicesSamples/WSSampleClientSei.ear
- Select Prompt me only when additional information
is required.
- Click Next.
- Click Next on each panel until you reach
the Summary panel.
Do not go directly from Step 1 to the Summary
panel. You must click Next on each panel that has mandatory
settings to enter values for those settings. Simply click Next to
enter the default values. You optionally can change the values to suit your
environment.
- On the Summary panel, verify the cell, node, and server onto which
the application modules will install, and then click Finish.
- Examine the application installation progress messages.
If
the application installs successfully, the message Application WSSampleClientSei
installed successfully is displayed. Click Save.
After the configuration changes are saved, you can see the name of the application
in the list of deployed applications on the Enterprise Applications page accessed
by clicking in the console navigation tree.
If
the application does not install successfully, read the messages to identify
why the installation failed. Correct problems with the server or application
and try installing the application again.
- Repeat steps 1 through 5, selecting to install the WSSampleServicesSei.ear file.
app_server_root/samples/lib/WebServicesSamples/WSSampleServicesSei.ear
Results
The WSSampleClientSei and WSSampleServicesSei applications
are in the list of deployed applications on the Enterprise Applications page.
What to do next
After the applications install successfully, do the following:
- Start the applications.
On the Enterprise Applications page, select
the check boxes beside WSSampleClientSei and WSSampleServicesSei,
and then click Start.
- Test the applications. Point your Web browser at:
http://localhost:9080/wssamplesei/demo
If
the localhost address does not load, substitute the host
name (IP address) for the machine for localhost; for
example, http://9.22.33.44:9080/wssamplesei/demo.
If
you have another WebSphere® Application Server installation
on your machine, the server port number is likely not 9080.
See the Ports table in the administrative console to find the WC_defaulthost server
port number. Click . The Ports table lists the important ports:
Port name |
Description |
WC_adminhost |
Port used to open an unsecure administrative console
in the URL http://host_name:administrative_port/ibm/console |
WC_adminhost_secure |
Port used to open a secure administrative console in
the URL http://host_name:administrative_port/ibm/console |
WC_defaulthost |
Port used to test running applications in the URL http://host_name:server_port/servlet_name |
WC_defaulthost_secure |
Port used to securely test running applications in the
URL http://host_name:server_port/servlet_name |
The app_server_root/samples/lib/WebServicesSamples directory
also contains the WSSampleMTOMService enterprise application. Complete the
steps in this topic to install the WSSampleMTOMService.ear file
on an application server that is enabled with a Web Services profile.
For
detailed information on the Web Services Samples, refer to the readme file
provided with the feature pack.