Hello Dave,
You could implement a service as shown below and call it according
https://server:port/invoke/folder.subfolder:service?
user=<…>&pass=<…>&path=<…>&service=&l;lt;…>
You can find more about the used classes in the server/client API.
Kind regards
André
–
Java service
paramaters: user , pass, path, service
IDataCursor pipelineCursor = pipeline.getCursor();
String user = new String();
String pass = new String();
String path = new String();
String service = new String();
if (pipelineCursor.first( “user”)) user = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “pass”)) pass = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “path”)) path = (String) pipelineCursor.getValue();
if (pipelineCursor.first( “service”)) service = (String) pipelineCursor.getValue();
////////////////////////////////////////////////////////////////
// fetch server port
//
String port = System.getProperties().getProperty(“watt.net.primaryListener”);
port = port.replaceFirst(“.@(.)@.*”, “$1”);
String host = “127.0.0.1:” +port;
////////////////////////////////////////////////////////////////
// invoke service
//
Context context = new Context();
try
{
context.connect(host, user, pass);
IData result = IDataFactory.create();
result = context.invoke(path, service, pipeline);
pipelineCursor.insertAfter("result", result);
}
} catch (Exception e)
{
context.disconnect();
}