A command-line client that uses SOAP to ask Cougaar for a count of
all objects on a node-agent's blackboard.
To run on Windows:
SET CP=-classpath %CIP%\lib\webaxis.jar;%CIP%\sys\axis_1_2_beta.jar;%CIP%\sys\mail.jar;%CIP%\sys\activation.jar
SET CL=org.cougaar.lib.web.axis.blackboardCount.BlackboardCountClient
SET URL=-lhttp://localhost:8800/axis/services
java -classpath %CP% %CL% %URL% %*
or on Linux/Unix Bash:
CP="$CIP/lib/webaxis.jar:$CIP/sys/axis_1_2_beta.jar:$CIP/sys/activation.jar:$CIP/sys/mail.jar"
CL="org.cougaar.lib.web.axis.blackboardCount.BlackboardCountClient"
URL="-lhttp://localhost:8800/axis/services"
java -classpath $CP $CL $URL $*
The expected output is:
getBlackboardCount(*)={
org.cougaar.lib.web.axis.blackboardCount.BlackboardCountPlugin$TestOne=1,
org.cougaar.lib.web.axis.blackboardCount.BlackboardCountPlugin$TestTwo=2,
}
Most of this is Axis/SOAP boilerplate, based on the Axis sample code:
$AXIS_HOME/samples/stock/GetQuote.java
|