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.
 
Building And Running The Attachments Sample Application: Photo Catalog Manually
For Solaris/Linux:
  1. Edit build.properties and set the container specific properties (container and its root)
  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/AttachmentsSample
  7. %ant deploy-war
  8. Wait for the application to finish deploying. You can browse http://localhost:8080/jaxrpc-AttachmentsSample/photocatalog to check. 
  9. ant run-client

For WindowsNT/2000/XP
  1. Edit build.properties and set the container specific properties (container and its root)
  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\AttachmentsSample
  7. > ant deploy-war    
  8. Wait for the application to finish deploying. You can browse http://localhost:8080/jaxrpc-AttachmentsSample/photocatalog to check. 
  9. > ant run-client