zoukankan      html  css  js  c++  java
  • JDBC adapter Call Stored Procedures

    Scenario:

    Http Client sends a Synchronous request to a DB. The stored Procedure is executed and the correspoing role of the user is sent back to the HTTP Client.

    image

    List Of steps:

    1. Below is a sample DB Structure which is used in the scenario.

      image

    2. sp_GetRole is the name of the Stored Procedure used.

      Input parameters: Username, Password

      Output parameters: Role





    3. Create the required Data types, Message Types & message interfaces required for Request Mapping. U can find the Stored Procedure Message Type on the Left hand side of request mapping shown below.

      image

    4. Map the necessary fields.

      EXECUTE-->action

      true-->isInput

      CHAR-->type (CHAR is the Data type of UName & UPassword). Refer to the DB structure in Fig 1.

    5. Create the required Data types, Message Types & message interfaces required for Response mapping. U can find the response of Stored Procedure Message Type on the Right hand side of response mapping shown below.

      image



    6. Create the required Interface mapping

      image image



    7. Go to Configuration Time and create the necessary Configuration time Objects. Receiver Determination, Interface Determination & Mapping, Receiver Agreements.

    8. In JDBC Receiver Channel, key in the following parameter in connection textbox. jdbc:microsoft:sqlserver://<hostname>:1433;DatabaseName=<dbname>;SelectMethod=cursor

      image

    9. Execute the Scenario by sending the request, and you will get the desired output.

    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1671

  • 相关阅读:
    在peoplecode中直接调用SQR
    想起了李雷和韩梅梅
    结婚两周年纪念
    Unix Command Summary
    在PeopleSoft中如何隐藏菜单,导航栏,以及其他定制化链接
    那些朋友们
    整天工作的人为何当不了富翁
    ActiveX简单介绍
    SQL UNION
    Java程序设计问答大全(一)
  • 原文地址:https://www.cnblogs.com/byfhd/p/1270449.html
Copyright © 2011-2022 走看看