IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

A java service to invoke a webmethods service

  • 1.  A java service to invoke a webmethods service

    Posted Fri October 15, 2004 07:10 AM

    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


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 2.  RE: A java service to invoke a webmethods service

    Posted Fri October 15, 2004 07:34 AM

    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


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General