Sun Java System Application Server Platform Edition 9 Administration Guide

Deploying and Testing Web Services

Application Server enables you to easily deploy and test web services. Admin Console automatically generates a test web page that makes it very easy to verify a web service's operation without writing a client application.

Deploying Web Services

You can deploy a web service:

A web service can also be implemented by a POJO (plain old Java Object). Deploy a POJO web service using the auto-deploy feature by dragging and dropping it into the auto-deploy directory. Application Server will automatically generate the appropriate deployment descriptor files and deploy the web service.

In Admin Console, you can view a list of deployed web services under Application Server > Web Services | General.

You can also use the deploy(1) command to deploy a web service.

Viewing Deployed Web Services

To view a list of all deployed web services with Admin Console, select Application Server > Web Services. The General tab displays a table containing the following information:

To view details of a web service with Admin Console, select Web Services > web-service-name | General. Admin Console displays the attributes of the web service:

You can also view deployed web services with the list-components(1) command with the --type webservice option.

Testing Web Services

Admin Console enables you to test web services and diagnose problems.

To test a web service with Admin Console, select Web Services > web-service-name | General, then click the Test button. For JAX-WS 2.0–compliant web services, Application Server generates a test page when a JAX-WS 2.0 web service is deployed. You can launch the test web page from Admin Console to easily verify a web service's operation without writing a client application.

The automatically-generated test page contains a form that enables you to invoke all the web service's methods and display the SOAP messages for each method invocation. The test page also contains a link that displays the WSDL file returned from the sever instance; that is, the runtime version of the WSDL file, not the packaged version.

Web Services Security

Application Server supports SOAP message layer security based on the SAML token profile of WS-Security. Application Server also provides tamper-proof auditing for web services. For more information, see Auditing Authentication and Authorization Decisions and Audit Modules.

You can use default message security providers to provide web services security. Use the following commands to customize the message security providers:

For more information about configuring security for web services, see Chapter 9, Configuring Message Security