Presentation is loading. Please wait.

Presentation is loading. Please wait.

WEB SERVICES DAVIDE ZERBINO. Summary: Introduction Introduction Definition Definition Web Service Model Web Service Model Web Service Architecture Web.

Similar presentations


Presentation on theme: "WEB SERVICES DAVIDE ZERBINO. Summary: Introduction Introduction Definition Definition Web Service Model Web Service Model Web Service Architecture Web."— Presentation transcript:

1 WEB SERVICES DAVIDE ZERBINO

2 Summary: Introduction Introduction Definition Definition Web Service Model Web Service Model Web Service Architecture Web Service Architecture Web Service in action Web Service in action Advantages Advantages Web Service Development Lifecycle Web Service Development Lifecycle Tools Tools References References

3 Introduction Is accessible over the web Is accessible over the web Web services are an abbrevation for Web of Services Web services are an abbrevation for Web of Services A computer application can be thought of as a well-orchestrated set of services Web Services are a new breed of software component that is a language, platform, and location indipendent Web Services are a new breed of software component that is a language, platform, and location indipendent A Software Service is a something that accepts digital requests and returns digital responses e.g. C function, a Java Object A Software Service is a something that accepts digital requests and returns digital responses e.g. C function, a Java Object Distributed applications will be assembled from a web of software services Distributed applications will be assembled from a web of software services

4 Web Service Is registred and can be located through a Web service registry. Is registred and can be located through a Web service registry. Communicate using XML message over standard Web protocols. Communicate using XML message over standard Web protocols. Support loosely-coupled connections between systems. Support loosely-coupled connections between systems.

5 Definition of Web Service “A Web service is an interface that describes a collection of operations that are network-accessibile through standardized XML messaging.” Heather Kreger IBM Software Group

6 The Web Services Model The Web service architecture is based upon the interactions between three roles: The Web service architecture is based upon the interactions between three roles: Service Requestor Service Registry Service Provider application that is looking for and invoking an interaction with a service application that is looking for and invoking an interaction with a service owner of the services searchable registry where service provider publish their service descriptions and where service find service

7 The Web Services Model Others element are: Others element are: Service Registry Service Requestor Service Provider Service Description Service Description Service

8 The Web Services Model Others element are: Others element are: Service Description Service Description Service Contains details of the interface and implementation of the service It is a software module deployed on the network-accessible platforms provided by the service provider

9 The Web Services Model The interactions involve the publish, find and bind operation The interactions involve the publish, find and bind operation Service Registry Service Requestor Service Provider Find Publish Bind

10 The Web Service Stack Network Service Description XML-Based Messaging Service publication Service Discovery Service Flow SecurityManagementQuality of services HTTP, FTP, , MQ, etc SOAP WSDL UDDI WSFL Standard TecnologiesRequirements

11 The Network Web services must be network-accessible For its ubiquity HTTP is the standard network protocol for internet- available Web Services HTTP is the standard network protocol for internet- available Web Services Others network protocols are SMTP, FTP and for intranet domain: MQSeries, CORBA Others network protocols are SMTP, FTP and for intranet domain: MQSeries, CORBA

12 XML-based Messaging Represent the use of XML as the basis for the messaging protocol Represent the use of XML as the basis for the messaging protocolXML The current industry standard for XML messaging is SOAP The current industry standard for XML messaging is SOAP IBM, Microsoft, Sun and others submitted SOAP to the W3C IBM, Microsoft, Sun and others submitted SOAP to the W3C SOAP (Simple Object Access Protocol) SOAP (Simple Object Access Protocol) Is a simple and lightweight XML-based mechanism for exchanging structured data beetween network applications Is a simple and lightweight XML-based mechanism for exchanging structured data beetween network applications

13 SOAP Lightweight communication protocol Lightweight communication protocol For communication between applications one-way, request/response, multicast, etc.. For communication between applications one-way, request/response, multicast, etc.. Designed to communicate via HTTP Designed to communicate via HTTP Not tied to any component technology Not tied to any component technology Not tied to any programming language Not tied to any programming language Based on XML Based on XML Simple and extensible Simple and extensible

14 SOAP SOAP consists of three parts: SOAP consists of three parts: An envelope that defines a framework for describing what is in a message An envelope that defines a framework for describing what is in a message A set of encoding rules for expressing istances of application-defined data types A set of encoding rules for expressing istances of application-defined data types A convention for representing remote procedure calls and responses A convention for representing remote procedure calls and responses

15 SOAP Network protocol SOAP Network protocol SOAP Application web service Request/Response

16 Service Description: From XML to Web services The service description combined with SOAP infrastructure hides details as platform, programming language from the service requestror’s application and the service provider’s Web Service Service provider comunicates all the specifications through service description Web service uses WSDL for base-level service description

17 WSDL is an XML-based language used to define Web Services and describe how to access them WSDL: Web Service Definition Language Industry standard W3C Service Implementation Definition Service Interface Definition Service Port Binding PortType Message Type

18 Discovery and Publication: UDDI Stands for Universal Description, Discovery and Integration Stands for Universal Description, Discovery and Integration Defines a way to publish and discover information about web services Defines a way to publish and discover information about web services Collaboration between Microsoft, IBM, Ariba that resulted in the creation of web service registry Collaboration between Microsoft, IBM, Ariba that resulted in the creation of web service registry Not standard Not standard

19 UDDI Defines a data structure standard for representing service description information in XML Defines a data structure standard for representing service description information in XML The core component of the UDDI project is the UDDI business registration, an XML file used to describe a business entity and its Web services The core component of the UDDI project is the UDDI business registration, an XML file used to describe a business entity and its Web services

20 UDDI The UDDI Business Registry can be used at a business level The UDDI Business Registry can be used at a business level –To check whether a given partner has particular Web service interfaces. –To find companies in a given industry with a given type of services. –To locate information about how a partner or intended partner has exposed a Web service in order to learn the technical details required to interact with that service

21 WSFL Overview Web Service Flow Language (WSFL) is an XML language for the description of Web Services Composition It is possible to produce web services by composing web services Intra-enterprise web services might collaborate to present a single Web Service Interface to the public Intra-enterprise web services might collaborate to present a single Web Service Interface to the public Web services from different eneterprises might collaborate to perform business to business transactions Web services from different eneterprises might collaborate to perform business to business transactions Service Flow described how service-to-service communications, collaborations and flows are performed. Service Flow described how service-to-service communications, collaborations and flows are performed.

22 WSFL Overview Composition of Service  Flow Model – execution sequence of activities  Global Model – Interactions of services  Recursive Composition – scalability  It is layered on the top of Web Services Description Language(WSDL) that is used for description of service interface and their protocol bindings

23 Web Service in Action: B2B Customer SupplierCredit Bureau Warehouse Check validity Service Account Service

24 Advantages Interoperability: Interoperability: Any web services can interact with any other web service Any web services can interact with any other web service Ubiquity: Ubiquity: Web services communicate using HTTP and XML. Web services communicate using HTTP and XML. Low Barrier to Entry: Low Barrier to Entry: The concepts behind web services are easy to understand and toolkits are frely available from many vendors The concepts behind web services are easy to understand and toolkits are frely available from many vendors Industry Support: Industry Support: All the major vendor are supporting SOAP and the surrounding web services standards All the major vendor are supporting SOAP and the surrounding web services standards

25 Web Services Development Lifecycle The development lifecycle can have four phase: The development lifecycle can have four phase: –BUILD : »development and testing of the web service implementation »definition of the services interface description »definition of the service implementation description –DEPLOY : »publication of the services interface and service implementation –RUN : »The web service is available for invocation »The web service is fully deployed, operational and network- accessible from the services provider »Now the service requestor can perform the find and bind operations –MANAGE : »Covers ongoing management and administration of the web services application

26 Tools Microsoft SOAP Toolkit 2.0 Microsoft SOAP Toolkit 2.0 Microsoft Visual Studio.NET and.NET Framework Microsoft Visual Studio.NET and.NET Framework Apache SOAP Toolkit and AXIS Apache SOAP Toolkit and AXIS IBM Web Services Toolkit IBM Web Services Toolkit SUN JavaTM 2 Platform, Enterprise Edition (J2EE) SUN JavaTM 2 Platform, Enterprise Edition (J2EE)

27 Example: Airport Weather Service Interface: getLocation() getWind() getTemperature() getSky() getPressure() getHumidity() getSummary() More informations: Web Interface: Airport Weather

28 References  About SOAP :  About WSDL :  About UDDI :  About WSFL :

29 Other Papers About Web service Architecture: About Web service Architecture: Web Services Conceptual Architecture (WSCA 1.0) -Heather Kreger - IBM SW Group Web Services Conceptual Architecture (WSCA 1.0) -Heather Kreger - IBM SW Group About Web service development lifecycle: About Web service development lifecycle: Web Services Development Concepts (WSDC 1.0) -Peter Brittenham- IBM SW Group Web Services Development Concepts (WSDC 1.0) -Peter Brittenham- IBM SW Group About Web service model: About Web service model: Web Services : Building Blocks for Distributed System -Graham Glass - Web Services : Building Blocks for Distributed System -Graham Glass -

30 The End

31 Web Server in Action (2/2) HTTP WSDL SOAP Application Interoperability

32 XML A version of HTML that allows any kind of data to be represented in a simple and portable way A version of HTML that allows any kind of data to be represented in a simple and portable way XML: eXtensible Markup Languages XML: eXtensible Markup Languages Davide Zerbino


Download ppt "WEB SERVICES DAVIDE ZERBINO. Summary: Introduction Introduction Definition Definition Web Service Model Web Service Model Web Service Architecture Web."

Similar presentations


Ads by Google