Debian Codegraph @

samples/jaxrpc/README

raw
1 To run the JAX-RPC compliance samples, 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 samples.
6
7 1. Set up your CLASSPATH.
8 The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit
9 (www.junit.org), all the jars in the lib directory, and the directory
10 containing the samples subdirectory.
11
12 2. Start a server.
13 To run the sample, you will first need to run a server. To run a very
14 simple server you could run, in a separate window:
15 java org.apache.axis.transport.http.SimpleAxisServer -p 8080
16
17 3. Deploy the service.
18 To deploy the service, be sure you're in the JAX-RPC samples directory (samples/jaxrpc), then run:
19 java org.apache.axis.client.AdminClient deploy.wsdd
20
21 4. Run the samples.
22
23 Run the GetInfo sample:
24 java samples.jaxrpc.GetInfo <symbol> <datatype>
25
26 where <symbol> is one of "IBM", "ALLR" (Allaire), or "CSCO" (Cisco)
27 (these are the only symbols this sample supports)
28 and <datatype> is one of "symbol", "name", or "address".
29
30 Here's a simple, explicit example:
31 java samples.jaxrpc.GetInfo IBM address
32 This should result in the following output:
33 IBM: Armonk, NY
34
35
36 Run the GetQuote1 sample:
37 cd ../.. (cd to the directory containing the samples subdirectory.
38 This is required because the path given for the WSDL file
39 is relative to this directory.)
40 java samples.jaxrpc.GetQuote1 [options] <symbol>
41
42 options:
43 -d turn on debugging - more 'd means more info
44 -h<HOST> server host name
45 -l<URL> ie. http://localhost:80/axis/servlet/AxisServlet
46 -p<PORT#> server port number
47 -s<SERVLET> ie. axis/servlet/AxisServlet
48 -u<USERID> user-id
49 -w<PASSWD> password
50
51 If you use the authorization and authentication handlers (which the given
52 deploy.wsdd does) you'll need to add a couple of files to your Servlet
53 Engine's current dir:
54
55 users.lst
56 - list of users and passwords
57
58 perms.lst
59 - list of users and allowable actions per user
60
61 If you are running the SimpleAxisServer, this means that these files must
62 be in the directory from which that program is run. The easiest thing to
63 do is to cd to samples/jaxrpc and run SimpleAxisServer from there.
64
65 Here's an explicit example of running GetQuote1 using these files:
66 java samples.jaxrpc.GetQuote1 -uuser1 -wpass1 XXX
67 This should result in the following output:
68 Using WSDL
69 XXX: 55.25
70 Manually
71 XXX: 55.25
72 WSDL + Reuse Call
73 Just a test
74 XXX: 55.25