A java service to invoke a webmethods service

Hi
I want to write a java service in the devloper that will take a sevice as input at runtime and invoke that service.
To do this is there any predefined service other than remote invoke Else if i write my own service what are thw apis that i should use

Yogesh,

Code below should do your job.

IDataCursor pipelineCursor = pipeline.getCursor();
String interfaceCall = null;
String serviceCall = null;
String seperateThread = null;

interfaceCall = IDataUtil.getString( pipelineCursor , “interface” );
serviceCall = IDataUtil.getString( pipelineCursor , “service” );

pipelineCursor.destroy();

try{
IData results = Service.doInvoke(interfaceCall, serviceCall, pipeline);
IDataUtil.merge(results, pipeline);
}
catch(Exception e){
}

-Rajesh Rao