*/
public class StreamClient {
public void invoke(String operationName, WsdlDefinitions wsdl, String name, String topic){
ODEClient odeClient = new ODEClient();
GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
Workflow workflow = xregistryAccesser.getWorkflow(name);
GsiInvoker secureInvoker = null;
secureInvoker = new GsiInvoker(credential, XBayaSecurity
.getTrustedCertificates());
try {
LeadContextHeader defaultLeadHeader = odeClient.getDefaultLeadHeader(workflow, topic,
credential.getName().toString(), new URI(topic), null, null);
defaultLeadHeader.setExperimentId(topic);
LEADWorkflowInvoker invoker = new LEADWorkflowInvoker(wsdl,
defaultLeadHeader, null, secureInvoker, operationName);
WSIFMessage inputMessage = invoker.getInputMessage();