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