This topic explains how to configure the ibm-webservices-bnd.xml deployment
descriptor.
Before you begin
Before
you can configure the
ibm-webservices-bnd.xml deployment descriptor,
you must develop the deployment descriptor templates and complete the implementation.
About this task
This task is one of the steps in developing a Web service. You
need to configure the deployment descriptors so that WebSphere Application
Server can process the incoming Web services requests.
Depending on
if you are developing a Web service from a Java bean or an enterprise bean:
Then, complete the EJB
implementation or complete
the JavaBeans implementation. When the EJB implementation is complete,
the enterprise bean Java archive (JAR) file is assembled. When the JavaBeans
implementation is complete, the Web module Web archive (WAR) file is assembled.
These archive files contain the webservices.xml deployment descriptor.
The archive files must be assembled before you can configure the webservices.xml deployment
descriptor.
Configure the webservices.xml deployment descriptor
by following the steps provided in this task section.
Procedure
- Click File > Import to import
the enterprise bean JAR file or WAR file into the assembly tool.
- Open the Java 2 Platform, Enterprise Edition
(J2EE) perspective by clicking Windows >Open Perspective > Other > J2EE.
- Switch to the Project Navigator pane
by clicking the Project Navigator tab.
- Locate the project containing the ibm-webservices-bnd.xml file
in the Project Navigator pane.
- Expand the directories under the project
until the META-INF or the WEB-INF directory and its contents
are displayed.
- Right-click the ibm-webservices-bnd.xml file.
- Select Open. The
Web Services editor is open.
- Click the Bindings tab located at
the bottom of the editor pane. The Web Services Bindings
editor is open.
- Verify the wsdescNameLink element settings.
- Expand the Web services description bindings section.
Verify that the value of the <webservice-description-name> element
in the ibm-webservices-bnd.xml deployment descriptor is listed in
the section. If the value is not listed:
- (Optional) Click Add, choose the correct Web services
name and click OK. You do not need to complete this step
if you have verified that the correct Web services name is listed in the Web
Services Description Bindings tab.
- Verify the pcnameLink attribute settings.
- Expand the Web Service Description Bindings section.
Verify that the correct service is selected. If the correct service
is not listed:
- (Optional) Expand Port Component Binding. Verify
that the correct Web services name is selected in the Web Service Description
Bindings section.
This selection is a prerequisite to creating a pcnameLink
attribute.
- In the Port Component Binding section, click Add.
Make a selection in the Web Service Description Bindings section
before you create the port component binding in the Port Component Binding section.
The Port Component Bindings Dialog is opened.
- Select a port from the list in the PC Name Link field.
- Click OK.
- Click the Binding Configurations tab to view the bindings
for your port.
- Save the bindings file.
- Click File > Export to export
the JAR file, or to continue with the configuration and assembly tasks.
- Click ctrl-s to save your
changes.
Results
The ibm-webservices-bnd.xmi deployment descriptor is configured
for the Web service implementation module.