25
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

Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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

Page 1: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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

Page 2: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

Wilber II (IRIS) NINJA(IFREE, OHP)

Broadband waveforms are provided through various interfaces…

Page 3: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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.

Page 4: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

● 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

  

Page 5: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

● 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

Page 6: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

How to use GDS client

Page 7: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

How to use GDS client (2)

(1) select data center (2) enter search condition

Page 8: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

How to use GDS client (3)(3) select event, station, channel

Page 9: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

How to use GDS client (4)(4) enter user information

Page 10: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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.

Page 11: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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

Page 12: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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.

Page 13: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC
Page 14: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

Webサービスの技術の使用

–XML (eXtend Markup Language)を用いたデータ管理

–WSDL (Web Service Description Language) を用いた手続きの記述

–UDDI (Universal Description, Discovery, and Integration)を用いたサービスの動的な検索

– SOAP(simple object access protocol)を用いた通信

Page 15: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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 サービスを用いたアプリケーション(一般論)

Page 16: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

Configuration fileDataCenterList.xml

データ取得時の内部的な流れ

1.アプリケーションを起動

2.データセンターを選択

3.イベントを検索

4.イベント選択

5.データ取得

Workflow fileDCname.*.xml

Web Interface

Data   Center

xml→html 変換 (xslt)

html→xml 変換 (xslt)

*.wsdl

*.xsl

Page 17: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

提供パッケージに含まれるもの

-. 実行ファイル (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

ダウンロードされるソフトウェア

Page 18: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

詳細な流れ

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 ボタンを押す

Page 19: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

疎結合と密結合

DC A

DC B

DC C

Application

request

疎結合の例 密結合の例

各サーバー間が、同一のアプリケーションにより連携される。

各サーバー間は結合されず、ユーザーとサービス提供者間に同一のアプリケーションをインストールする必要はない。

Page 20: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

WSDL とは?• サービス提供者とサービス利用者の間の

動的な結合を可能にする• サービス提供者は自由なインターフェー

スでサービスを公開• サービス利用者は同一の手続きでサービ

スを利用可能

Page 21: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

インターフェースの汎用化• サービスとインターフェースを分離。イン

ターフェースを外部定義体で定義できる。• 呼出し手順の汎用化• サービスとユーザインターフェースを関連

付けるワークフローも外部定義体で定義• 引数と戻り値はXSLTを用いてXML形

式に変換し、内部で処理する。

Page 22: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

New application(1)

Page 23: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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.

Page 24: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

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

Page 25: Providing Standardized Data Access through Java-RMI and web services at JAMSTEC

(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ファイル)

??