Documente Academic
Documente Profesional
Documente Cultură
book XXXXXXXXXXXXXXXXXXXXXXXX
Page iii Thursday, March 25, 2004 1:05 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Service-Oriented
Architecture
A Field Guide to Integrating XML and
Web Services
Thomas Erl
PRENTICE HALL
PROFESSIONAL TECHNICAL REFERENCE
UPPER SADDLE RIVER, NJ 07458
WWW.PHPTR.COM
erlTOC.fm Page v Tuesday, February 8, 2005 9:17 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
C o n te n ts
Preface XIX
C h a p te r 1
In tro d u ctio n 1
1 .1 W h y th is g u id e is im p o rtan t ............................................................... 2
1 .1 .1 T h e h am m er an d X M L ......................................................................... 2
1 .1 .2 X M L an d W eb s erv ices ........................................................................ 3
1 .1 .3 W eb s erv ices an d S erv ice-O rien ted A rch itectu re ................................ 3
1 .1 .4 S erv ice-O rien ted A rch itectu re an d th e h am m er................................... 3
1 .1 .5 T h e h am m er an d y o u ........................................................................... 4
1 .2 T h e X M L & W eb S erv ices In teg ratio n F ram ew o rk (X W IF )................ 4
1 .3 H o w th is g u id e is o rg an iz ed .............................................................. 5
1 .3 .1 Part I: T h e tech n ical lan d s cap e............................................................ 6
1 .3 .2 Part II: In teg ratin g tech n o lo g y .............................................................. 7
1 .3 .3 Part III: In teg ratin g ap p licatio n s ........................................................... 9
1 .3 .4 Part IV : In teg ratin g th e en terp ris e ...................................................... 12
1 .3 .5 T h e ex ten d ed en terp ris e .................................................................... 13
1 .4 w w w .s erv iceo rien ted .w s .................................................................. 13
1 .5 C o n tact th e au th o r........................................................................... 13
v
erlTOC.fm Page vi Tuesday, February 8, 2005 9:17 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
vi Contents
P art I
The technical landscape 15
Chapter 2
Chapter 3
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents vii
Chapter 4
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
viii Contents
Part II
Integrating technology 131
Chapter 5
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents ix
Chapter 6
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
x Contents
Chapter 7
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents xi
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
xii Contents
Part III
Integrating applications 278
Chapter 8
Chapter 9
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents xiii
Chapter 10
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
xiv Contents
Chapter 11
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents xv
Part IV
Integrating the enterprise 417
Chapter 12
12.1 Best practices for planning XML migration projects ....................... 420
12.1.1 Understand what you are getting yourself into................................. 420
12.1.2 Assess the technical impact............................................................. 422
12.1.3 Invest in an XML impact analysis..................................................... 424
12.1.4 Assess the organizational impact .................................................... 425
12.1.5 Targeting legacy data ...................................................................... 426
12.2 Best practices for knowledge management within
XML projects .................................................................................. 429
12.2.1 Always relate XML to data ............................................................... 429
12.2.2 Determine the extent of education required by your
organization ..................................................................................... 430
12.2.3 Customize a training plan ................................................................ 430
12.2.4 Incorporate mentoring into development projects............................ 433
12.3 Best practices for standardizing XML applications......................... 434
12.3.1 Incorporate standards ...................................................................... 434
12.3.2 Standardize, but don’t over-standardize .......................................... 435
12.3.3 Define a schema management strategy .......................................... 436
12.3.4 Use XML to standardize data access logic ...................................... 438
12.3.5 Evaluate tools prior to integration .................................................... 439
12.4 Best practices for designing XML applications............................... 439
12.4.1 Develop a system for knowledge distribution................................... 439
12.4.2 Remember what the “X” stands for .................................................. 441
erlTOC.fm Page xvi Tuesday, February 8, 2005 9:17 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
xvi Contents
Chapter 13
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Contents xvii
Chapter 14
Index 521
e rl_ c h 0 1 .fm P a g e 1 T u e s d a y , M a rc h 1 6 , 2 0 0 4 1 2 :2 7 P M
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
1
erl_ch01.fm Page 2 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
> ? @ A B C > D @ E F G H G I F A G J K F @ L K M M @ N K H G I F I O O K P H Q R I H S T U V K F D W @ C J @ N X
HH @S P@ S FS I> Z? I @ M G K@Y NJ G @P K@ CJF @D SM KHG FS Y F@@ G F@ S LM K P D GH H I @ H S\ O @@ @ @G FNZ H JD SH G SJ K KK N ? H@ ? QJ I ]W G NF SN H I@@ ]F D F Q Z D I_ @ I N D [ M GKHF SF M @ G `\ C K KAH PG \I[ F K JKF H > K NH ^ S@ @S N I @N GKC J Z I @G ]` GIM F OS M H H S HG SF@ JKH @I H
1.1 Why this guide is important
“H
TaH S Ub @ c G VdN e Ib H @Nf PgW S Fh@ CiG Pf jJK i @Zk N i@Y F G dP Yl @ Gb JN d I H FmI \ He S @c @Fl H\ Jn oG LK dNQl @ j p F qI eH h \ f j cK j M d g G P K l Z b >p h H Ni Ki rF J sO I bN t\ t b @ r D d i J u G v\ w ? l Z >j p C q > f b Kd o Dn Dt m G F xMp
qr nn dd i nr r d j f bg f jj mp tq i t b n f ky bi pr u d l j i d p d ji m c l q r n n t fd nb {r gc i n c o b br r r n n d t h{ ib r e j |r b u d ij nt pr d yb dh i e u d v bz f p l n i rd l qi t mn q b i r t r f g i t b qj r q fs j i l u j yc jl d
hz e l p jb r d ix p p p h bi ei r d n mi bb d{ j n{ ri t jb p d iu ui f jj kp ri t x di u b vp } m ~ e c l d l i q
n d i r d j b f yv h e d j d p q i t c i j k i u p j m q f j c j d g v
sn o i j fr o un it mp j { b r d j in u r y pd i i c t lk rj c n i f n n { t gj i y r h de i du b i c rl k j ij tk n j rr m{ id l r j dp c p b d rb d pi j mj p q r f nj o gp j bm r q u f i p d m t i b b dm i ft j vr w i l m i b d ir cg l br p n q f in c{ d gp
pb i{ di j rj d dp t nh ui er ic i ud p hy gg n e t p b d r r u i i z u i dh n p b i q t kq jt ci i c pj b j dp i u d lj k i i tj mp i qf g f j cc bn dm j n q r f p i n vo a dr l jn p t uc ni mt dq n f i d t ej d f gg v fw i l k ii r t y
g n e r i i u dn p dt b di { j| i v
1.1.1
ae d p bi f j d p y d gb tn de p x sf jl d lj d d l i r vb j f j i ik i b t g l b d mj m m i i tj oy g n e u j np r b x d d y n c n l f vb ra o c gi pn e b t q i b g g n be dt i d rl de j nm r h d ns lj f n s d b g i n eb
The hammer and XML
hu ij t b i d cj rd f {g v t i fr b dj i d pu n d ns lr ny js d u j r n di i p f r j { n i d r p dn f gf k ji d nj p t b c q t iq b f jd ii u q v t n h f i m p d l i t i p e f d p n o e p j r { b t i
j r n d tt n g ui eb tc pi y jd rn u d el ip d bt g{ i b rn bo f n g r p fd jp r l i b uk bi d bd l p i l n b t tj |j r i {u v b r i u c b p eq pi i c e d l f b j p d i d ui c b l h r n n e f nd {d l g i q h f ib r d o i n t dm p q t n k js u ji f p
bj r qo n n t dm i r b d d jj b n f r j ue ir b j fd g o nb tr ub qe br t j jk d ig tv p b f u b d b o n t m b d y j d s j f f i b u d l i s n t f u j r d n b r i s+i t b n o
wb r l gi d ql nj r d i{ r h d je b df jj pu it ib bf vf y h e d d l j p i bm p b q r i r c ij t cj rb d sj n lr jy c bl t i k n f e j pd j hn ri jb r t {g b j rq rq nf j ki bu d jj nr r d l d il b t id b i f s j p nd p t f j ur j bp
hou n in t ic reb m b c un i nmr q d m d di l n u br dj r q u dein pt cdq l t n ji hp aii w vp mb j m pb jj qmr fp gq d tf eii bp j mju r i { jb p y {s n j n d l u y v ll a end {si pi i d bjk m h i ft qj y p f ljj rc i b p r d jbn n rc s np mbv wg m l { in e r ob b tdc ib d cr ld dl ir bi n dp f n d {l gb d e g lp ni b eup
2
erl_ch01.fm Page 3 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
¯ ¯ ¢ ¡ ¡¬ £¢ £® ¢¡ ¢ ¤« ¥¯ ¤¦ ¢ £ § ¨ ¤ ¢ ¡ ¥ ¡ ¢ £ ¢¤ ¢ ®© ª ¤ ¯ ¢ « © ª ¬¥ ¤ ¢ ® © ¢ ®¢ ® £
Why this guide is important 3
¤ ¯ © ¯ ¢ ®§ ° ± ² ³ « ¥ ¤ ¢ ´+ ¤ ¢ £ ¢ ® © ³ ¤ ¢ ® ©
µ¶ ¡ °® ± ¢ ² ³ £ ¢ ® £ ¬ ¬ ¤ ¹ « ¢ ¥® ¤ ¯ ¶ © ¥ « £¶ ³¥ ª£ £ ³ ª ´+£ ® ¢ ® ¢ · ¥¸ ¤® ¯ © · ¥ ¸ ® ª º ®£ ¯ ¤ ¢ ª ® ¢ ®¤ £ ¯ £ ¡ ¢ ¢ ·
1.1.2 XML and Web services
£ ¢ ¤ ¢¹ ³ ¤ £ ¦ © £ ¢ ¶ ¥ ¤ £ ¯ ³ ¯ ª £¤ ¢ ¢ ®£ ¤ ¯¢ ¦ ¡ £ ¤ ¢ ¯ ¢ ¢ ®¢ ©° ± ¢ ² § © ¸ °® ± ¢ ² ¯ « ¥ ¤ £ ¢ ¹¢ ¢® ¬ ¢ ® ¹ ¤£ ª ¢ ® ¹ ¢»
© £ ¢ © ¤ ¡ ¬ ¥ ¤ ¯ © ¢® ¢ ¯ ¬ ® ¤ £ ¢® £ ¬ ¯ £ ¢® §
¸ ® £ © ¢ ¤ ¯ ¯ ¯ « £ © ¡ ª ¢ « £ ¬ ª £ ¢ £ § ¸ ¥ ® ¤£ ¢ ¬ ¢ º © £ ¢¢ £¢ ®£ ¶ ¡ ¥ £¥ ³ º ª £¥ ¢ ¤ ª ¢® ° ± ² © « £ £ ª ¯ ¢ ®£ ³¶ ª ¥ »
£ ³ ª £ ¢¡ ¬ £ ¢¤ ª ¢ ¤ ¢ ¡ ¢® ° ± ² ¬ ³ ¬ ¢ §
1.1.3
¼ £ ¢ ¤ ¯ ª ¯® ¢¢ ® ª ¢ ¤ ¤ © ® £ ¢ ® ¯ £ ¯ ¥ ¯ º « ¢ ® ¤ ¢ ¡ £ ¢¯ ª £ º¢ ® £ § ¢¸ ¢ ® ¡ ¢ ¢ ® « ¢ © ¥ ¤ ¯ ¢ © £ £ ³³ ª £ ¢ »»
Web services and Service-Oriented Architecture
¥ ¤ © ¢ ¶ ¯ ¯¥ £ ³ ª ¯ £ § ¸ ¯ ® £ ª£ ³£ ¢¢ ® ª £ £ £ ¡ ¢ ® ¥ ¯ £ © ªª ¢ ¡ ¤ ¢ ª ª ¤ £ ¤ ¢ª § µ£ ¢ ¹ ®£ £ ³ ¬ ¥
¢¶ ¥ ¢ ¤® ¢ ¢ £ ¢ ª ¢ ® ¬ ³ £½ ¢ £ ¯ £ ª ¡ ¬ ¢ ® £ ® ¢ ¡ £ ³ ¬ §¡ ¢ ¤ £ ¢ « ¢ ® ¤ © ® « ª ¬ £ ¯ ¡ § ¾ £
¢¬ ® £ ¢¢ © ª ® £ ¥ © ¢ ®¯ µ ¸ « © ¥ ® ¢ ª ¤ £ « £ ¯³ ª »¤ ¢ ¤ ¢ ¯ª ª ¥ ª¤ ¯ ¢ £ ª ¥ ¢ ª ® ¢ ¤ ¢ £ ¯ § ª¸ ® ® ¢ © £ ¢ ¢ ¢® »
£ ¬ ¤ ¬¢ ¢¯ « ¢ ® ¤ ¤ © ® ¥ « ¤ £ £ ¤ £¯ £ § ¿ £ ¢ £ ¯ ©© ¢ ® ® ¢ ¹ £ ¢ ¢³ ³ £ ¯ ¬ ¢ ® ¢ ¢ ¦ © £ ¢¢ ® £ ¢ £ § À ¢ Á ¤ ¢ §
¸ ® ¢ ¢ º £ ¤ £ ¥ ª º ¢ ¢ © ¢ £ ¢ ¢ © §
1.1.4
¾ ¢ ¡ © ¢ ¤ ¢ ¢ « ¬ ¢ ® © ¬ ¢  £ ¢ ¢ ¢ ¡ © ª § ¶ ¢ ® ¢ ¤ µ¢ ¸ ¯ ¢ ¬ ¯ ¢¢ £ © ¯ ¢ ¢ « £ ¬ ¢ ¯ ¯ £ ª ¡ ¬¢ ¥ ¡
Service-Oriented Architecture and the hammer
¤ ¢ £ © ¢ ¢ ¯ ½ « £ ¢ ¯ © ¢ ®¯ £ £ ¤ ¢ ¢ § µ ©¢ ¹ £ ¯¢ ® ® ªÁ ¤¤ £ ³ © ¢¡ ¢ ®¡ ª £ £¢ ¢ ª ¤® ª ¢ © £ º £ ¥ ¤ ¯ £ ¯ ¤ © ª ® ¢ ¬ ¥ »
¢¢ ® ¯ ¤ ¢¡ ¯ ¢ « ª ¢ © ¤ ¯ ¡ ® ¢ ® ¬ ¤¬ ¢ ¥ © ¤ º ¢ § £¶ ¢ ® ¢ ® ¢ ¥ £ ªÃ Ä Å ª¡ ¢ Á ¤ ¯ ¢ ¯ ¡ ª ¤ ¯ ¯ »»
¢ « ¢® ¹¢ ¥ ¥ ¤ ¯ © ¢® © £ ¬ ¥ © ¡ ¤ ¯ ¢ ¢ §
erl_ch01.fm Page 4 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
4 Chapter 1 • Introduction
Æ× Ê Ç ÈÈ Éß ÇÌ ÊØ ËÊ Ìà ÍÒ ÌÈ Î Ì Ê Ë Î Ï Ç Ê ÌÕ Ç Ð Õ É Ê × Ñ ÌÒ Ë È Î Ê Ó Ù Î È Ò Ì ÎÏ Ø Ô Ì Ê Ù Õ Ô ÊË × Ê ÌÒ Î Ñ Ç Ò Ð Ò Ç Ï+Ð Ê Ç ßÒ É Ö È ÊÌ Ò × áÇ ×Ì Î ÕØ ÒÒ Èâ Ù ÉÒ ÌÈ Î É × Ç Ê Ç Ð Ú É Û Ç Üâ Ý É Þ Ó ÊÊ Ö á ×Ù Ê Èã ß Ò Ì áØ ÊÈ × ÉÝ áÉ ÎÇ Ò Õ à
1.1.5 The hammer and you
âØ É ÉÇ Ê Ç ÊÕ Õ É ÊÎ Î Õ Ç Ê É È Õ Ù É È Ù Ì × Ç ÊÌ ß Ý ÊÐ ÒÉ Ïá Ç Ê Ò ß â Ê ÈÉ Ý Ç ÏÌ Ò ÎÌ Ô Ê Ù Î á ß ÇÌ È ã Ò Ò Î á â Ò Ê ÎÎ Ç É ä å Ù Ç É Ï Ç Ð Ì Ô É É Ç Ô Ç ÐÒ ÊÏ Ê ã Î Ò Õ á Ò Ç Ñ Ò Ï Ç È Ð É Ì Î Ø Ð× Ì Ç ÔÌ Ì Ò Ê Î× É Ç Ò ×Ï Ò ÙÉ ÈÐ Õ Ì × É Ç ÌÎ à
ÌØ Î Ò ÇÈ Ê Ù Ë Ò È ÈÉ É Ç ÊÇ Ê Õ Ö Êá Î × ÇÌ ÊÎ È Ê Ù × È× Ì ×â Ê Ò Ï Õ ÊÌ ÇÔ Ð× ä × á Ù Ê È Ì Ò È Õ É Ç É × Ð É È Ì Î Ë É Î Õ á Î Ù È Ê Ø Ê Õ Ê Î Ç Ê Õ Ø Ò Î Ç È Ò Ô Ò Ñ ã Ò á È
æÐ ÊÐ ÈÌ Ê× Ë Ø áÒ ÌÔ Õ Ê Ê Ø ÇÌ Ì× ß ãÊ ÔÒ ã á ÈÑ Ò â È âÉ Ù äÉ æ Ñ Ð È ÊÉ â × Ç Ê È ÏÉ Ç ÊÒ ËÈ Ó Ì Ê × Ç ÐÝ ÈÉ Ê Ç Ø ÒÒ âÑ Ê â È × Ê Î Õ Õ Ì ÈÉ Ê Ç ØÌ Ò Ç ÌÎ Ò × Î Ý É É Î Î Õ Õ Ö Ë Ê á× ÇÌ Õ Ù É È Î É ØØ ÊÇ Ì Ø ÇÊ Ð × È ÒÙ áÈ ÒË ßÐ Ì Õ Ç ÊÐ ÕÊ
âÇ Ï É Ì ×Ç Ê Ç ×Ô ã ÝÉ É Î ×Õ Ê È Ç ßá Ì È Ø Î Ê × à Ò ÉÈ ÔÌ ÊÒ ÎÎ ËÇ Ê Õ Ç Ð Ê Ê Î Ç ÈÊ Ò È ÉÙ ÕÈ Ì × Ç Ê Ò ä Æ Ö Ò á Ý Ì ËÔ Õ È ÌÉ Î Ö Ë ã Ò× Êá È È ß ÐÌ Ø É Ê â à Ò â È Ì ÊÊ ÎÈ ÇÉ Ê Î Õ Õ É Ê ÈÎ Ø ç ÐÒ Ìã Ç Ê Ç ØÐ Ç Êá ÈÈ ÊÌ Õ ÉÊ Îè Õ Ý á Ô Ç Ì à
éå ê ß × Ê É ÎÖ Ê Ì ÊÎ Î Õ Ê Ù Ù É Ê È Î Ç Õ Ò Ê Ñ Î Ù Ç È Ø Ò Ò ç ÎÊ Ø× áÇ × Ô Ç ÇÉ Ð Î É Ç Ç Ý åÌ Îê ß ß Ê Ò ÏÔ ß Ò Ê ÈÕ Ó ÊÐ Õ Ì Ë Ñ Ð Ò ÔÈ ã â Ø ÒÉ Îâ ã Ù ØÔ ÊÒ ë â ÊÙ Î É ßÎ Ì Ì È Ê Ò × Î ä âÛ Ê Ò Î È ÊÇ × ÒÝ Ñá Ç ÊÎ ÎÌ ì Çá Ð Ê É Î Ù ÈÎ Ò Ò Ö Ç àÝ
1.2 The XML & Web Services Integration Framework (XWIF)
ÔÉ Ê Ç âÌ ß ×Ì ÇÝ ã+É Î Ç ÕÐ É Õ Ç Ì Ñ ß í Ê Ø Î á ÇÔ á Ç È Ì ÊÎ Õ Ç Ê Ë Ö È Ê É ã Ç ÌÒ Ò Î Î Õ Ì × Ç× È á É Ê Õ × Ì äÇ Ì ÆÒ Ò Î Ô Éá Ô Ç Ì Òâ Î Ì ×Î ÕÑ È × Ê Ê ì Ç á ÊÖ ÎÒ Çá Ô ãÎ Õ È ÊÉ ìÈ Ì áÊ Ì× È ä Ê ÕÛ ÉÉ ÎÎ ã Ê Ô Ê Ò â Ñ Ê Ç ÎÐ ÇÊ Ò ÑÌ Õ Ø Ê È É Ê × à
ÊÏ ë Ì Ù Ç Ð È Ê É × Ô× Ç ÊÊ ÕÈ Î Ì É Î Ç Ì Çß Ð Ê Ì × Ù Ë Ê áÈ × Ì ÙÕ ÊÊ ØÝ ÇÇ Ì Ð ß Ê Ê È × Ê ÑÇ ÒÒ È Ø Ê Ò Ý â â â É ã Ò ÎÖ Ê Ì Î Î Ç ÊÊ Ï+Ë È É Ç ÒÇ Ì Ò ã Î Ò áÙ ÝÈ ÉÒ ÎÖ ÔÕ Ê â Ð Ò × Ùä Ê Ñ á Ô ã Ï Ì Ô Ù È Ò ß Ì Õ Ê ã Ò á
æÌ Î Ð Ë Ê Ñ Ø Ò Ò È Î É Ç Ê Î Î á Ç × â Ò Ö Ñ Ê ÇÈ Ð ÒÌ × Ñ Ö ã Ò Ê ÒÉ ÓÈ × É ÇÈ Ð Ê È ÙÒ Éá ÈË Ç Ð Ò Ñâ É ã Î Ø Ì ÒÎ â Ç Ê ËÙ ÈÉ É Î Ç ã Ì ÒÝ ÎÚ Û Ñ È ÉÜ âæ îÊ Ï î Ò Ò È ÎÓ × Çá Ð Ô ÉÇ Ì ÇÎ å Ë ê ß å Ê Î ÖØ äÊ æÊ ÎÐ Ê Õ ÊÚ ß Û Ê ÔÜ Ò Ù ï à
Þ× Ç È Ê É Ö Ç Ê Æ Ë Ê ã È Ý ß × Ì á Ø ÊÙ ×Ù åÒ Î È ÇÇ ÊÊ ËÕ È ÖÉ ãÇ Ì Ò É Î × Ê ð È È Ì ÉÊ â× Ò Ê Ñ Ï Ö Ò Ê È× Ó Ç Ù ñ ÚÈ É Þ Ø Ç åÌ ðØ Êò × Ø Ý Ò Ì ÎÎ ×Ç Ê Ì ×Ë Ç È × É ÒÇ Ì ÑÒ ÉÎ Î × ÇÊ È ÎÉ ÇÇ ÊÊ ÈË Ù Ì Ê È ×Ì ×Ý Ê É Î × ÇÕ É ÎÙ ÕÈ Ò É Ø È Ê Õ × Ì ×Í Ê É × Ç ÌÑ Ò Ò Î È
Ùó ÔÉ É Ø Î Ð Î ÙÌ Î Ì ÊË Ø ÉÊ Î Ò Õ Ñ Õ Ç ÐÊ ÔÌ Ì× ß ØÊ ÒÈ ÌÔ Î Ê Ë Ø Ç× Ì Êß ÈÊ ß ÌÌ ØÎ Ê Ç Êà ÒÔ È Ì ÌË Ê Ê Î Î Ç ÊØ ÊÕ ÌÌ ×Î Ç Õ Ê ÊË ×È ÌÉ Ë Ç ÎÌ Ò Ê Î Õ Ù Ï È ÒÌ çÇ ÊÐ Ø ÇÇ ×Ð äÊ Ø Ò â â Ò Î Ë Ò É Ô Ò Ñ Ç È É Î × Ì à
ÇÌÒ Î ÌÎ Ë É Î Ò È Ë É Î ÌÍ É ÇÌÒ Î ÇÒ Ï É È Õ É × Ê È ß ÌØ Ê àÒ È ÌÊ Î ÇÊ Õ Ê Î ÇÊ È Ù È Ì× Ê ä
Table 1.1 An Overview of XWIF
ô õ ö ÷ ø ù ú û ÷üû õ ö ý ÷ú þ ÿ ú ù ÿ ö
XML & Web Services Integration Framework
ùûõööõö
ý ÷ù ú ÷õ üõ ö ý õ ù üû õ ÿ õ ö õ ö
ÛÇ Ì Ò á Î Ø Ð Ì × Ò× áÑ ÊÏ × Ð Ï É ÇÌ ÇÚ Ð Þ Ú å Û ð ÙÜ È ÉÊ ÉÎ ØÕ Ð ÊÞ × Ê Ì ×Ö É × ÊØ ÈÒ ß â Ì Ø â Ê × Ò ä Î Æ à Ò× Êâ Î Ê× Ê Ò É Ñ Ù Ç ÙÐ ÈÊ Ò ËÉ Øá Ð Ì Õ Ç ÒÊ Ô ÌÈ ÎÊ Ê× Ò× Ô ßÙ ÌÈ Î Ò Ëß Ì Ç Õã ÊÙ Õ Ì Ø ÉÉ ÔÈ Ê Ì Î Ì ÇÎ Ê Ë á È ×É Ê à
Ê Ô× Ê Ï Ð Ê È Ê ÌÎ ÇÐ Ê ÌÎ Õ á × ÇÈ ã Ý Ï Ð Ê È Ê É × Ò ÇÐ Ê È × É È Ê á Î Ìì á Ê ÇÒ Ú Þ å ð ä Û É Î ã Ö Ê × Ç Ù È É Ø ÇÌØ Ê × É Î Õ
erl_ch01.fm Page 5 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
How this guide is organized 5
NOTE
This book isn’t about XWIF, nor does it discuss this framework in any detail.
Much of the information provided here was borrowed from XWIF and assem-
bled into this generic field guide. To learn more about XWIF, visit
www.xwif.com.
!
"
'
#
$
%
&
$
1.3 How this guide is organized
$
'
(
) * + , $
-
#
$
$
#
$
.
#'
)
* +
,
$
'
/
#
0
$
$
-
.
$ # #
#
# 1 #
!
0 2 2 ) , # !
$
'
Enterprise
strategies for integrating
Applications applications using XML and Web
services technology (Part III)
best practices for XML
and Web services Technologies
integration, and
techniques for building
and migrating to a strategies for integrating XML
service-oriented and Web services technology
enterprise (Part IV) into single application
environments (Part II)
Figure 1.1
Three categories representing Parts II, III, and IV of this guide.
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
U V W V XY Z [ \ X] ^ W V _ V W V ` ] V a b V W b XV c a _ c d Z e XY ] a b V W V f X` V Z ] d g Z W e Z ` f ] d Z g eV W h
6 Chapter 1 • Introduction
ie d VV Z r W ja k a ^ l mu c n X oe d p Z Z _ a` ] f \ qY a V ` r e Y d V V W b v X w ] V] Ya W Y V g YV e] Z X `s f] ZZ eW X fa Y` Yj X Y Z e WV V f f X `X Y ]x \Z Yr Y j VV f v h ey d h W a \ t d a \ e e d X Y g Z W e a _
1.3.1 Part I: The technical landscape
XML technologies technologies services technologies
(Chapter 2) (Chapter 3) (Chapter 4)
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
ªÅ «µ ¯« ¬¼ « °® ¯ ¯ ´ ° ¯Æ µ ± ´ ° ²¼ ³ Á´ µ ¾ ¶³ · «¸ ¹ º ¯ » «´ ¼¼ ´ ½ » ¼ ¾µ ² ¯° µ ¿ « ¯ Á µ «´ ¼° ¬¯ µ¼ µ «² ¾ ´ » À ¼ ° µ¯ ² Á ¼ µ ¼ ¾ ¬À ¯° ¾ «  ¼ ² Ç« ° ¯® ² ° ¼ µ¬ ° »¯ À » À À  °À ¾ » ° ¾¼ ° » ¼ ¯° µ¯ ¯ ¼Ã ° µ° ´´ « ¯· Ä
1.3.2 Part II: Integrating technology
Figure 1.2
ÈÍ ¬ ° °¼ «¬ °» ¯  º ®» ´ « ¼ ɽ Ê ® Ë µ « ¾ ¼ ´ µ » » ¼ ´µ  ² Ç ° µ « «µ À ¼ » ´Ì » µ ¼ µ ³ °« ¯ µ ¼Æ µ ²° ¯ ´ »Æ ¼µ ° À ¯µ ¯ ° «Æ «µ ³ ¯ µ ¼ «Â Ç ´ µ ÂÁ » « ¼ µ° ¯ ´ ò ° ¾¼ µ Ä É Ê´ ° µ Ë ¯ »¼ µ ¯ Æ Æ µ ȯ à µ ° Ì ´ « ¯ µ Å´ à µ ° ¾¯ µ ¼ «« ·¹
The three chapters in Part II roughly correspond to the three backend tiers
of a distributed application architecture.
°Á ´µ Î ³ °´µ Æ ·
ÏÍ Ð ¬ Ñ µÒ Ó « Ô¾ Õ Ñ À Ö Ð µ Ó ×Á ¼ ج ° «Ù ¾ Ö ¬Ð »Ñ ÚÀ ¼Õ µ Û ´ Û ° Ü« Ö Ý ¼ Õ¬ ѵ Ö Ú ° Я Þ¼ µ ß² à ´ »á ¼Õ ° Û Ñ¯ Ò Ô Á⠾㠴 µ É Ê Ë ¼ µ ¾ ¬ ¯  ² ° µ « ® ° ¼ ¬ ¼ ¬ µ À ³ ´ À « µ
» ÁÆ µÆ «´ µ¼ » « Ì« ° °¯ « ² ¬ ° ¾ ¯ ² Å » Å Á ³ ¯¯ Æ ° ¯» ż µ ²µ ¯´ » ¼ »¼ °  Ư » ° ¼ « » « ³Å µ »« ¯ » » ´ ² µ µ ÀÅ ´ µ ¯Ã ¼° Æ » µ ´ ¾Æ ¬ ¹ ° ¼ µ´ ²¾ ¼» ³ ¯ ´ ° µå ·µ äÆ ³» ž ¾ µ ´´ Æ ³ ° ¯ « ² « ¼ ¼ ´ » ¼¼ µ ¬ ² µ ° µ Á «³ ¯Á ¾ ´Ä
¼° ¯ »  » ´ µ » « Å « ¼ Â°æ µ ÂÇ ¼ Ì µ » Á µ ¾ ¼µ Æ Ì Ç ¼¬ µ °¯ ¼µ ² ´ » ¼° ¯ ¹ » « Á  ® « ç
è ÉÉ ÊÊ ËË »Æ «» ¼» » Æ ´ µ» À¼ » ´ µ´ «µ µÀ ¯ ´ µ¼ »« ¼µ ° ¯ ¯¼ » «¼ ° ¼ ´ ¯» ¼ Áµ ² ´ ° ŵ « » Á ¼ » ´ ¯ ¾ Æ ¯ Æ ¾ µ µ  À° à ¼ µ³ ´ » Ç Â ÅÇ »µ ¯¾ ¬ Æ » ¼¯ µ ° ¾ « ¬ Å ¯ ° ¾ » Â Ç ° ¯ ¾ ´ À ´ » ¼ ° ¯ ²
è É® Ê ° ¼ ¬ Ë » Æ ¯ » ¼µ » Å Ã À » ¬Â ° » Æ « » ° «¼ ° ¯¯ «É ¼ ê´ »ë ¼ µ ² ° µ « ¼ ¬ » ¼ µ é À  ´ µ ¼ ¬ µ ³ ¼ °  ° å » ¼ ° ¯ Á « ¾ ¬ µ Å » Æ µ ¿ ¯ ° ¼ ° ¯ « ¹
è »¾ µ¯ ¯ É ¼ ´ Ê »  ˰ å «° ¯¾ ¬² µ Å ® » ¯ »µ Æ´ «Å ¬ °° ¯À ° « ¼Á ´ É» ¼Ê ° ˯ «À ¾ ´ ¬ µ ¾ Å µ « » « Ƽ ¬ µ »¿ ¼ ¯ ¬ ° ¼° °² ¬ ¯  «° ² ¬ ¼ « ¼ ¬ µ ° Å À ´ ¼ » ¯ ¾ µ Á
erl_ch01.fm Page 8 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
ì íò ù î ô ð ïû ù ð ñð òø ü ó ðô ñ õ ò ö ó ñ ô÷ õ ö ò ñ ð ÷ø ö óò ð ôø ö ð ñó ò ðö ù õ ú í ø ù î ô ïð û ò öð üü ö ý÷ ù ù ñ ó ð ûð ô ù ø ó ð ù ú ñ ò ð ø ö ó ö õ í þ ï ÿ õ ö ñ ô ð ñ ü ð ñ ò ò ó
8 Chapter 1 • Introduction
ì íò î ô ðï ñ ò ü ò ð ð ò ò ð ò ù ò ñ ü ü ø ù ó ô ú ô ô ö ð ñ ú ò ø ðü ù ú ø ù ô ð û ò ð ö ô ø ð ø ö ó í ù ñ ò ô ò ð ù ü û ó ö ö ú ð ö ü ù ó ð ñ ò ø ù ò ó
ÿ ûö óù ô
ùð ô ù ö ü ð ø öô ûó öô ò ô ô ô ÷ð ù ö ð û ù û ðò ý ð ùö ñò ø ò òô ô ø ù ó ó û ö ò
ðù ù ñ ú ù ö ñ õ ô ðð û ù ø ô ü ô ô ù ð ù ü û ó ö ö ú ø ù ô õ ö
! "# $ % &
' ù ñ ù
ù õ ö ü ô ö ó õ ó ò ÷ ù ó ðò ù ô øú ó ü ö ó ü ù ðô ðû ò ð ò ö
ö ðö ù ô ðò øô û ò õö ó ò (
ðò ø ö ø ó ø õð ö ñ ÿ ò û ôù ù ôñ ýü öø ü ù ù ( ö ö ñ õ ø ù ð óû øð ôù ü û ò ò ñ ü û ð ù ø ðñ ù üð ûð ù ññ ùù õ öò óñ ù ø ô ñ ù ø ÷ ò ø ñ ð ùù ò ó ð ö ò ð û ù øø üó ò ð ðù ø úö ñó ò õð öø ö ñ ó õ ö ðõ ) ñ ù ù ø ó ôð ùù ññ ö ý ø ü ù ù ñ ô (
ðÿ ù û ü ùû óõ ö ö ö ö ú
ø ó
ú ø ðí û )ø ó ò * ô ù ñ ø ýü òø ü ð øù ö ÷ó öù ó ýù ø ôñ ö ò ó ñ ÷ù ù ù ô ó ð òð ô ø ô û ù +
ìì ð ø ô øø ðó ù ôô ùô ñ ô ý ù ø ñ ü ý ù øô ü ù ô
ì ü ö ó ðñ ö ù ñ ô ù ñ ý øü ù ô
í ) * ò ô ö ô øù ô ô
ø ðû ðû ù ô ù ð
ö ÷ ö ù øó ú ñ ö ü ù ô ô ù ô +
ìì ÷÷ öö ùù øø óó úú ô) ù ñù ý ø üô ùù (ñ öý ñø øü ù ù ó ø ðó ù ð ù ñ ü õ öò ÷ü ù ô ö ó ù ó ð ü ò ô ô ù ô
, ü ö ù ü ðøö ó ö õ øó ðù ú ñ ò ðøö ó ò ó ö ðø÷ ø ò ðøö ó ô ðñ ò ðù ú øù ô ò ñ ù ñ ö ý ø ù ó ù - ð ò ñ ù ô ô øó ú
ðû ù ô ù ö õ ô ù ñ ý øü ù ò ô ô ù ÷ øù ô ) ù ô ù ñ ý øü ù ô ù ñ õ ö ñ ÷ ò ó ü ù ò ó øó ðù ñ õò ü ù ù ô øú ó
. / 0 1 1 " # $ 2 &
íò î ïñ ö òö ü û ù ù ó ô ô ð ö ô ð ñ ò ü
ð û ñ øö ó ùú ò ó ó ù
3
ù ö ó ñ ø ó ú öô õü û ù ò÷ ð òò ô ÷ ÿ ö û ø ôù üø óû úò ðð ûù ñò ðø ô ü ö ù ó ð ñø üò ò ô ðð ùô ð ñð òö ù ø - ð ø ö óö òñ (
ø ó ø úð ø ö ð ùó üò û ó ñ ùø ò ð ùø öô ó õ öò ñ ñ ø ù ó ð ùö úô ñø ðò ö ð ñø óø ù ú ô ð ûþ øù ó ûü ùø ù ðñ û ò øñ ô ü ûø ô ø ü ò ò ü ö ô ÷ ð ñ ÷ ü ö ð ó ñ ùò ñ öù õò í õ ö î ñ ï
û öø ü ü û ÷ ó ù ö ó
ð ô ù
øú ð ûù ò ð ñó ò (
ñö ù ð ôû ö ù ñ ñ ü ü û ù òô ð ð ù ñ øô ü ò ò ñ ù ø ÷ ø ð ù
ù ù - ö ñ ù ø ô ô ù ô
ø ð û ÷ ö ñ ù ô ó ð ò ü ð ø ü ò ù ð ò ø ð û ò ó ø ó
* øñ ô ð
ù ü ö ÷ ò ñ ù í î ï ò ó ñ ù ò ðøö ó ò ò ðò ò ô ù ô øó ö ñ ù ñ ðö ù ô ðò øô û ðû ù øñ õ ó ò ÷ ù ó ðò
øõ ù ñ ù ó ü ù ô ò ó ðö ü ö ó ðñ ò ô ð û ö
ù ò ü û ò ðõ ö ñ ÷ ñ ù ò ðù ô ðö ò ó ÷ ò ó ò ú ù ô ò ðò 4 ù - ð ðû ù
ò ô øü ô ö õ ò ðò ÷ ò øó ú ò ñ ù ü ö ý ù ñ ù ò ô
ù ò ô øô ô ù ô ñ ù ò ðøó ú ðö ù ñ õ ö ñ ÷ ò ó ü ù ò ó ò ðõö ñ ÷
erl_ch01.fm Page 9 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
GA @ P 9 F 8 ? ; ? : :C 7 P 76 A ; : X 9 9 5 : 6 ; ; 6Y C Y Y A 99 :D ? 9 9A D 5 F C7 ? 7 : ; ? 6 AG ? ; 6 Q : C ? : D 6 < ? A G ; ? ? A 5 ; ? 6 : A ? ; 5 ? B 9 : : 9 C ; P 6 C A A 5 7 ; G @ ? ? A P9 : 7 6 ? C 7 C E 9 :> ? ? ? K R 78 ? D :C U : ?6 G 5 ? 7 9 M A 9 5 7
G C A ; : 9 7 ; ? 5 = L 6 B P : ? Z = [ 6 D D P 7 ; : 9 ; ? U7 ; @ ? 7 G C 8 ? C E X 9 : ; Y Y Y G @ 9 8 ; ? : 7 M 9 7 ; @ ? < : ? D 9 ; ? ; C 9 8 8 D 6 Q
G 9 ;6C A ;6? : 7 =
\ P ] A^ 5 _ 9 ^ F ` ] ? a A b ; 9 c ` D d 6 A e f; ? a B g : g9 h; c6 `C a A i c G e C b A c G b ? i 8 ^ ;j 7 k a9 i: c ? e b 6 A l ; m: C ] 5 a P g G i ?^ k 5 nM o9 A 5 ; @ ? 5 6 E E ? : ? A G ? 7 K ? ; N ? ? A ; : 9 5 6 Q
L; 6 C A 9 D 9 A 5 G C A ; ? F 8 C : 9 : < 9 8 8 D 6 G 9 ; 6 C A 6 A ; ? B : 9 ; 6 C A 9 : G @ 6 ; ? G ; P : ? 7 9 : ? 5 6 7 G P 7 7 ? 5 = S @ 6 7 G @ 9 8 Q
;? : 67 F C : ? C E 9 8 : 6F ? : EC : G : C 7 7 Q9 8 8 D6G 9 ;6C A 6A ;? B : 9 ;6C A M 9 7 6 ; 9 D7 C 8 : C U 65 ? 7 9 B P 65 ? ;C
F 6 5 5 D? N 9 : ? 8 : C 5 P G ;7 M 9 A 5 ? R 8 DC : ? 7 G C F F C A 8 9 ;@ 7 E C : ? U C DU 6A B 9 A ? A ;? : 8 : 67 ? 6A ;? B : 9 Q
;6C A ? A U 6: C A F ? A ; =
Y E 6 A ; ? B : 9 ; 6 C A 9 : G @ 6 ; ? G ; P : ? 6 7 A ? NV; C < C P M Y : ? G C F F ? A 5 < C P : ? 9 5 ; @ : C P B @ ; @ 6 7 G @ 9 8 ; ? :
8 : 6C : ;C 8 : C G ? ? 5 6A B N 6 ;@ p @ 9 8 ;? : 7 q 9 A 5 Z r =
s ^ ? k : t ? c ` N ^ u ? e k 5 c 6 ^ b ? i ^ 6 Av ; aC k `; @ ] ? c i ^F ` Pi w D ;k 6 ^ Q d 9 f e: 6k ? h 5 ^ j N a C` x : D c5 b C i ^E j D k? aB i 9 c Ge < b 6 l A m ; ?] B a :g 9 i ^; 6 k C Ay o 9 : G @ 6 ; ? G ; P : ? 7 = > ? K ? B 6 A
Kz < 5 ? 7 G : 6 K 6 A U B ; @ ? E C D D C N 6 A B 7 U ? ; C E H > Y L 7 ? : U 6 G ? 7 F C 5 ? D 7 {
| 8N : : C 9 R 8 < 8 7 ? ? : : 7 U ? 6 :G ? 76 G ? 7
| G C C : 5 6A 9 ;6C AU 7 ? : 6G ? 7 }EC : 9 ;C F 6G ;: 9 A 7 9 G ;6C A 7 ~
| U
> ? ;@ ? A ? R 8 D9 6A ;@ ? : C D? 7 C E G C F F C A 6A ;? B : 9 ;6C A G C F 8 C A ? A ;7 M 6A G DP 5 6A B {
| D6 ?A B ; ? 9 : G F < ? 9 5 5 6 9 9 8 : < ; ? 7: ?7 : 6 G ? 7
| 7 ? : 6 G ? 6 A ; ? : G ? 8 ; CU : 7
| U
erl_ch01.fm Page 10 Tuesday, March 16, 2004 12:27 PM
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
10 Chapter 1 • Introduction
business business
The architectural scopes of Part III chapters.
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
12 Chapter 1 • Introduction
ß à áâ ã áä å æä à ç è â æé áä å â ã áæé å êä å ã ë ì ã â ë í æ áä ë áî â ä à
ß à áâ ã áä å æä à ç è â ä é áä â ï â æà ä à è êî áæè é æé áä å â ã áæè é
ß à áâ ã áä å æä à ç è â æé áä å â ã áæé å ð ä ñ à ä â ò æë ä à à ä ë î â æ áì
ó í æà ï ã â á è ç áí ä ñ è è ô ï â è ò æ õ ä à ã ë êä ã â â è ã õ ö ã ï áè ã à áã é õ ã â õ æ÷ ä õ à ä â ò æë ä øè â æä é áä õ
1.3.4 Part IV: Integrating the enterprise
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
www.serviceoriented.ws 13
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
A bout th e A uth or
Sample Chapter 1 from "Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services"
by Thomas Erl. For more information visit www.serviceoriented.ws.
SOA Systems Inc. is a consulting firm actively involved in the research and development
of service-oriented architecture, service-orientation, X M L , and W eb services standards
and technology. T hrough its research and enterprise solution projects SOA Systems has
developed a recogniz ed methodology for integrating and realiz ing service-oriented con-
cepts, technology, and architecture.
F or more information, visit www.soasystems.com.
One of the consulting services provided b y SOA Systems is comprehensive SOA transi-
tion planning and the ob jective assessment of vendor technology products.
F or more information, visit www.soaplanning.com.
T he content in this b ook is the b asis for a series of SOA seminars and w ork shops devel-
oped and offered b y SOA Systems.
F or more information, visit www.soatraining.com.