Menu

ASK 1.0.6 facilitates WEBAPP dev. using static services

ASK 1.0.6 facilitates the development of WEBAPPs using static services by offering an API that allows to call ASK stateless applications by passing the service name and parameters.

The API offers two possibilities: invoke the service making it be executed in the same Server (local) or not. For example:

public void paint(java.io.OutputStream out){
Hashtable p = new Hashtable();
// set the parameter for the service
p.put("file","c:/data.xml");
try{
// the service is requested to be executed locally
ser = org.openode.ask.server.ApplicationServer.appServer().runServiceLocal("xmlservice",p);
out.write(ser);
}catch(Throwable er){
er.printStackTrace()
}
}

The same example but without location requirement:

public void paint(java.io.OutputStream out){
Hashtable p = new Hashtable();
// set the parameter for the service
p.put("file","c:/data.xml");
try{
// the service is requested to be executed locally
ser = org.openode.ask.server.ApplicationServer.appServer().runService("xmlservice",p);
out.write(ser);
}catch(Throwable er){
er.printStackTrace()
}
}

Posted by Enrique Perez Gil 2003-01-21

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.