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
  • 1.  call from Java Service to Flow Service

    Posted Mon June 27, 2011 09:11 PM

    Hello
    Sorry if it is not the correct forum
    I need to take a call from Java Service to Flow Service.

    public static final void pruebaFS ​​(pipeline iData) throws ServiceException {

    IDataCursor pipeline.getCursor pipelineCursor = ();
    String name = IDataUtil.getString (pipelineCursor, “in”);

    IDataUtil.put (pipelineCursor, “out”, “OK”);
    pipelineCursor.destroy ();
    }

    Within this code would have to call a flow service.
    Could be done?
    Thanks


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: call from Java Service to Flow Service

    Posted Mon June 27, 2011 09:52 PM

    Hello,

    In order to invoke a webMethods service from within a java service, you would need to use one of the doInvoke (or doThreadInvoke) methods from the Service class.

    Hope this helps

    Hugues


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: call from Java Service to Flow Service

    Posted Tue July 12, 2011 03:46 AM

    Hi,

    you can also try this way to call a flow service from java service.

    IData out= context.invoke(“namespace”, “service name”, "input);
    out : IData where does java store the output of the webMethods service.
    namespace : The folder where do you store your service in the webMethods. (eg : “pub.flow”)

    service name : Service name which will you call from java code.

    input : IData input of the service that want tobe called.


    #webMethods
    #Integration-Server-and-ESB