Debian Codegraph @

samples/attachments/README

raw
1 To run the attachments sample, you must do the following:
2 1. Set up your CLASSPATH.
3 2. Start a server.
4 3. Deploy the service.
5 4. Run the sample.
6
7 1. Set up your CLASSPATH.
8 The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit
9 (www.junit.org), mail and activation jars (ie., Tomcat's mail.jar and
10 activation.jar), all the jars in the lib directory, and the directory
11 containing the samples subdirectory.
12
13 2. Start a server.
14 You must have a server running (ie., Tomcat) with the AXIS samples
15 available to it. For this test, the AXIS SimplAxisServer is not enough.
16 See the documentation for your server for details.
17
18 3. Deploy the service.
19 To deploy the service, run:
20 java org.apache.axis.client.AdminClient attachdeploy.wsdd
21
22 4. Run the sample.
23 Usage:
24 java samples.attachments.EchoAttachment [options] file | dir
25
26 options:
27 -d turn on debugging - more 'd means more info
28 -h<HOST> server host name
29 -l<URL> ie. http://localhost:80/axis/servlet/AxisServlet
30 -p<PORT#> server port number
31 -s<SERVLET> ie. axis/servlet/AxisServlet
32 -u<USERID> user-id
33 -w<PASSWD> password
34
35 If you use the authorization and authentication handlers you'll need
36 to add a couple of files to your Servlet Engine's current dir:
37
38 users.lst
39 - list of users and passwords
40
41 perms.lst
42 - list of users and allowable actions per user
43
44 The demo sends the file specified as an attachment to the service which in
45 turn sends the same attachment back. The file sent back is then compared
46 to see if it matches with the original.
47
48 If a directory is specified, the same is done except all the files in that
49 directory are sent, received and compared in one call.
50
51 Scripts are provided to help with the above. Specify the above options if the
52 host is not "localhost" or the port is not 8080.
53
54 deployit Will deploy the service.
55 testit Will test the service.
56 undeployit Will undeploy the service.