marc holmes, microsoft corporationdownload.microsoft.com/documents/uk/bpm/004_-_consuming_soa... ·...

39

Upload: lenhan

Post on 08-Apr-2018

233 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)
Page 2: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Marc Holmes, Andy James, Jeff Johnson

Microsoft Corporation

Page 3: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Session Objectives

Getting Business Value from SOA

Rich UX and visualisation

Microsoft Office Platform for consuming SOA/BPM

BizTalk Server 2009 – expose capabilities

Page 4: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

• Introduction to this session

• Consume SOA in Silverlight

• Consume SOA in MOSS

• Platform for SOA – BizTalk Server 2009

Page 5: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Making SOA Real...

Service orientation is about decomposing the IT assets into consumable services

Making this work for a business is about understanding what data the service provides or needs

External data also needs to be surfaced

In the real world of SOA we need to use and aggregate the data and therefore the services

To make this real we must develop what are best referred to as composite applications

Page 6: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Marc Holmes

Page 7: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Silverlight delivers

rich interactive application

experiences across browserand platform

Page 8: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Developers and Designerscan work together through the

common dialect of XAML

Page 9: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Visual

Studio

2008

Page 10: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Expression

Blend

Page 11: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Gratuitous Product Shot

Page 12: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Silverlight delivers .NET into the browser.

Page 13: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)
Page 14: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

HTML

Silverlight

Page 15: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Communication Options

Page 16: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Implicit HTTP Requests

Explicit HTTP Requests

Web Service Calls

SocketsSite of Origin

Cross-Site

Cross-Site

Asy

nch

ron

ou

s A

PI’s

Transports

Serialization

WCF DataContract

XML JSONXML Serializer

HTTP(S) ( request/response )

Protocols with Client Library Support

“SOAP”SOAP 1.1 via

WCF

“REST”ADO.NET Data

Services

“Syndication”RSS 2.0 & ATOM 1.0 via

WCF

Sockets ( duplex )

Uses

Page 17: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

We won‟t focus on implicit access

2 main classes for explicit access

WebClient offers simple GET/POST

HttpWebRequest offers more control

Browser API‟s limit HTTP verbs to GET/POST

Page 18: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Only basicHttpBinding is “in the box”SOAP 1.1, XML, HTTP(S)

not WS-Security, WS-Trust etc.

Derived PollingDuplexHttpBinding for duplex

Uses WS-Make Connection for polling over HTTP

Familiar Programming modelClient side object model

Configuration file - loaded from the XAP

“Add Service Reference” tooling in Visual Studio

Page 19: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

ADO.NET Data ServicesRESTful services from .NET Framework V3.5 Sp1

Tunnels PUT/DELETE via POST to avoid the browser API HTTP limitation

AJAX Services, RSS, ATOM and Other Services

Use WebClient/HttpWebRequest

Serialize/De-serialize data with;XmlSerializer, DataContractSerializer, DataContractJsonSerializer

SyndicationFeed, Rss20FeedFormatter, Atom10FeedFormatter

Page 20: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

www.server1.com

Requests Page with SilverlightApplication

www.server2.com

App Requests Cross-Site Resourcehttp://www.server2.com/vroot/foo.xml

clientaccesspolicy.xml

Framework attempts to accesshttp://www.server2.com/ looking for

crossdomain.xml

Framework falls back to accesshttp://www.server2.com/ looking for

<access-policy>...<grant-to />..

</access-policy>

CheckPolicy

Page 21: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Client can connect

Client cannot listen

Connect

port 4502

Fixed port range4502 - 4534

Framework uses a well known port943 and sends an XML (UTF8) request fora client access policy

<policy-file-request/>

4502

943

<access-policy>...<grant-to 4502/>..

</access-policy>response

<access-policy>...<grant-to 4502/>..

</access-policy>

CheckPolicy

async, duplex comms

Page 22: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)
Page 23: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Andy JamesCTOSolidSoft

Page 24: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

What is a composite application?

“A collection of software assets that have been

assembled to provide a business capability”

Or

“Composed of a number of discrete and

independent pieces, aggregating functionality

through a software interface”

Page 25: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Fusion

Applications

Services

Databases

Smart Client

Integration

Fuse and relate

disparate information

2

1 Combine data from

any source

Present in an interactive,

composite UI

3

Page 26: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Compose User Interaction

Compose Business Transaction

ConsumeUser Directed

ExposeExisting Systems

Presentation Services

Collaboration Services

Composition Services

Business

Process

Services

Information

Integration

Services

Messaging

Services

Connectivity Services

Security

and Id

entity

Managem

ent a

nd G

overn

ance

Desig

n a

nd D

evelo

pm

ent

Page 27: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Compose User Interaction

Compose Business Transaction

ConsumeUser Directed

ExposeExisting Systems

Presentation Services

Collaboration Services

Composition Services

Business

Process

Services

Information

Integration

Services

Messaging

Services

Connectivity Services

Security

and Id

entity

Managem

ent a

nd G

overn

ance

Desig

n a

nd D

evelo

pm

ent

BizTalk Server, WCF

BizTalk Server

WFSQL Server

BizTalk Server

Windows

WCF

SharePoint Server, WF, CAB

SharePoint Server & Live Communications Server

SharePoint Server, .NET CF, ASP.NET/AJAX,

Silverlight, WPF

Activ

e D

irecto

ry

Syste

m C

ente

r, MO

F, P

artn

ers

Visu

al S

tudio

. Patte

rns &

Pra

ctic

es, M

SF

Page 28: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Case Study

• This case study looks at the business process to update

customer details

Customer details are “mastered” in an existing LOB

ERP/financial system

Any employee can start the process to update a

customer‟s details, but the changes are checked,

moderated and approved in the process

The change to the master record is made without directly

accessing the LOB system

MOSS 2007 is used as a „consumer‟

Page 29: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Case Study

Page 30: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Summary

Composite applications deliver solutions that

leverage SOA

Composite applications equate to LOB applications

Composite applications allow business to maximise

data and information

With MOSS 2007, BizTalk 2009 and Visual Studio we

can deliver composite applications

Page 31: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Jeff JohnsonTechnical SpecialistMicrosoft

Page 32: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

To

ols

, F

ram

ew

ork

s, S

DK

s

Metadata:

POX

REST

JSON

RSS/ATOM

Page 33: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Application Platform

Virtualization(Windows Server 2008, Hyper-V,SQL Server 2008)

Increased Developer Productivity (Visual Studio 2008)

Application Lifecycle Management Enabled(VSTS, TFS, MSBuild)

SOA InfrastructureEnhancements

Enhanced Interoperability(UDDI 3.0, EDI/AS2, BizTalk Adapter Pack 2.0, HIS 2009)

ESB and Service Enablement Guidance(ESB Guidance v2.0)

Better Business Visibility(RFID, BAM)

Page 34: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Addresses the following areas: How can services be found?

How do I know what a web service does?

Which services are production ready?

Is there a web service I can re-use?

UDDI Registry Services: Organize, Describe, Discover

Integrate, Re-use, Extend

Page 35: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Upgraded to the latest platform (SDK)

Two new adapters:

SQL Server adapter

Oracle eBusiness Applications adapter

Includes enhancements to existing adapters

Page 36: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

Alignment with BizTalk 2009 release

Prescriptive Guidance for applying ESB usage Patterns

Simplified ESB Installation/Configuration tool

Itinerary modeling using DSL

Enhanced ESB Management Portal

Resolver-adapter Pack (LDAP, SQL, other)

Page 37: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

BizTalk RFID extended to Mobile Devices Runs on handhelds and forklift readers

Integrates with BizTalk Server

Support for key industry standards Enables using new readers with LLRP

Machine readable tag data standards (TDT for EPC)

Web Services for device management and Discovery, Configuration, Initialization (DCI)

Page 38: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

BizTalk provides interoperability platform

BizTalk 2009

Office, MOSS provide great SOA consumption platform

Silverlight provides next web, rich internet application platform

Page 39: Marc Holmes, Microsoft Corporationdownload.microsoft.com/documents/uk/bpm/004_-_Consuming_SOA... · Getting Business Value from SOA ... WCF DataContract XML JSON XML Serializer HTTP(S)

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,

IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.