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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Java API - Services.doInvoke

    Posted 10/21/11 07:02 PM

    I’m trying to create a custom java service which will perform the doInvoke method. It’ll basically invoke another IS flow service. The input signature of the IS flow services has two input parameters (IS document and string). Is the below java code correct?

    Service.doInvoke(“Package.folder”,“IS_flow_svc”,input1,input2, input3, etc.)


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Java API - Services.doInvoke

    Posted 10/22/11 01:34 AM

    No. You need to create a pipeline object, populate with the vars the called service needs and pass that. The API docs have the details.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Java API - Services.doInvoke

    Posted 10/22/11 02:27 AM

    Reamon,

    Let me know if this is correct. In my input2 pipeline object, it contains an IData object and a string variable to be pass to the second invoke flow service.

    String divisionNumber = “40E”;
    IData output = IDataFactory.create();

        try
    {
    output = Service.doInvoke( "NSName", "flow_svc", input );
    IData input2 = IDataFactory.create();
    IDataCursor input2cursor = input2.getCursor();
    IDataUtil.put ( input2cursor, "output", output );
    IDataUtil.put ( input2cursor, "divisionNumber", divisionNumber );
    }catch(Exception e){
    }
    
    try
    {
    Service.doInvoke( "NSName" , "flow_svc" , input2);
    }catch(Exception e){
    }
    

    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: Java API - Services.doInvoke

    Posted 10/22/11 02:49 AM


  • 5.  RE: Java API - Services.doInvoke

    Posted 10/22/11 04:09 AM


  • 6.  RE: Java API - Services.doInvoke

    Posted 10/22/11 04:47 PM

    The compiler will detect that better than I!


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: Java API - Services.doInvoke

    Posted 10/24/11 01:37 PM

    Okay. For some reason, the divisonNumber is not added to the pipeline object. Can someone tell me what I did incorrectly?


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 8.  RE: Java API - Services.doInvoke

    Posted 10/24/11 02:39 PM

    I’ve figured this out. In order to see the pipeline object, you would have to create the input variables for the invoking service.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB