Debian Codegraph @

samples/stock/testit.sh

raw
1 #!/bin/sh
2 # this assumes webserver is running on port 8080
3
4 echo "Deploy everything first"
5 java org.apache.axis.client.AdminClient deploy.wsdd $*
6
7 echo "These next 3 should work..."
8 java samples.stock.GetQuote -uuser1 -wpass1 XXX $*
9 java samples.stock.GetQuote -uuser2 XXX $*
10 java samples.stock.GetInfo -uuser3 -wpass3 IBM address
11
12 echo "The rest of these should fail... (nicely of course)"
13 java samples.stock.GetQuote XXX $*
14 java samples.stock.GetQuote -uuser1 -wpass2 XXX $*
15 java samples.stock.GetQuote -uuser3 -wpass3 XXX $*
16
17 echo "This should work but print debug info on the client and server"
18 java samples.stock.GetQuote -d -uuser1 -wpass1 XXX $*
19
20 # Now undeploy everything
21 java org.apache.axis.client.AdminClient undeploy.wsdd $*