Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
The Example JSP Pages
This chapter illustrates JSP scripting elements using a version of the
hello2
example introduced in Chapter 4--webclient
--that accesses a Web service. To build, package, deploy, and run thewebclient
example:
- Build and deploy the JAX-RPC Web service
MyHelloService
described in Creating a Web Service with JAX-RPC.- In a terminal window, go to
<
INSTALL
>/jwstutorial13/examples/jaxrpc/webclient/
.- Run
ant
build
. This target will spawn any necessary compilations and copy files to the<
INSTALL
>/jwstutorial13/examples/jaxrpc/webclient/build/
directory.- Start Tomcat.
- Run
ant
install
. Theinstall
target notifies Tomcat that the new context is available.- Open your browser to
http://localhost:8080/webclient/greeting
Note: The example assumes that the Java WSDP runs on the default port, 8080. If you have changed the port, you must update the port number in the file
<
INSTALL
>/jwstutorial13/examples/jaxrpc/webclient
/response.jsp
before building and running the examples.
Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.