JavaTM APIs for XML based RPC
Sample Application HelloWorld

This sample application uses wsdl as a starting point to generate client and server artifacts. The client for this example uses static stub to connect to the server.

Building And Running The Sample Application Manually

For Solaris/Linux:

  1. Edit the build.properties file and set the container-specific properties at the end of the file.
  2. %export JAVA_HOME=<your J2SE installation directory> 
  3. %export JWSDP_HOME=<your JWSDP installation directory>
  4. % export ANT_HOME=$JWSDP_HOME/apache-ant
  5. % export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$PATH
  6. % cd $JWSDP_HOME/jaxrpc/samples/HelloWorld
  7. % ant deploy-war (This step is not required as long as the pre-packaged WAR file is not changed.)
  8. Wait for the application to finish deploying. You can browse http://localhost:8080/jaxrpc-HelloWorld/hello to check.
  9. ant run-client

For WindowsNT/2000/XP

  1. Edit the build.properties file and set the container-specific properties at the end of the file.
  2. > set JAVA_HOME=<your J2SE installation directory>
  3. > set JWSDP_HOME=<your JWSDP installation directory>
  4. > set ANT_HOME=%JWSDP_HOME%\apache-ant
  5. > set PATH =%ANT_HOME%/bin;%JAVA_HOME%/bin;%PATH%
  6. > cd %JWSDP_HOME%\jaxrpc\samples\HelloWorld
  7. > ant deploy-war (This step is not required, as long as the pre-packaged WAR file has not been changed.)
  8. Wait for the application to finish deploying. You can browse http://localhost:8080/jaxrpc-HelloWorld/hello to check.
  9. > ant run-client