Chapter 12. Web services 483
12.2 Web services tools
Rational Web Developer provides tools to create Web services from existing
Java and other resources or from WSDL files, as well as tools for Web services
client development and for testing Web services. Rational Web Developer
provides tools to assist with the following aspects for Web services development:
򐂰 Discover
Browse Universal Description, Discovery and Integration (UDDI) registries or
Web services inspection language (WSIL) sites to find Web services for
integration. The IBM Web Services Explorer provides the all necessary
functions to discover a Web service.
򐂰 Create service provider
Use the Rational Web Developer tooling to create Web services from existing
artifacts, such as JavaBeans, Web sites that take and return data, DB2 XML
Extender calls, DB2 stored procedures and SQL queries.
򐂰 Create service consumer
Use the Web services client tools (wizard or command line), to create a client
for any Web service. The generation tools analyze service WSDL files to
create the client components.
򐂰 Tes t
Web services can be tested, running locally or remotely. for local test, the
WebSphere test environment can be used. Rational Web Developer provides
functions to easily create and run Web service component tests for HTTP
bound Web services. See 12.2.4, “Testing tools for Web services” on
page 485.
򐂰 Publish
Publish Web services to a public or private UDDI v2 or v3 Business Registry,
using the Web Services Explorer, enabling access to them.
򐂰 Validate
Use the WSDL and DADX validators to check for structural and semantic
problems in these types of files. This feature is useful when receiving a
service WSDL file from a service provider, to check the files are valid.
򐂰 Secure
The Web service wizards and deployment descriptor editors assist to
configure Web services security (WS-Security) for the WebSphere
Application Server Environment.
484 WebSphere Application Server - Express V6 Developers Guide and Development Examples
򐂰 Run
Run Web services provider and consumer components in WebSphere
Application Server or Tomcat test environments. The deployment and
administration for the WebSphere test environment is integrated in,
respectively can be started via Rational Web Developer.
12.2.1 Creating a Web Service from existing resources
Rational Web Developer provides wizards for exposing a variety of resources as
Web services. The following resources can be used to build a Web Service:
򐂰 JavaBean:
The Web Service wizard assists you in creating a new Web Service from a
simple Java class, configures it for deployment, and deploys the Web Service
to a server. The server can be the WebSphere Application Server V6.0 Test
Environment included with Rational Web Developer or an another application
server.
򐂰 EJB
The Web Service wizard assists you in creating a new Web Service from a
stateless session EJB, configures it for deployment, and deploys the Web
Service to a server.
򐂰 DADX
Document access definition extension (DADX) is an XML document format
that specifies how to create a Web Service using a set of operations that are
defined by DAD documents and SQL statements. A DADX Web Service
enables you to expose DB2 XML Extender or regular SQL statements as a
Web Service. The DADX file defines the operations available to the DADX
run-time environment and the input and output parameters for the SQL
operation.
򐂰 URL
The Web Service wizard assists you in creating a new Web Service that
directly accesses a servlet running on a server.
򐂰 ISD
An ISD file is an existing Web service deployment descriptor. It provides
information to the SOAP runtime about the service that should be made
available to clients (for example URI, methods, implementation classes,
serializers and deserializers). When using a Web services runtime based on
Apache SOAP, ISD files are concatenated into the SOAP deployment
descriptor (dds.xml). This mechanism has been replaced in more recent Web
services runtimes, such as Apache Axis and J2EE Web services runtimes.

Get WebSphere Application Server - Express V6 Developers Guide and Development Examples now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.