98
Lesson 4 Web Services Tutorial
Using JRun web services
JRun lets you publish and consume
web services
. Web services provide platform- and
location-independent computing using XML and standard Internet protocols such as
HTTP. By allowing previously incompatible applications to interoperate over the web
regardless of language, platform, or operating system, web services create new business
opportunities and help companies adapt to changing business relationships. For example,
a Microsoft .NET component can communicate with a J2EE component, such as an
Enterprise JavaBean (EJB), and vice versa.
Using JRun, you can reuse existing Java code as a web service or write new code
specifically to publish as a web service. You also can create object- and tag-based clients
that can invoke methods on remote web services, even when those services reside on
non-Java platforms.
The following are the roles for developing, deploying, and using a web service:
•
Author
The author creates and defines the web service. You use Java to create the
web service functionality, and XML to define the web service in the Web Services
Deployment Descriptor (WSDD) file. The person who writes the Java code is not
necessarily the person who publishes it as a web service.
•
Deployer
The web service deployer might also be the web service publisher. The
deployer generates the Web Services Description Language (WSDL) file, an XML
document that describes the purpose, location, and access information of the web
service. You can also generate the WSDL file dynamically, from your client
application, by accessing the web service endpoint URL.
In addition, there is the person who generates the web services proxy and writes the
client code.
•
Consumer
The consumer uses the web service functionality in their application.
For more information on JRun web services, see JRun Programmer’s Guide.
TravelNet web services application
In the tutorial lesson, you deploy TravelNet, a web service client application that a travel
agent could use to sell and book adventure trips. TravelNet does not have its own
database of trips, but resells trips from a tour operator, Compass Travel. TravelNet
consumes web services from the Compass Travel application.
In the web services tutorial lesson, you do the following:
1 Examine existing Java classes exposed as web services in the Compass Travel
application WSDD file.
2 Provide the information necessary to invoke the web service by creating a WSDL file.
3 Generate a proxy client from the WSDL file for a specific web service.
Содержание 38000382 - Macromedia JRun - Mac
Страница 1: ...Getting Started with JRun...
Страница 16: ......
Страница 68: ...54 Chapter 5 Introduction to EJB...
Страница 82: ......
Страница 110: ...96 Lesson 3 EJB Tutorial...
Страница 128: ...114 Lesson 4 Web Services Tutorial...
Страница 132: ...118 Index...