Upload
cruz-lyons
View
39
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Providing Standardized Data Access through Java-RMI and web services at JAMSTEC. S. Tsuboi (1) , H. Mizutani (1) , N. Takeuchi (2) T. Arai (3) , Y. Yanaka (3) (1)IFREE, (2)ERI, (3)Fujitsu. Broadband waveforms are provided through various interfaces…. Wilber II (IRIS). NINJA(IFREE, OHP). - PowerPoint PPT Presentation
Citation preview
Providing Standardized Data Access through Java-RMI and web services at
JAMSTEC
S. Tsuboi(1), H. Mizutani(1), N. Takeuchi(2)
T. Arai (3), Y. Yanaka(3)
(1)IFREE, (2)ERI, (3)Fujitsu
Wilber II (IRIS) NINJA(IFREE, OHP)
Broadband waveforms are provided through various interfaces…
Pacific Region Geophysical Network Data Center of IFREE/JAMSTEC has archived broadband seismograms, geomagnetic, and geodetic data which are recorded by geophysical observation network in northwest Pacific region. These data are distributed through our web site using the Java-RMI based network data center system (Takeuchi et al., 2002). While developing this system we have realized that the current approach has several problems to build network data center system:
• It is necessary to install server software at each data center.
• It is possible that original data source might become obscure.
● Using web services technology, differences among data centres are accommodated through WSDL
DC A
DC B
DC C
Application
request
Geophysical Data Service Client
・ One stop application
● http is used as transmission protocol● Access procedures are described in WSDL● No dynamic name services by UDDI
DC A
DC C
Application
http
http
Web interface
WSDL for DC C
WSDL for DC A
UDDIDC B
http
GDS Client softwares
DataCenterList.XML
WSDL for DC B
How to use GDS client
How to use GDS client (2)
(1) select data center (2) enter search condition
How to use GDS client (3)(3) select event, station, channel
How to use GDS client (4)(4) enter user information
Access to services
• GDS Client uses get and post method of http protocol to access data servers.
To access to other services, it is necessary to prepare WSDL and XSLT files.
GDSClient software
• http://www.jamstec.go.jp/pacific21/
• Following data centers are available through this software– IFREE NINJA (Continuous/Event data)– OHP DMC NINJA (Cont./Event)– IRIS WebRequest(Cont), WilberII(Event)– ORFEUS WebRequest, WilberII– IFREE Synthetic Seismograms
Summary
• We have developed new user application software, which enables users to access different data centers through a unique user interface, which we call “Geophysical Data Service Client application software (GDS Client).
• GDS Client software is easy to extend to other data centers and other type of Earth science databases by developing WSDL and XSLT style sheet.
Webサービスの技術の使用
–XML (eXtend Markup Language)を用いたデータ管理
–WSDL (Web Service Description Language) を用いた手続きの記述
–UDDI (Universal Description, Discovery, and Integration)を用いたサービスの動的な検索
– SOAP(simple object access protocol)を用いた通信
DC A
DC C
Applicationsoap
Service
WSDL for DC C
WSDL for DC A
UDDI
DC B
soap
Service
Service registrationWSDL for DC B
Web サービスを用いたアプリケーション(一般論)
Configuration fileDataCenterList.xml
データ取得時の内部的な流れ
1.アプリケーションを起動
2.データセンターを選択
3.イベントを検索
4.イベント選択
5.データ取得
Workflow fileDCname.*.xml
Web Interface
Data Center
xml→html 変換 (xslt)
html→xml 変換 (xslt)
*.wsdl
*.xsl
提供パッケージに含まれるもの
-. 実行ファイル (GDSClient.bat)-. ライブラリファイル (jarファイル)-. データセンター設定ファイル (xmlファイル)
datacenterlist.xml-. ワークフローファイル (xmlファイル )-. ヘルプドキュメント
提供パッケージに含まれないもの (Web上で公開)
-. wsdlファイル (Webサービス記述ファイル )http://www.jamstec.go.jp/pacific21/gds/*.wsdl
-. xsl ファイル (html←→xml変換スクリプト )http://www.jamstec.go.jp/pacific21/gds/*.xsl
ダウンロードされるソフトウェア
詳細な流れ
conf/integrate.event.searchevent.xml
IFREEEventDataService.wsdl
<element key="ifreeevent"> <value>ifreeevent.event.searchevent</value>
ifreeevent.event.searchevent.xml
リモートファイル
<element key="name"><value>ifreeevent.IFREEEventDataService.GDSGetPort.searchEvents</value></element>wsdlに記述されたメソッド名が書かれている
ローカルファイル
<operation name="searchEvents"><http:operation location="cgi-bin/getEventList.cgi" /><input><gds:translate type="text/xsl" href="http://ohpdmc.eri.u-tokyo.ac.jp/gds/IFREEEventDataService/searchEvents_input.xsl" /><http:urlEncoded /> </input><output><gds:translate type="text/xsl" href="http://ohpdmc.eri.u-tokyo.ac.jp/gds/IFREEEventDataService/searchEvents_output.xsl" /></output></operation>inputと outputの処理の仕方が指定されている
searchEvents_input.xsl
http→xmlの変換スクリプトが書かれている
Search ボタンを押す
疎結合と密結合
DC A
DC B
DC C
Application
request
疎結合の例 密結合の例
各サーバー間が、同一のアプリケーションにより連携される。
各サーバー間は結合されず、ユーザーとサービス提供者間に同一のアプリケーションをインストールする必要はない。
WSDL とは?• サービス提供者とサービス利用者の間の
動的な結合を可能にする• サービス提供者は自由なインターフェー
スでサービスを公開• サービス利用者は同一の手続きでサービ
スを利用可能
インターフェースの汎用化• サービスとインターフェースを分離。イン
ターフェースを外部定義体で定義できる。• 呼出し手順の汎用化• サービスとユーザインターフェースを関連
付けるワークフローも外部定義体で定義• 引数と戻り値はXSLTを用いてXML形
式に変換し、内部で処理する。
New application(1)
Web Service● We use the technology of web service to
develop new application– description of procedures using WSDL (Web
Service Description Language) written in XML (eXtend Markup Language)
– network communication using SOAP(simple object access protocol)
– dynamic searching of services using UDDI (Universal Description, Discovery, and Integration)
● The parameters are written in XML so the system using web service technology has great extensibility.
New application (3)
● Now, following services are available– IFREE NINJA (Continuous/Event data)– OHP DMC NINJA (Cont./Event)– IRIS WebRequest(Cont), WilberII(Event)
● Future Plan – Add other data centers – Need to create new WSDL file– improvement of user interface
(1) これらの XML ファイルのうち最も重要なのは WSDLであり, XSLT, XSD(スキーマファイル)は,WSDLを補足するものである (WSDL中に記述された URLからリンクされている)(2) これらの XMLファイルはデータ公開サイトと対になるものであり インターネットで公開する必要がある
キーポイントとなるファイル群(1) サービスの引数・戻り値の型を定義する「スキーマファイル」 ・ GDSSchema.xsl
(2) サービスの引数・戻り値( GDSSchema準拠 XML形式)を定義する「WSDL」 ・ IFREEEventDataService/IFREEEventDataService.wsdl ・ IFREEContDataService/IFREEContDataService.wsdl ・ IFREESynthDataService/IFREESynthDataService.wsdl
(3) サービスの引数・戻り値の変換( GDSSchema準拠 XML←→サービス独自)を 定義する「 XSLTスタイルシートファイル」 ・ IFREEEventDataService/*.xsl ( 15ファイル) ・ IFREEContDataService/*.xsl ( 18ファイル) ・ IFREESynthDataService/*.xsl ( 15ファイル) ・ CommonEventNINJAService/*.xsl( 17ファイル) ・ CommonContNINJAService/*.xsl ( 20ファイル)
??