A Simple "Hello Buzz" Web Service Example on JDK 6.0 and JWSDP 2.0

Installation Instruction

Written by Professor Haiping Xu
Computer and Information Science Department
University of Massachusetts Dartmouth
January 8, 2009


1. Install JDK 6.0 (i.e., JDK 1.6.0)
   
   Set up the following environment variables:
   JAVA_HOME	C:\Program Files\Java\jdk1.6.0_07

   Add the following path:
   C:\Program Files\Java\jdk1.6.0_07\bin 

2. Install JWSDP 2.0 & Tomcat 5.0 for JWSDP (based upon Tomcat 5.0.19 that implements 
the Java Server Pages 2.0 and Java Servlet 2.4 specifications) Set up the following environment variables: JWSDP_HOME C:\Sun\jwsdp-2.0 ANT_HOME C:\Sun\jwsdp-2.0\apache-ant Add the following path: C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Sun\jwsdp-2.0\apache-ant\bin 3. Copy examples.zip into C:\ and extract here 4. Copy lib.zip into C:\Sun\jwsdp-2.0\server directory and extract here Delete the file "lib.zip" 5. Replace saaj-impl.jar file at the following directories by saaj-impl-1.3.jar. Rename it to saaj-impl.jar.
C:\Sun\jwsdp-2.0\saaj\lib C:\Sun\tomcat50-jwsdp\saaj\lib 6. Modify C:\examples\common\build.properties for the first four lines as follows: tutorial.home=C: tutorial.install=${tutorial.home} username=hxu password=12345 where "hxu" and "12345" are the username and password for the Tomcat server. 7. Build server: cd C:\examples\jaxrpc\helloservice ant build Start Tomcat from JWSDP 2.0 Deploy server: ant deploy Note: If application already exists at path /hello-jaxrpc, you should use the command "ant undeploy" to undeploy the web service first. Verify the deployment: To verify that the service has been successfully deployed, open a browser window and specify the service endpoint's URL as follows: http://localhost:8080/hello-jaxrpc/hello?WSDL You should get the following display. 8. Build client: cd C:\examples\jaxrpc\dynamicproxy ant build Run client: ant run 9. Related web sites: http://java.sun.com/javase/downloads/index.jsp http://java.sun.com/webservices/downloads/ http://java.sun.com/webservices/docs/2.0/tutorial/doc/index.html http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html http://www-306.ibm.com/software/awdtools/studioappdev/