【正文】
議上,指定了如何與一個(gè) Web服務(wù)通信的技術(shù)細(xì)節(jié) ? 描述在哪里定位一個(gè)特定的 Web服務(wù)實(shí)現(xiàn),即URI(Universal Resource Identifier,統(tǒng)一資源標(biāo)識(shí)符 ) 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 14 WSDL描述的組織 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 15 Web服務(wù)的部分 WSDL聲明 D ef i ne s o m e of th e t y pe s us e d. A s s u m e th at th e na m e s pa c e pr ef i x e s ‘w s ’ r ef er s to th e na m es pa c e U R I fo r X M L s c he m a s an d th e n a m es p ac e pr ef i x a s s o c i at ed w i th th i s d ef i ni t i on i s weat h ns . ty pe s x s : s c he m a ta rge tNa m e S pa c e = “ ht tp :// ... /w ea th ns ” x m l ns : w ea th n s = “ ht tp :// …/w ea th ns ” x s :e lem en t n a m e = “ P la c eA nd D at e” ty pe = “ pd re c ” / x s :e lem en t n a m e = “ M ax M in T em p” ty pe = “ m m tr ec ” / x s : e lem e nt n a m e = “ InData F au lt” ty pe = “ er rm es s ” / x s : c om p lex T y pe n am e = “ pd rec ” x s : s eq ue nc e x s : el em en t n a m e = “ to w n” ty pe = “ x s :s tr ing ”/ x s :e lem en t n a m e = “ c ou nt ry ” ty pe = “ x s :s tr ing ”/ x s :e lem en t n a m e = “ da y ” ty pe = “ x s :d at e” / /x s :c om p l ex T y pe D ef i ni t i on s o f M ax M i nT y pe a nd I nData F au l t h er e /s c he m a /ty pe s 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 16 Web服務(wù)的部分 WSDL聲明 2 N ow de fi ne th e i nt er fa c e an d i ts op er at i on s . I n th i s c a s e, th er e i s on l y a s i ng l e op er at i on to r et ur n m a x i m u m a nd m i ni m u m te m pe r at ur es int er fa c e na m e = “ w ea the rInf o” op er at ion n a m e = “ ge tM ax M inT em ps ” p at te rn = “ w s dl n s : in ou t” i np ut m es s ag eL ab e l = “ In” e le m en t = “ w ea th n s : P lac e A nd D at e” / ou tp ut m e s s ag eL ab el = “ O ut ” e le m en t = “ w ea thn s :M ax M in T em p” / ou tfa ul t m es s ag eL ab e l = “ O ut ” e le m e nt = “ w ea th n s :I nData F au lt” / /o pe r at i on /i nt er fa c e 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 17 服務(wù)工程 ? 是開發(fā)服務(wù)的過程,這種服務(wù)在面向服務(wù)的應(yīng)用開發(fā)中是可復(fù)用的 ? 必須確保服務(wù)代表可復(fù)用的抽象,能用于不同系統(tǒng)的抽象 ? 包括 ? 可選服務(wù)識(shí)別 ? 服務(wù)設(shè)計(jì) ? 服務(wù)實(shí)現(xiàn)和部署 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 18 服務(wù)工程過程 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 19 可選服務(wù)識(shí)別 ? 三種基本的服務(wù)類型 ? 實(shí)用服務(wù) 這些服務(wù)實(shí)現(xiàn)某些一般性的功能,可被用于不同的業(yè)務(wù)過程 ? 業(yè)務(wù)服務(wù) 這些服務(wù)是與特殊業(yè)務(wù)功能相關(guān)的,如學(xué)生為一門課程注冊(cè)登記等 ? 協(xié)同或過程服務(wù) 這些服務(wù)是用于支持更一般的業(yè)務(wù)過程的,這些業(yè)務(wù)過程包含不同的角色和活動(dòng) 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 20 服務(wù)分類 實(shí)用服務(wù) 業(yè)務(wù)服務(wù) 協(xié)同服務(wù) 任務(wù) 貨幣轉(zhuǎn)換 員工定位器 驗(yàn)證聲明表格 檢查信用等級(jí) 過程費(fèi)用聲明 支付外部供給者 實(shí)體 文檔風(fēng)格檢查器 W e b 表格 X M L 轉(zhuǎn)換器 費(fèi)用表格 學(xué)生申請(qǐng)表 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 21 服務(wù)分類 ? 對(duì)于一個(gè)面向?qū)嶓w的服務(wù),它是與單個(gè)用于不同業(yè)務(wù)過程的邏輯實(shí)體關(guān)聯(lián)的嗎 ? ? 對(duì)于一個(gè)面向?qū)嶓w的服務(wù),該任務(wù)是在機(jī)構(gòu)中由不同的人執(zhí)行的嗎 ? ? 服務(wù)時(shí)獨(dú)立的嗎 ? ? 對(duì)于它的操作,服務(wù)必須維護(hù)狀態(tài)嗎 ? ? 服務(wù)能被外面的客戶使用嗎 ? ? 服務(wù)的不同用戶可能有不同的非功能性需求嗎 ? 陳江平 Software Engineering, 8th edition. Chapter 31 Slide 22 目錄服