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

Pubdbcall How to pass parameters to Stored procedure SQLserver

  • 1.  Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 05:08 PM

    I appreciate help/direction from people who have done this. I tried calling a SQLserver stoed procedure with this call that is sanwiched between connect and close statements. Under the $data field of call statement, I created string parameters (by copying the fields from pipeline in) and mapped it to the pipeline-in fields. When ran the service I get error saying :

    “com.wm.app.b2b.server.ServiceException: [ISS.0026.9103] No parameter named RequestNum”

    Although I created this string under $data and also mapped into a input
    field.

    Any help appreciateD!!
    Thanks KS


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


  • 2.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 05:34 PM

    KS,
    Did you use $dbProcSig ? If not ,map the procedure signature to this variable in the pub.db:call service.


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


  • 3.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 10:24 PM

    Sorry but can you please explain how to map the signature… I didnt specify anything in $dbprocsig. I just created lots of strings beneath the $data representing all my parameters for the procedure and mapped pipelinein variables with these…

    thanks,KS


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


  • 4.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 10:52 PM

    Hi KS,

        $dbProcSig specifies data name,sqldata type,Direction(in or out) 
    

    parameters.I fyour data is not in order set $dbParamOrder is false.
    $data is actual value for names you have specified in $dbProcSig.
    $dbProc parameter is for schema.packageName.storedProcedureName.
    Hope this will help you.

    Thanks,
    SriniK


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


  • 5.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 10:54 PM

    Sorry KS,

     If it is distributed database specify catalog name in $dbCatalog. 
    

    Thanks,
    SriniK


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


  • 6.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Tue June 10, 2003 11:25 PM

    Again, how do I specify the multiple parameters specification in dbprocsig and corresponding values in $data?
    thanks,
    SK


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


  • 7.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Wed June 11, 2003 03:54 PM

    Suppose you have two params empno and empname for the proc,
    in $dbprocsig you need to hardcode it as follows
    empno integer in
    empname varchar in

    in $data you will have to put
    empno 1000
    empname Tom

    This should work. Revert to me if you don’t know how to hardcode the values in dbProcSig.


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


  • 8.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Wed June 11, 2003 05:26 PM

    As you guessed, I need help hardcoding…
    Although I want to try this after you explain , I still want to know if the hardcoding can be extended to passing values from pipeline in variables…

    thanks for bearing with my basic questions…but these really help me,
    KS


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


  • 9.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Thu June 12, 2003 03:51 PM

    click on the call service which as you said is sandwiched between connect and close. Now on the pipeline tab on the lower Right hand window on Developer ,click on ‘set value’ icon (shown with a blue curved arrow) . This will give you a pop up box where you can set/hardcode the values by clicking on AddRow icon on the Top Right hand side corner.


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


  • 10.  RE: Pubdbcall How to pass parameters to Stored procedure SQLserver

    Posted Thu June 12, 2003 11:30 PM

    Thanks for the suggestion Biju, it worked…!!!


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