Leveraging Web Services in the Case Study


Web Services should be an integral part of your strategy for communicating outwardly from your system as well as allowing clients to communicate with functionality within your system. The Web Service environment exposes much of your business logic tier to the outside world. Clients are still responsible for adding a presentation tier to the functionality you provide. Also, clients will most likely have to build out the rest of their own business logic tier ; your services will merely fulfill critical pieces of their own requirements.

You saw in this chapter that Web Services only aid you in communicating between services and clients wanting to access services. Therefore, your base assumption that Java forms the root of the service implementations still holds. You publish each Web Service in a public UDDI directory. This act of publishing makes your services available for the outside world to access.

Identifying Important Classes and Files in the Case Study

Table 3-1 identifies the primary code discussed in this chapter, as well as related files from the downloaded samples.

Table 3-1: Sample Location

FILE

LOCATION

DESCRIPTION

SmallCompanyImpl.java

\src\com\servicefoundry\books\ webservices \entities

This is the small company service implementation illustrated in Listing 3-1.

DirectSOAPTestClient.java

\src\com\servicefoundry\books\webservices\tests

A simple program that uses SOAP to directly communicate with the Web Service deployed through Apache Axis. This code was not discussed in the chapter because you are not focusing on using SOAP from the client; instead, you rely on adapters into the Web Service environment, presented in Chapter 4, "Exploring the Architecture Adapter Pattern."

SmallCompanyImpl.wsdl

\descriptors

This is the WSDL file generated by Axis after the deployment of SmallCompanyImpl into the Web Service environment.

services.wsdd

\descriptors

This is the WSDD file used in every chapter that contains deployment descriptors for all Web Services in the book.

Using Ant Targets to Run the Case Study

Table 3-2 gives the targets to run for the ant environment to see the programs and chapter samples in operation. Before running any samples, be sure you read and perform all of the install steps in Appendix A.

Table 3-2: Ant Targets

TARGET

DESCRIPTION

DirectSOAPTestClient

Uses SOAP structures to communicate directly with the SmallCompanyImpl Web Service deployed in this chapter




Web Service Patterns
Web Services Patterns: Java Edition
ISBN: 1590590848
EAN: 2147483647
Year: 2003
Pages: 190

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net