今すぐお試しください!

製品の詳細CData BizTalk Adapter for Presto を確認して、無償評価版をダウンロード:

今すぐダウンロード

How to Generate SQL Command Schemas for the CData BizTalk Adapter for Presto

The CData BizTalk Adapter makes it easy to process Presto data in BizTalk by returning the data as XML. You can use this data in a BizTalk orchestration by creating an XML schema file for the table you want to access in BizTalk.

This article will show how to generate a schema to process Presto data retrieved using the CData BizTalk Adapter. You will generate a schema for a SELECT command.

You can use the CData BizTalk Adapter for Presto to execute standard SQL commands to Presto. You can follow this guide to execute SELECT, INSERT, UPDATE, and DELETE commands.

Add the Adapter for Presto to Your Project

Follow the steps below to add the adapter to a BizTalk Server project.

  1. If you have not already done so, create a new BizTalk Server project in Visual Studio.
  2. Right-click on the project in the Solution Explorer and click Add -> Add Generated Items.
  3. Select Add Adapter Metadata in the resulting dialog box.
  4. In the resulting Add Adapter wizard, select the adapter from the list.
  5. In the Port menu, leave the selection blank. You can also select a receive location or send port that has the adapter configured as its transport type.

Generate a Schema for an SQL Command

After you select the adapter in the Add Adapter wizard, the Schema wizard is displayed. Follow the steps below to configure connection properties and retrieve the metadata for the results of the command.

  1. In the Connection String page, enter authentication credentials and other connection properties, if you did not select an adapter that you have already configured in your BizTalk application. Below is a typical connection string:

    Server=127.0.0.1;Port=8080;

    Presto への接続には、まずはServer およびPort を接続プロパティとして設定します。それ以外の追加項目は接続方式によって異なります。

    TLS/SSL を有効化するには、UseSSL をTRUE に設定します。

    LDAP で認証

    LDAP で認証するには、次の接続プロパティを設定します:

    • AuthScheme: LDAP に設定。
    • User: LDAP で接続するユーザー名。
    • Password: LDAP で接続するユーザーのパスワード。

    Kerberos 認証

    KERBEROS 認証を使う場合には、以下を設定します:

    • AuthScheme: KERBEROS に設定。
    • KerberosKDC: 接続するユーザーのKerberos Key Distribution Center (KDC) サービス。
    • KerberosRealm: 接続するユーザーのKerberos Realm 。
    • KerberosSPN: Kerberos Domain Controller のService Principal Name。
    • KerberosKeytabFile: Kerberos principals とencrypted keys を含むKeytab file。
    • User: Kerberos のユーザー。
    • Password: Kerberos で認証するユーザーのパスワード。

  2. In the General Options section on the next page, Schema Information, select Send Port or Receive Location, depending on the adapter configuration.
  3. If you want to generate the schema for the entire result set, select the Single Message option in the Message Mode menu. If you want to generate one schema for each row in the result set, select the Message Per Row option and confirm that the root element of the message is 'row'.
  4. In the Command Type menu, select SQL Command.
  5. In the SQL Command Text box on the Statement Information page, enter an SQL command. (If you have configured a receive location or send port, the SQL command you configured is entered in the box.) This example uses the query below:

    SELECT * FROM Customer

  6. Confirm the settings in the summary displayed by the wizard and click Finish to generate the schema.xsd file.

Processing Schemas

To use schemas in a simple BizTalk application, see the tutorial.

 
 
ダウンロード