Wednesday, February 07, 2007

Status Report for 02/01/07 to 02/07/07

I’ve just finished implementing a client (STFILTER) which will invoke time series analysis web service (AnalyzeTseriService). I added a web service version for time series analysis, called execATS. WSDL of execATS can be accessed at http://gf1.ucs.indiana.edu:8888/analyze-tseri-exec/services/AnalyzeTseriExec.

execATS needs the following 4 arguments as input:
  1. String siteCode – Site code such as dhlg
  2. String dataURL – Data file URL from which the server will download data file
  3. double[][] globalParam – Parameters for global station. Array of (double Parameter type, double param_1, … , double param_n)
  4. double[][] siteParam – Parameters for the specific station . Array of (double Parameter type, double param_1, … , double param_n)
A very simple example to create a client to invoke web service can be found at http://ws.apache.org/axis/java/user-guide.html#BasicsGettingStarted. In a nut shell, execATS web service can be executed from a client by using the following code:

String siteCode = "dhlg";
String dataUrl = "http://server:port/datafile";
double[][] globalParam = {
{ 7, 0.0, 50.0, 2005.0, 2008.0 },
{ 9, 0.0, 50.0, 2005.0, 2008.0 } };
double[][] siteParam = {
{ 8, 0.0, 50.0, 2005.0, 2008.0 } };

Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://soapinterop.org/",
"execATS"));

String[] ret = (String[]) call.invoke(new Object[] {siteCode, dataUrl, globalParam, siteParam});

1 comment:

Anonymous said...

Free Casino Money tyuueooru
Casino Free Game
It's always good to stick to such online casino website that can meet your queries whenever you want.
[url=http://www.nhgaa.org/]Online Casinos Free[/url]
000 free with your first 20 deposits!
The risks arriving with the gambling has decreased to a great extent after the arrival of free online casino.
http://www.nhgaa.org/ - Free Online Casino
In fact, there is no risk at all.