Upload
moris-hutchinson
View
214
Download
1
Embed Size (px)
Citation preview
Helsinki, June 7th 2004 IAB Meeting
MobileMAN ProjectWeb Service in Ad Hoc Network
Veronica Vanni
NETikos S.p.A.
Helsinki, June 7th 2004 IAB Meeting
Summary
• Web Service definition
• Web Service in Ad Hoc Network
• Interaction between middleware and our application
• software Architecture :- developed API
- relational database model
Helsinki, June 7th 2004 IAB Meeting
Web Services
WS are services to build distributed applications, to use methods and properties of objects installed on other server:
• Each information system can publish contents through WS
• Each information system can use contents published from other publisher
• Use of UDDI (Universal Description Discovery and Integration) to define a way to publish and discover information about Web Services
• Use of SOAP (Simple Object Access Protocol) to access to remote services, defines a simple way to package information to exchange across systems. SOAP bindings to HTTP defines a way to make remote procedure calls between systems. based on XML, a neutral language to several devices
• WSDL (Web Service Description Language), in XML format, that describes the content in terms of methods, parameters, types and etc..
Helsinki, June 7th 2004 IAB Meeting
Web Service Scenario
• The provider of services creates the service and its WSDL description
• The provider publishes its service in UDDI
• The user finds the services trying UDDI register
• The application connects to Web Services and calls its operation via SOAPService
BrokerService
User
ServiceProvider
UDDI/WSDLFind
Pub
lish
UD
DI
Bind
SO
AP
Communication: HTTP
Data: XML
Interactions: SOAP
Helsinki, June 7th 2004 IAB Meeting
Web Service in Ad Hoc network
In Ad Hoc Network, we take care of the features of this type of network:
• No client-server application, but peer-to-peer communications
• Each node has an client side and server side
• Distributed database that stores information relative on available services presented on the network
• to obtain overlay network of UDDI service we can use Pastry or Cross-ROAD protocol
Helsinki, June 7th 2004 IAB Meeting
Web Service in Ad Hoc network [cont]
UDDI-m
UDDIClient
UDDIServer
UDDI-m
UDDIClient
UDDIServer
UDDI-m
UDDIClient
UDDIServer
UDDI-m
UDDIClient
UDDIServer
API publishing
API inquiry
Helsinki, June 7th 2004 IAB Meeting
Interaction between middleware and applicationPossible Architectures
Applications WSL
Middleware-Pastry
Transport
Network
MAC + Physical
• WS application can exchange information with other protocol through NeSt.• It can exploit CROSS-ROAD advantages simply implementing the P2P common API
Applications WSL
Middleware-CROSS-ROAD
Transport
Network
MAC + Physical
Net
wor
k St
atu
sLegacy ArchitectureMobileMAN Architecture
• With this same interface (P2P common API) WS can interactive with Pastry on a classical legacy architecture
Helsinki, June 7th 2004 IAB Meeting
Software Architecture
user/provider Interface(jsp, html, cgi…)
Publishing/inquiry API
UDDI4m db
Application level
P2P common API
Middleware level
Helsinki, June 7th 2004 IAB Meeting
publishing/inquiry APIpublishing API
void SaveBusiness (key KE)void SaveService (key KS)void SaveBinding (key KB)void SavetModel (key KtM)
void DeleteBusiness (key KE)void DeleteService (key KS)void DeleteBinding (key KB)void DeletetModel (key KtM)
inquiry API
void FindBusiness (key KE, method_search ms)
void FindService (key KS, method_search ms)
void FindBinding (key KB)
void FindtModel (key KtM)
You can find business entity or service for:Key, if the key is knownKeyword, if you want search for keywordAll, if you know all publisher or services contained in the network
Modify the UDDI registries
Inquiry the UDDI registries
Helsinki, June 7th 2004 IAB Meeting
Relational database model
Business_Entity
businessKeyNameDescriptionContact
tModel
Tmodel_keyNameDescription
Class
Tmodel_Keyclass_idName
Business_Service
serviceKeybusinessKeyNameDescription
Binding_Template
binding_Keyservice_KeyDescriptionAccess_Point_UrlAccess_Point_Type
tModel_Descr
Tmodel_KeyClass_idCategory_idKind_id
0..n
1..1
1..1
1..1Category
Tmodel_Keycategory_idName
Kind
Tmodel_Keykind_idName
1..n
1..n
1..11..1
Database is in keeping with UDDI standard:
• Business_Entity describes the publishers;• Business_Services describes the services published from publishers in the network• Binding_Template describes the services in technical features• tModel and tModel_Descr are template service
tModel_Instance_Info
Binding_KeyTModel_keyOverview_urlInstance_parmsDescription
Helsinki, June 7th 2004 IAB Meeting
Database model
Business_Entity
BusinessKey Name Description
BE200403161132 NETikos ……
Business_Service
ServiceKey (PK) Businesskey Name Description
BS200403161140 BE200403161132 Content Sharing ……
BS200403161137 BE200403161132 Video/Conferencing ……
BS200403161212 BE200403161132 Chat ……
BindingTemplate
BindingKey ServiceKey Description Type_AP AccessPoint
BT200403161140 BS200403161140 ….. HTTPhttp://
mobileman.netikos.com/cgi- bin/SoapServer/content.cgi
Helsinki, June 7th 2004 IAB Meeting
Database model [cont.]
tModel
IdentifierBag Name Description OverviewDoc
TM200403161140 Content Sharing ….. ……
TModel_Descr
IdentifierBag Class_id Category_id Kind_id
TM200403161140 2 4 1
TM200403161140 2 4 2
TM200403161140 2 4 3
Class
Class_id Name
2 ENTERTAINMENT
Category
Category_id Name
4 Music
Kind
Kind_id Name
1 POP
2 ROCK
3 CLASSIC
Helsinki, June 7th 2004 IAB Meeting
Development’s state
The state of application’s development is:
• In the first time the publishing/inquiry API are developed in perl language. The choose of perl language is been made because it’s more flat than use of java so it’s more useful on small platforms
• Then, the publishing/inquiry API are developing in java language in order to optimize middleware’s interface (P2P commonAPI)
• MySQL database is used to realize the UDDI database • Configuration of laptop or desktop to run the application