the 100% inspiration tour. web services – an industry approach to the evolution of distributed...

27
The 100% The 100% Inspiration Inspiration Tour Tour

Post on 22-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

The 100% The 100% Inspiration Inspiration

TourTour

Page 2: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Web Services – An Industry Web Services – An Industry Approach to the evolution of Approach to the evolution of Distributed ArchitectureDistributed Architecture

Mark JohnstonAcademic Team, Microsoft [email protected]://blogs.gotdotnet.com/i-markj

Page 3: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Topicshelp

Introduction

Web Services Video

What's it all about

Visual Studio Web Services Demo

Web Services Stack

Visual Studio Web App Demo

The Future

Quiz

Page 4: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

The Evolution of Distributed Computing

MS-BASIC MS-BASIC Turbo Pascal Turbo Pascal QuickBasicQuickBasic

The The PCPCBig Iron Big Iron

Cobol Cobol

RPGRPG

Visual Basic Visual Basic PowerBuildePowerBuilde

r r DelphiDelphi

GUIGUI

Web Web ServicesServices

The The WebWeb

HTMLHTMLScriptScript

Page 5: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

What is a Web Service?

““A programmable A programmable application application component component

accessible via accessible via standard Web standard Web

protocols”protocols”??

Page 6: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Web Services Benefits

Allows for sharing of functionality across:Devices

Networks

Operating Systems

Programming languages

Built using open Internet standardsXML, SOAP, UDDI, WSDL

Page 7: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

The Potential of Web Services

“ “ Web Services will revolutionise how we Web Services will revolutionise how we work - how we interact with each other, work - how we interact with each other, with companies, with websites and with companies, with websites and beyond. beyond.

A world of seamlessly connected A world of seamlessly connected applications awaits.”applications awaits.”

Silicon.comSilicon.com

““With Web services, it’s easy for us to build a With Web services, it’s easy for us to build a tool that takes route information and displays tool that takes route information and displays it on the Web in a number of different formats, it on the Web in a number of different formats, including a schematic layout that tells you not including a schematic layout that tells you not only where the bus is, but also where it has only where the bus is, but also where it has been.”been.”

Massachusetts Institute of TechnologyMassachusetts Institute of TechnologyApplied Implications of Web ServicesApplied Implications of Web Services

““We’ve proven that the promise of XML Web We’ve proven that the promise of XML Web services is real. You can develop a service that services is real. You can develop a service that can be exposed across multiple media formats, can be exposed across multiple media formats, and not have to write an application for each and not have to write an application for each platform to render it for each medium. platform to render it for each medium.

This has incredible implications…”This has incredible implications…”

GlaxoSmithKlineGlaxoSmithKline

Page 8: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Online Ordering of Concert Online Ordering of Concert TicketsTickets

videovideo

Page 9: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK
Page 10: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Internet

AlertsAlertsEMIEMIBankBankHomeworkHomeworkRemindersRemindersNews News providersproviders……

Service ProviderNetwork

What Just Happened?

Page 11: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Applications of Web Services

eCommerceOnline ordering, B2B

Building-block services for developersSign-in, eWallets, etc.

Value-added features for client applications

E.g. banking Web services for MS Money

Page 12: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Web Services in .NET

.NET Framework designed with distributed computing in mind

Web services support loosely-coupled distributed computing

Creating Web services in .NET is easy!Based on open standards

Cross-platform

Simple to create, design and test

Human readable messages

Page 13: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Creating Web Services in Visual Creating Web Services in Visual Studio .NETStudio .NET

Page 14: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

The Web Services Stack

UDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

TransportTransportTransportTransport e.g. HTTP, FTP or SMTPe.g. HTTP, FTP or SMTP

Page 15: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

XML

XML is the core of Web ServicesProvides platform independent data interchange

The format of all administrative data used by web services

Verbose and Human readable

Highly extensible

UDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

Page 16: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

XML Code snippetUDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

<?xml version=“1.0”encoding=“utf-8”?><concerts>

<concert><name>The Darkness</name><venue seating=“3000”>Reading </venue>

</concert></concerts>

Page 17: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

SOAP

Simple Object Access ProtocolThe primary communications interface between Web services

Language and OS independent

Protocol independentNot reliant on HTTP for transfer

Can be encrypted by nature of the transport method used

UDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

Page 18: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

SOAP Code snippetUDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi=““ xmlns:xsd=“” xmlns:soap=“”>

<soap:Body><GetConcerts xmlns=“” /> </soap:Body>

</soap:Envelope>

Page 19: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

WSDL

Web Services Description Language

Describes what services a web service can be provide

Analogous to ‘reflection’

Gives a detailed “contract” for each service provided

Contract specifies what interfaces are exposed

UDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

Page 20: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

WSDL Proxy Class GenerationWSDL Proxy Class Generation

Page 21: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

UDDI

Universal Description Discovery and Integration

An industry-wide project to standardize the discovery of web services

A data model and API specification Details on providers and their services

Both XML and non-XML services

Publish, Find & Bind Operations

An example UDDI registry can be found at www.xmethods.com

UDDIUDDIUDDIUDDI

WSDLWSDLWSDLWSDL

SOAPSOAPSOAPSOAP

XMLXMLXMLXML

Page 22: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Web application using Web Web application using Web Services logicServices logic

Page 23: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

The Global Web Services

Architecture (GXA)

SOAPSOAP

HTTP/SMTPHTTP/SMTPXMLXMLTCP/IPTCP/IP

DirectoryDirectory

InspectionInspection

The InternetThe Internet

DescriptionDescription

Building Block ModulesBuilding Block Modules

Inter Application ProtocolsInter Application Protocols

ReferralReferral

RoutingRouting

SecuritySecurity

LicenseLicense

EventingEventing ……

Reliable MessagingReliable Messaging

……

……

Page 24: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Applications of GXA

Suitable for secure of high-performance architecturesUsed for Grid Computing

Super ComputingOutsourcingInternet-scale DataGrid

GXA is aligning with OGSA (Open Grid Services Architecture)Co-evolution of MS GXA and GGF OGSA

Page 25: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Summary

Industry is widely adopting and supporting Web services

Not just a Microsoft initiative

XML Web services provide open, Internet-native integrationFundamental shift: distributed computing for the InternetVisual Studio .NET makes creating powerful Web service-driven applications simple

Page 26: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK

Further Resources

Web Serviceswww.microsoft.com/webservices

www.uddi.org

Developer Communitywww.gotdotnet.com

msdn.microsoft.com

Inspiration Tour Sitewww.microsoft.com/uk/inspiration

Page 27: The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK