30
Web Services   changing everything Mohammed Safwat

Web Services

Embed Size (px)

DESCRIPTION

Introducing web services and getting some practical examples to clarify them.

Citation preview

Page 1: Web Services

Web Services  changing everything 

Mohammed Safwat

Page 2: Web Services

No agenda .. But a scenario!

Page 3: Web Services

Why it's called“Web Service”?

Simply , because it's a service , provided by web application components!

Services are a result of needs.People needs are infinite.

I can't get you a specific definition!

 

 

Page 4: Web Services

The Web started out supporting human interactions with textual data and graphics. 

The essentially text­based Web does not support software interactions very well, especially transfers of large amounts of data. 

Web now and before .. 

Page 5: Web Services

Applications need to interact directly with one another.

The current Web does not support software­oriented interactions very well.

Web services improve Internet use by enabling program­to­program communication.

Web now and before .. 

Page 6: Web Services

Basics of web service 

Web services are (XML) applications mapped to programs, objects,or databases .

Web services transform XML documents into and out of IT systems.

Web services standards define the format & mechanism of the message.

Page 7: Web Services

Web services usage  

Making clients access such Internet applications as reservations systems and order­tracking systems. 

For business­to­business (B2B) integration, connecting applications run by various organizations in the same supply chain. 

Page 8: Web Services

Web services usage  

Web services present to the network a standard way of interfacing with back­end software systems, such as databasemanagement systems, .NET, J2EE or CORBA.

Page 9: Web Services

“The underlying software implementations of Web services canbe created by using any programming language or operating system.”

Page 10: Web Services

Why did Internet technologies succeed?   

Today's Internet technologies succeed in part because they are defined at a sufficiently high level of abstraction.

This enables compatibility with any operating system, hardware, or software. 

Page 11: Web Services

Web services abstraction 

The Web services­based Internet infrastructure has this abstraction level.

It includes semantic information associated with data. 

Web services define not only the data but also how to process the data and map it .      

Remember !

Page 12: Web Services

The Next Generation of the Web?! 

Software­oriented interactions will automatically perform operations that previously required manual intervention:

 Searching for and buying goods and services at     the best price. Coordinating travel tickets and restaurant tables     for a given date. Business Shipping operations.

Page 13: Web Services

The Next Generation of the Web?!   

Web services are not only about interfaces to objects, programs, and databases for access over the Internet. 

By combining a series of Web services into a larger interaction, Web services can perform new types of interactions.

Page 14: Web Services

Web services enable new types of interactions

Page 15: Web Services

Interacting with Web Services 

The level of abstraction at which Web services operate encompasses such interaction styles as :

RPC (remote procedure call) emulation.          asynchronous messaging.one­way messaging. broadcast and publish/subscribe.

Page 16: Web Services

Interacting with Web Services 

 Web services standards and technologies generally encompass two major types of application interaction patterns:

     •   Remote procedure call (online)     •   Document oriented (batch)

Page 17: Web Services

RPC Oriented Interactions  

The Web services request takes the form of a method or a procedure call with associated input and output parameters.

It sends a document formatted specifically to be mapped to a single logical program or database. 

Page 18: Web Services

RPC Oriented Interactions 

                                                                           The request and the reply are modeled as synchronous messages. 

The application sending the message waits fora response.

Example .. 

Page 19: Web Services

RPC­oriented interactions are good for brief data exchanges

Page 20: Web Services

Document Oriented Interactions  

The Web service request takes the form of a complete XML document that is intended to be processed whole.

This is like submitting a message to aqueue for asynchronous processing. 

Page 21: Web Services

The document­oriented style is good for bulk data exchanges

Page 22: Web Services

The Technology of web services   

Web services are important because they are capable of bridging technology domains,not because they replace any existing technology.

Web services require the use of several related XML­based technologies.

Page 23: Web Services

The Technology of web services  

XML (Extensible Markup Language)

The basic foundation on which Web services are built .

Provides a language for defining data and how to process it. 

 

Page 24: Web Services

The Technology of web services    

WSDL (Web Services Description Language): an XML­based technology.

defines: Web services interfaces, data and message types,interaction patterns,protocol mappings.

Page 25: Web Services

The Technology of web services  

SOAP (Simple Object Access Protocol): defines an envelope for Web services communication—mappable to HTTP and other transports.

Provides a serialization format for transmitting XML documents over a network and a convention for representing RPC interactions.  

Page 26: Web Services

The Technology of web services 

UDDI (Universal Description, Discovery, and Integration):

a Web services registry and discovery mechanism.

It is used for storing and categorizing business information and for retrieving pointers to Web services interfaces.

Page 27: Web Services

The Technology of web services   

The basic Web services standards are used together. 

Once the WSDL is obtained from the UDDIor other location, a SOAP message is generated for transmission to the remote site.      

Page 28: Web Services

The Technology of web services   

Define Data ­> XML

Expressed abstraction of the service ­>WSDL

A communication mechanism for web services ­> SOAP

you need a way to publish the service that you offer and to find the services that othersoffer ­> UDDI

Page 29: Web Services

Re­inventing the wheel

Some people say that Web services are reinventing the wheel because: 

“they share many characteristics with other distributed computing architectures, such as CORBA or DCOM .. ”

Page 30: Web Services

I need another session! 

 Questions?