windows communication foundation (part1) jaliya udagedara

Post on 10-May-2015

791 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Introduction to Web Services.

TRANSCRIPT

Windows Communication Foundation

(WCF) - Part 1

Jaliya UdagedaraMCPD

http://www.jaliyaudagedara.blogspot.com/

What are we going to discuss today?• Software Development Evolution

• Web Services

• Web Service Architecture

• Invoke a Web Service

• XML

• SOAP

• WSDL

• UDDI

• Demo

Software Development Evolution

Object Oriented

Component Based

Service Oriented

1980s

1990s

2000s

• OOP Concepts

• Components• Interfaces• Substitutable• Serialization

• Web Services• HTTP Requests• XML Messages

Web Services

• What is a Web Service?

A software component designed to support interoperable machine-to-machine interaction over a network.

Web Services contd.

• Runs on a Web server.• HTTP over RPC.• SOAP (Simple Object Access Protocol) or

REST (REpresentational State Transfer).• Exposes functions.• Listens for HTTP requests and executes Web

methods.• Software as a service without concern for

the type of consumer.

Web Service Architecture

Discovery

Description

Invocation

Transport

Discover & Locate

WSDL

SOAP

HTTP

Invoke a Web Service

Client Service

WSDL

SOAP Response

SOAP Request

• Provides an endpoint description using WSDL. Processes XML messages framed using SOAP.

• Describes its messages using XML Schema.• Communicates via open protocols (HTTP

etc).• Can be discovered using UDDI.

XML

• eXtensible Markup Language.

• XML : much like HTML.

• For describing data.

• XML tags are not predefined. We define our

own tags.

• Prefect for Web Services.

XML contd. : XML vs. HTML

<html><body>

<h1>Hello HTML</h1>

<p>Paragraph</p></body>

</html>

XML contd. : XML vs. HTML

<?xml version=1.0?><myxml>

<mytitle>Hello XML</mytitle>

<mypara>Paragraph</mypara>

</myxml></xml>

XML contd. : XML vs. HTML

• HTML

• What Information?

• Hard for machine. Relatively easy for

human.

• XML

• Not displaying.

• Readable to both human and machines.

SOAP (Simple Object Access Protocol)

• SOAP is a format for sending messages.

• SOAP is platform independent.

• SOAP is language independent.

• Different applications running on different

operating systems.

• SOAP is based on XML.

SOAP (Simple Object Access Protocol)

• SOAP is a format for sending messages.

• SOAP is platform independent.

• SOAP is language independent.

• Different applications running on different

on operating systems.

• SOAP is based on XML.

WSDL (Web Service Definition Language)

• Describes the functions & location of the

service.

• Again XML Based.

UDDI (Universal Description Discovery and Integration)

• Directory of web service interfaces.

• Uses WSDL to describe interfaces.

• Communicates via SOAP.

DEMO

Thank You!

top related