![]() |
STAR Computing GRID Monitoring MonALISA The MonALISA Web Service |
lia.Monitor.startWSDL=true
lia.Monitor.wsdl_port=6004
You must then restart the MonALISA Service:
cd $MonaLisa_HOME/Service/CMD
ML_SER restart
[stratos@salonica monalisaWSClients]$ ./install.sh
Please enter the MonALISA Web Services URL : http://salonica.itd.bnl.gov:6004/axis/services/MLWebService
Configuration completed successfully.
You must then decide which clients to use. You have three choices:
The Java-Axis clients, the WSIF clients or the Perl SOAP::LITE clients.
cd getValues
./generate_classes
The script generate_classes invokes the WSDL2Java utility
to access the WSDL file of the Web Service and create
the Java packages that are needed (under ./lia/ws/ and ./ws/lia/).
./compile_classes
You are now ready to run run_client (with the appropriate options)
to invoke the MonALISA Web Service. The availaible options for the
run_client script are listed in the Readme file, but basically
the format has as follows:
./run_client FarmUnit ClusterUnit Host Parameter FromTime ToTime
the FromTime and ToTime above are in milliseconds.
cd monalisaWSClients/WS-Clients/Java-Axis/getValues
./run_client "bnl-itd" "Master" "localhost" "Load5" -600000 0
./Client.pl "bnl-itd" "Master" "localhost" "Load5" -600000 0
The arguments are the same with those used in the Java-Axis Clients.
java -cp C:\axis-1_1\lib\axis.jar;C:\axis-1_1\lib\axis-ant.jar;
C:\axis-1_1\lib\commons-discovery.jar;
C:\axis-1_1\lib\commons-logging.jar;
C:\axis-1_1\lib\jaxrpc.jar;
C:\axis-1_1\lib\log4j-1.2.8.jar;
C:\axis-1_1\lib\saaj.jar;
C:\axis-1_1\lib\wsdl4j.jar
org.apache.axis.wsdl.WSDL2Java -v -o MonaLisa
http://salonica.itd.bnl.gov:6004/axis/services/MLWebService?wsdl
Parsing XML file: http://salonica.itd.bnl.gov:6004/axis/services/MLWebService?w
sdl
Generating MonaLisa\lia\ws\WSNode.java
Generating MonaLisa\lia\ws\Result.java
Generating MonaLisa\lia\ws\WSConf.java
Generating MonaLisa\lia\ws\WSFarm.java
Generating MonaLisa\lia\ws\WSCluster.java
Generating MonaLisa\ws\lia\MLWebServiceService.java
Generating MonaLisa\ws\lia\MLWebServiceServiceLocator.java
Generating MonaLisa\ws\lia\MLWebService.java
Generating MonaLisa\ws\lia\MLWebServiceSoapBindingStub.java
The above creates the necessary Java packages under the directory MonaLisa
(the -o option).
Copy either Client.java or
myClient.java
in the MonaLisa directory, compile it
using javac and you are ready.
Stratos Efstathiadis - page was last modified