文档详情

Web Services.ppt

发布:2017-09-25约字共13页下载文档
文本预览下载声明
Web Services 葉慶隆 大同大學 資訊工程系所 chingyeh@.tw .tw/chingyeh 參考資料 本教材主要內容係採自以下資料 Chapter 7, Brian E. Travis, XML and SOAP Programming for BizTalk Servers, Microsoft Press, 2000 Background 網路技術及應用之演進 旅遊代理商 旅遊代理商是資訊集成(information aggregation)的典型例子,由各種不同的資訊來源中,為顧客規劃出旅遊行程 旅遊代理商 代理商是以人工蒐集資訊,故效率及涵蓋面均受限制 用電腦取代人工 資料格式問題(HTML),電腦不認得內容 眼球瀏覽 資料呈現在瀏覽器供人瀏覽解讀 Web Service 程式間以易處理的資料格式交談 利於資訊再利用、資訊買賣 資訊集成的重要性 例子 旅行代理商 保險掮客 貸款掮客 逆向拍賣 買方開出條件 賣方互相競標,直到最低價 用標準的方式競價,讓電腦自動處理拍賣程序 一筆交易省下少許金額,但量大便可看出效果 Loosely Coupled Services 在物件導向平台可以利用現成的物件做為建構自己程式的元件,如Microsoft COM架構的對話盒 物件是可執行某特定工作的程式碼,可為共用以降低程式開發成本 物件有性質及使用方法 如在字型選擇的對話盒中設定字型大小 呼叫getStockPrice使用方法 Microsoft的COM, Java平台的Enterprise Java Beans (EJB) Tightly coupled systems 以私有的(proprietary)物件建構而成的系統 Loosely Coupled Services Tightly coupled systems無法做跨機器之溝通 Microsoft提出Distributed Component Object Model (DCOM)因應 Tightly coupled systems不易做跨平台之溝通 如在Windows平台上的DCOM物件和Java平台的EJB物件溝通有困難 Simple Object Access Protocol(SOAP)可解決平台間溝通不相容的問題 Loosely Coupled Services 程式中利用SOAP可以呼叫遠方物件的使用方法 利用SOAP溝通,不需在相同平台或相同的程式語言 SOAP不需特有的溝通協定,而是以開放式的語法呼叫使用方法 XML 步驟說明 Create an XML document that contains the information required to remotely invoke a method on an external system. This package is sent over a standard HTTP connection. The SOAP server parses the SOAP package and calls the appropriate object, passing as necessary the parameters that were included in the SOAP document. 步驟說明 The object performs the requested function and returns information to the SOAP server. The response object is sent back to the requesting machine. SOAP client receives the object, it strips the SOAP envelope and sends the response document to whatever application needs it. Web Services Web Services avg-temperature deg=“f”76/avg-temperature Web Services
显示全部
相似文档