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.  stored Procedure with multiple Result sets

    Posted 11/14/15 03:26 AM

    Hello All,
    Hope all are doing well. Thanks for reading this post and hope will get some assistance to resolve my issue.

    How can I retrieve multiple Result Sets which are coming from a storedProcedure into webMethods

    Signature of stored Procedure is :

    CREATE OR replace PROCEDURE SPTwoRefCursor (catCur OUT SYS_REFCURSOR, prodCur OUT SYS_REFCURSOR )
    IS
    BEGIN
    OPEN catCur FOR SELECT * FROM “EMP”;
    OPEN prodCur FOR SELECT * FROM “EMP1”;
    END

    SQL> desc emp;
    Name Null? Type


    EMPID NUMBER(5)
    ENAME VARCHAR2(20)
    MGR NUMBER(5)
    SAL NUMBER(10,2)
    DEPT NUMBER(5)

    SQL> desc emp1;
    Name Null? Type


    SALARY NUMBER(15,2)
    EID NUMBER(4)

    My DB is Oracle and wM8.2.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 2.  RE: stored Procedure with multiple Result sets

    Posted 11/16/15 12:46 PM

    When you create a JDBC adapter service, under the ResultSet tab, you can create multiple results sets, just give different name for each set and define column under each set.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 3.  RE: stored Procedure with multiple Result sets

    Posted 11/18/15 03:35 PM

    Thanks Wang for your reply. I will try that option.

    Thanks,
    RP


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods