Deploy Web services applications onto appservers

 

+

Search Tips   |   Advanced Search

 

Overview

To deploy Java-based Web services, we need an enterprise application (EAR) that is configured and enabled for Web services.

If you have a Web service that was deployed on a previous version of WAS, you might want to run the wsdeploy command-line tool so that you can benefit from performance features added to this release.

This task is one of the steps in developing and implementing Web services.

You can use either the console or the wsadmin scripting tool to deploy an EAR file.

If you use the wsadmin command, specify the -deployws option for JAX-RPC applications.

If you are installing an application containing Web services by using the console, select...

Deploy WebServices in the Install New Application wizard

If the Web services application is previously deployed with the wsdeploy command, it is not necessary to specify Web services deployment during installation. The following actions deploy the EAR file with the wsadmin command:

 

Procedure

  1. Start...

    install_root/bin/wsadmin

  2. Enter the command...

    $AdminApp install EARfile "-usedefaultbindings -deployws"

    ...at the wsadmin prompt.

 

Results

You have a Web service installed into the WAS product.

 

What to do next

You can confirm that the Web services application was deployed by entering the Web service endpoint URL in a browser, then viewing an informative page. The information page contains the following information:

{http://webservice.pli.tc.wssvt.ibm.com}RetireWebServices 
Hi there, this is a Web service! 

The first line of this information is variable, depending on your Web service. The URI in the brackets is the namespace and the string following that (in this example, RetireWebServices), is the name of the port used to access the Web service.

The next step you might want to consider is to apply security for 5.x applications or security for 6.x applications to the applications.



Provide options to perform the Web services deployment settings
wsdeploy command

 

Related tasks

Making deployed Web services application available to clients
Securing Web services for V5.x applications based on WS-Security
Securing Web services applications using JAX-RPC at the message level
Task overview: Implementing Web services applications