Understanding WSIT Configuration Files

When a web service or a web service client are configured for WSIT features,
this information is saved in WSIT Configuration files. The following
sections discuss the WSIT configuration files for the service and
for the client:

Service-Side WSIT Configuration Files

Select and/or configure the appropriate WSIT features
on the WSIT Configuration tab for the web service. Many of the WSIT features
are discussed in Chapter 7, Using WSIT Security.

Select OK to close the dialog.

Run the web application by right-clicking the project node
and selecting Run Project.

The service-side WSIT Configuration file that is used when
the web service is deployed can be viewed by expanding the Web Pages->WEB-INF
elements of the application in the tree, and then double-clicking the wsit-package.service.xml file
to open it in the editor.

Client-Side WSIT Configuration Files

Expand the Web Service Reference node for the web service
client in NetBeans IDE.

Select Edit Web Service Attributes.

Select and/or configure the appropriate WSIT features
on the WSIT Configuration tab for the web service client. Many of
the WSIT features are discussed in Chapter 7, Using WSIT Security.

Select OK to close the dialog.

Run the web service client by right-clicking the project node
and selecting Run Project.

The WSIT Configuration information can be viewed by expanding
Source Packages->META-INF in NetBeans IDE for the client project.
This directory contains two files: serviceService.xml and wsit-client.xml.

The serviceService.xml file
is an XML file that must conform to the WSDL specification. The WSIT configuration
is written to this file. For the example application Example: Username Authentication with Symmetric Keys (UA), the WSIT configuration
file for the client is named CalculatorWSService.xml,
and looks like this: