Transcript
Page 1: Windows communication foundation (part1)    jaliya udagedara

Windows Communication Foundation

(WCF) - Part 1

Jaliya UdagedaraMCPD

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

Page 2: Windows communication foundation (part1)    jaliya udagedara

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

• Web Services

• Web Service Architecture

• Invoke a Web Service

• XML

• SOAP

• WSDL

• UDDI

• Demo

Page 3: Windows communication foundation (part1)    jaliya udagedara

Software Development Evolution

Object Oriented

Component Based

Service Oriented

1980s

1990s

2000s

• OOP Concepts

• Components• Interfaces• Substitutable• Serialization

• Web Services• HTTP Requests• XML Messages

Page 4: Windows communication foundation (part1)    jaliya udagedara

Web Services

• What is a Web Service?

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

Page 5: Windows communication foundation (part1)    jaliya udagedara

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.

Page 6: Windows communication foundation (part1)    jaliya udagedara

Web Service Architecture

Discovery

Description

Invocation

Transport

Discover & Locate

WSDL

SOAP

HTTP

Page 7: Windows communication foundation (part1)    jaliya udagedara

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.

Page 8: Windows communication foundation (part1)    jaliya udagedara

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.

Page 9: Windows communication foundation (part1)    jaliya udagedara

XML contd. : XML vs. HTML

<html><body>

<h1>Hello HTML</h1>

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

</html>

Page 10: Windows communication foundation (part1)    jaliya udagedara

XML contd. : XML vs. HTML

<?xml version=1.0?><myxml>

<mytitle>Hello XML</mytitle>

<mypara>Paragraph</mypara>

</myxml></xml>

Page 11: Windows communication foundation (part1)    jaliya udagedara

XML contd. : XML vs. HTML

• HTML

• What Information?

• Hard for machine. Relatively easy for

human.

• XML

• Not displaying.

• Readable to both human and machines.

Page 12: Windows communication foundation (part1)    jaliya udagedara

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.

Page 13: Windows communication foundation (part1)    jaliya udagedara

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.

Page 14: Windows communication foundation (part1)    jaliya udagedara

WSDL (Web Service Definition Language)

• Describes the functions & location of the

service.

• Again XML Based.

Page 15: Windows communication foundation (part1)    jaliya udagedara

UDDI (Universal Description Discovery and Integration)

• Directory of web service interfaces.

• Uses WSDL to describe interfaces.

• Communicates via SOAP.

Page 16: Windows communication foundation (part1)    jaliya udagedara

DEMO

Page 17: Windows communication foundation (part1)    jaliya udagedara

Thank You!


Top Related