8

Click here to load reader

Web Services on AIMS (FAO)

Embed Size (px)

DESCRIPTION

FAO ,AIMS web services ,2009

Citation preview

Page 1: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

Web Services in

AIMS and Agrovoc work bench

http://aims.fao.org

Page 2: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

W3C (working group) definition

• A Web Service (also Webservice) is defined by the W3C as "a software system designed to support interoperable machine-to-machine interaction over a network

• Web Services can convert your applications into Web-applications

• Web Services are published, found, and used through the Web

Page 3: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

Web services platform elements SOAP (Simple Object Access Protocol)

SOAP is an XML-based protocol to let applications exchange information over HTTP

WSDL (Web Services Description Language) WSDL is an XML-based language for locating and

describing Web services

UDDI (Universal Description, Discovery and Integration) UDDI is a directory service where people can register

and search for Web services

Page 4: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

Web Services Architecture

Page 5: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

Sending requests,

getting results

Waiting for requests

(known location,known port)

Data in XML format

SOAP-based communication

• SOAP:– Data in a well-defined XML format– Transport over various protocols

• HTTP, SMTP are the most used, perhaps because they are firewall-friendly

Page 6: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

XML Messaging Using SOAP

Page 7: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

Web Services Stack

Page 8: Web Services on AIMS (FAO)

Jeetendra Singh, FAO

http://www.fao.org/aims/

A Web Service example in Java

SOAP-awareSOAP-awareServletServlet

(e.g. Apache Axis)(e.g. Apache Axis)

Any classprocessing

the incomingrequests

(“business logic”

Any classprocessing

the incomingrequests

(“business logic”

Any classprocessing

the incomingrequests

(“business logic”

Any classAny classprocessingprocessing

the incomingthe incomingrequestsrequests

(“business logic”(“business logic”

HTTP ServerHTTP Server

Servlet engine (e.g. Apache Tomcat)Servlet engine (e.g. Apache Tomcat)

Sending requests,

getting results