Interstage Application Server UDDIサービス ユーザーズガイド
目次 索引 前ページ次ページ

第5章 サンプルプログラム> 5.2 拡張レジストリアクセス機能のサンプルプログラム

5.2.2 拡張属性の検索

samplesディレクトリの下の、attrFindディレクトリに含まれているサンプルでは、ビジネスデータに関連付けられた拡張属性を検索することができます。プロパティファイルの内容から、アプリケーション中で拡張属性を検索するためのパラメタを動的に構築し、find_attribute呼び出しを行います。

以下に、サンプルの構成ファイル一覧を示します。

C:\Interstage\F3FMuddic\samples\attrFind

/opt/FJSVuddic/samples/attrFind

サンプルの実行には同フォルダの実行用スクリプトファイルをご利用ください。スクリプトファイルの引数は以下のようになります。引数のプロパティファイルには設定用プロパティファイル(callprop)を指定してください。

run プロパティファイル

スクリプトファイルの実行の前には以下の作業を完了している必要があります。

 レジストリの URL と、登録系 API の利用に必要なアカウント情報の設定は callprop の以下の個所で行います。

 問い合わせ先 UDDIレジストリサービスの設定は callprop の以下の個所(プロパティ com.fujitsu.interstage.fjuddi4j.inquiryURLExtの値)を修正することで行います。またUDDIレジストリサービス用にHTTP Basic認証用にアカウント情報を設定する場合は、ユーザID をプロパティ basicAuth.id の値に、パスワードをプロパティ basicAuth.password の値に設定します。

# ===================================================
# Registry Information
# ===================================================

## NOTE:
## If you want to publish your extension attribute data,
## it may be required that you have a basic authentication
## account on the target registry at first.

# Access information for extension attribute API
com.fujitsu.interstage.fjuddi4j.inquiryURLExt=your.registry.inquire.ext.url
# basicAuth.id =
# basicAuth.password =

プロキシを利用する場合は、callprop の以下の個所のコメントアウトされているプロパティを有効にしてから、http.proxyHost、 http.proxyPort、 https.proxyHost、 https.proxyPort、http.proxyUserName、 http.proxyPassword の値を修正してください。プロキシの Basic 認証を行わない場合は http.proxyUserName、 http.proxyPassword はコメントのままにしておいてください。

# ===================================================
# Proxy settings
# ===================================================
# http.proxyHost=your.proxy.host.name
# http.proxyPort=your.proxy.port.number
# https.proxyHost=your.proxy.host.name
# https.proxyPort=your.proxy.port.number
# http.proxyUserName=your.proxy.basic-auth.userID
# http.proxyUserName=your.proxy.basic-auth.userID

find_attribute に検索パラメタ情報を設定します。

# ===================================================
#
# find_attribute argument
#
# ===================================================

arg.resourceKey= your.businessKey
# arg.propertyName=


目次 索引 前ページ次ページ

All Rights Reserved, Copyright(C) 富士通株式会社 2005