JavaTM APIs for XML based RPC
Attachments Sample Application: Photo Catalog
This sample attachments 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.
For Solaris/Linux:
- Edit build.properties and set the container specific properties
(container and its root)
- %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/AttachmentsSample
- %ant deploy-war
- Wait for the application to finish deploying. You can browse
http://localhost:8080/jaxrpc-AttachmentsSample/photocatalog to check.
- ant run-client
For WindowsNT/2000/XP
- Edit build.properties and set the container specific properties
(container and its root)
- > 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\AttachmentsSample
- > ant deploy-war
- Wait for the application to finish deploying. You can browse
http://localhost:8080/jaxrpc-AttachmentsSample/photocatalog
to check.
- > ant run-client