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 Service To Add Two Integers

    Posted 07/18/05 12:59 PM

    In WmPublic there are several mathematical services. One of them being an “addInts” service. But if you are justing learning to use java services, here’s the code:

    // pipeline
    IDataCursor pipelineCursor = pipeline.getCursor();
    String num1 = “0”;
    String num2 = “0”;
    int sum = 0;

    if (idcPipeline.first(“num1”)) {
    num1 = (String)idcPipeline.getValue();
    }

    if (idcPipeline.first(“num2”)) {
    num2 = (String)idcPipeline.getValue();
    }

    sum = Integer.parseInt(num1)+Integer.parseInt(num2);

    idcPipeline.insertAfter(“value”,sum+“”);
    pipelineCursor.destroy();


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


  • 2.  RE: Java Service To Add Two Integers

    Posted 07/19/05 02:14 AM

    Avinash,

    Please locate and spend some time with the very helpful Integration Server Developer’s Guide and Integration Server Built-In Services Guide. These PDF documents are located in your Developer\Docs folder.

    There are hundreds of built-in services that come ready to make your life easier.

    Mark


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