| 研究生: |
郭子廉 |
|---|---|
| 論文名稱: |
運用Web Services於J2EE架構進行企業應用整合之研究 |
| 指導教授: | 曾淑峰 |
| 學位類別: |
碩士
Master |
| 系所名稱: |
商學院 - 資訊管理學系 Department of Management Information System |
| 論文出版年: | 2003 |
| 畢業學年度: | 91 |
| 語文別: | 中文 |
| 外文關鍵詞: | J2EE |
| 相關次數: | 點閱:117 下載:38 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
對於現代企業來說,應用系統與流程的整合並非新的需求,然而整合的複雜度與困難度卻隨著整體商業經營環境的善變日益加深,舊有的點對點應用程式整合架構已無法滿足這樣的一個環境,因此,市場上便出現了整合中介軟體(Middleware)這一類的產品來簡化複雜的傳統點對點整合架構。然而,這樣的一個做法仍然有標準以及架構不夠開放導致投資風險過高的缺點!
相對於專屬系統,以J2EE平台為基礎的開放式架構於焉出現。他們遵循J2EE平台規格提供整合方案,以Application Server為中心,配合JCA、JMS及XML新標準,可整合新舊式系統,延展性高。而另外Web Services 是近兩年來的當紅炸子雞,為一種元件網路化的技術,透過Internet開放的標準(如Http、XML)公開讓人使用,其被視為是整合的明日之星!
J2EE架構運用在應用程式整合上是新一代的趨勢,遵循JMS以及JCA架構可讓各種不同的應用程式直接與J2EE應用程式做溝通,加上J2EE平台有著其他諸如延展性強、安全性高以及支援者眾多等優點,更使得這樣的一個整合解決方案更增無限魅力!但其也有著呼叫程式被特定協定或程式模式(如JMS、JCA)綁住而造成開發成本提高以及難度的增加等缺點。本研究擬運用Web Services之相關技術於現有之J2EE整合架構,並以一線上投保系統之內部企業應用程式整合作為範例以說明此架構之應用方式。
關鍵字:中介軟體(Middleware)、企業應用程式整合(EAI)、J2EE整合、JMS、JCA、Web Services。
第壹章 緒論……………………………………………………………………1
第一節 研究背景與動機………………………………………………………1
一、整合企業應用程式的需求……………………………………..1
二、傳統的應用程式整合與J2EE應用程式整合……………………2
三、Web Services與 應用程式整合……………………………… 4
四、J2EE結合Web Services於應用程式的整合……………………6
第二節 研究目的………………………………………………………………6
第三節 研究步驟………………………………………………………………8
第四節 論文架構…………………………………………………………9
第貳章 文獻探討…………………………………………………………… 11
第一節 企業應用程式整合………………………………………………… 11
一、 企業應用程式整合概論………………………………………11
第二節 可延伸標記語言…………………………………………………… 15
一、XML的發展背景…………………………………………………15
二、XML的效益與應用領域…………………………………………15
三、XML的文件組成結構……………………………………………18
四、XML文件種類……………………………………………………18
五、 XML Schema……………………………………………………19
第三節 網路服務…………………………………………………………… 21
一、Web Services的定義………………………………………… 21
二、Web Services的架構………………………………………… 22
三、SOAP簡易物件存取協定……………………………………… 23
四、UDDI普及描述搜尋與整合…………………………………… 26
五、WSIF…………………………………………………………… 31
第四節 J2EE整合架構及其相關技術 .…………………………………… 32
一、J2EE(Java2 Enterprise Edition)…………………………… 32
二、JMS..…………………………………………………………………33
三、JCA.…………………………………………………………...……36
第參章 研究架構與方法……………………………………………………39
第一節 研究方法…………………………………………………………… 39
第二節J2EE Web Services之企業應用程式整合架構……..…………….41
第三節 系統概念與架構…………………………………………………… 45
第肆章 系統建置……………………………………………………………51
第一節 系統簡介…………………………………………………………… 51
一、網站實例……………………………………………………… 51
二、後端整合實例………………………………………………… 53
第二節 WSDL[文件標籤定義………………………………………...…… 53
一、Types………………………………………………………… 53
二、Message…………………………………………………………55
三、PortType……………………………………………………… 56
四、Binding…………………………………………………………57
五、Port…………………………………………………………… 59
六、Service…………………………………………………………59
第三節 系統概念與架構…………………………………………………… 59
第伍章 系統應用……………………………………………………………76
第一節 系統安裝及執行說明……………………………………………… 76
第二節 系統展示與說明…………………………………………………… 76
第陸章 結論與未來展望……………………………………………………81
第一節 研究結論……………………………………………………… 81
第二節 未來展望……………………………………………………… 82
參考文獻………………………………………………………………………84
圖目錄
圖1-1傳統點對點的整合方法…………………….………………….………3
圖1-2 Middleware的整合方法……………….……………………….…… 3
圖1-3本研究之研究步驟圖…………………………………………….…… 8
圖2-1 ETL解决方案……….……………...……………………………… 13
圖2-2基於開放式商務流程的整合.……...……………………………… 14
圖2-3函数/方法的整合……….…………………………………………… 14
圖2-4 XML文件結構……………………….…………………………………18
圖2-5 Web Services架構……………………….……………….…………22
圖2-6 SOAP 訊息架構………………………….……………….………… 25
圖2-7 SOAP訊息交換架構…………………………………….…………… 26
圖2-8 UDDI架構…………………………………...……………………… 28
圖2-9 WSDL架構……………………………………………….…...………29
圖2-10 JCA概觀……………………………………………….…….………37
圖3-1 J2EE Web Services企業應用程式整合架構圖……….….……….41
圖3-2系統架構圖………………………………………………………….. 46
圖3-3系統高階Use Case圖……………………………………………….. 47
圖3-4系統合作圖…………………………………………………………….47
圖4-1網站架構圖…………………………………………………………… 51
圖4-2 LuckyGo系統流程圖…………………………………….……………52
圖4-3建立Web專案………………………………………….……………… 60
圖4-4 Mq for win的QueueManager以及Queue……………….……………62
圖4-5 Mq for AS/400的QueueManager以及Queue………….…………… 62
圖4-6 Mq for win的通道設定……………………………….…………… 63
圖4-7 Mq for AS/400的通道設定………………………….………………63
圖4-8 WebSphere Application Server的MQ設定……….…..………… 64
圖4-9 WSIFMQ類別………………………………………………………..…70
圖4-10 wsifMQ.wsdl文件(1)……………………………..……………… 72
圖4-11 wsifMQ.wsdl文件(2)……………………………..……………… 72
圖4-12 wsifMQ.wsdl文件(3)……………………………..……………… 73
圖4-13 wsifMQ.wsdl文件(4)……………………………..……………… 74
圖4-14 addMemberToDB.jsp…………………………...………………… 75
圖5-1錯誤檢測畫面(1)…………………………….……………………….77
圖5-2錯誤檢測畫面(2)……………………….…………………………….77
圖5-3填寫個人資料步驟………………………….…………………………78
圖5-4會員資料確認頁…………………………………………………….. 79
圖5-5 Web資料庫…………………………………………………………… 80
圖5-6 訊息接收於AS/400端…………….………………………………… 80
表目錄
表2-1 XML Schema與DTD的比較…………………………………………… 20
表2-2 Relationship of PTP and Pub/Sub interfaces………………. 34
表3-1四種架構的比較…………………………………………...…………44
表3-2系統運作流程………….…………………………………...……… 50
表4-1 Type區段範例………………………………………………...…… 54
表4-2 Message 區段範例……………………………………………...… 56
表4-3 PortType區段說明……………………………………………………57
表4-4 Binding 區段範例……………………………………………………58
中文部分:
1. Michael Demastrie,民國91年,資訊與電腦2002年9月號,26~29。
2. 李華飆,民國91年,計算機世界報。
3. 林章鈞,民國91年,資訊與電腦2002年9月號,30~33。
4. 林玉凡,2000,http://www.find.org.tw/trend_disp.asp。
5. 林玥玲,民國91年,全球資訊網資源搜尋與整合之研究-以
XML Web Servic之研究途徑,政大資管所碩士論文。
6. 柴曉路,民國90年,輕鬆進行企業應用集成。
7. 陳長念、陳勤意,民國91年,活用XML。
8. 陳會安,民國90年,「XML網頁製作徹底研究」,台北:旗標股份有限
公司。
9. 梁定澎,民國86年,『資訊管理研究方法總論』,資訊管理學報,資
訊管理實證研究方法討論會特刊,第四卷第一期:1 - 7頁。
10.張家任,民國91年,以XML Web Service 整合理財諮詢服務之研究,
政大資管所碩士論文。
11.蕭百齡,民國91年,資訊與電腦2002年9月號。
英文部分:
11. Apache Software Foundation. Web services invocation
framework (WSIF). http://ws.apache.org/wsif/, 2002.
12. Apache Software Foundation. Apache axis,
http://ws.apache.org/axis/, 2003.
13. Apache Software Foundation WSDL.
http://ws.apache.org/wsdl/,2001.
14. Alexander, C. “The Timeless Way of Building,” Oxford
Univ. Press, 1979.
15. Brown, A., Fox, B., Hada, S., LaMacchia, B. and Maruyama,
H. “SOAP Security Extensions: Digital Signature,”
W3Cnote, Feb. 2001, available at http://www.w3.org/TR/SOAP-
dsig/.
16. Bell, N. “Information Authority Chief Says the NHS is
Moving Towards Adopting XML,” The British Journal of
Healthcare Computing and Information Management. December
2000; 17(10): pp.6-7.
17. Box, E., Ehnebuske, D., Kakivaya, G., Layman, A.,
Mendelsohn, N., Nielsen, H. F., Thatte, S. and Winer, D.
Simple Object Access Protocol (SOAP) 1.1, May 2000.
Available at http://www.w3.org/TR/SOAP .
18. Boris, L., www.eaijournal.com/Article.asp, 2001,
http://www-106.ibm.com/developerworks/webservices/library/ws-
bpel/.
19. Bray, T., Paoli, J. and Sperberg, C. Extensible Markup
Language (XML) 1.0, available at
http://www.w3.org/TR/1998/REC-xml-19980210, 1998.
20. Benatallah, B., Dumas, M., Fauvet, C. and Rabhi, F.
“Towards Patterns of Web Services Composition.”, In
Gorlatch, S. and Rabhi, F. (editors), Patterns and
Skeletons for Parallel and Distributed Computing. Springer
Verlag, UK, Nov. 2002.
21. Berners, T., Hendler, J. and Lassila, O. The Semantic Web,
Scienti_c Ameri-can, May 2001.
22. Brickley, D. and Guha, R., Resource Description Framework
(RDF) Model and Syntax Speci_cation, W3C Recommendation
submitted 22, February 1999
http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/, May
2002.
23. Curbera, F., Goland, Y., Klein, J., Leymann, F., Roller,
D., Thatte, S. and Weer-awarana, S. Business Process
Execution Language for Web Services,
Version 1.0, July 2001.
24. Cauldwell, P.,Chawla, R.,Chopra, V. and Damschen G.”
Professional XML Web Services”, Wrox Press Inc., 2001.
25. Cover,R., Web Services Flow Language (WSFL), available at
http://xml. coverpages.org/wsfl.html.
26. Christensen, E., Curbera, F., Meredith, G., and
Weerawarana, S., Web services description language(WSDL)
1.1. http://www.w3.org/TR/wsdl, 2001.
27. Dean, M., Connolly, D., van Harmelen, F., Hendler, J.,
Horrocks, I., McGuinness, D.L., Patel-Schneider P. F., and
Stein L. A., Web Ontology Lan-guage (OWL) Reference Version
1.0. W3C Working Draft 12 November 2002
http://www.w3.org/TR/2002/WD-owl-ref-20021112/.
28. DAML Services Coalition. DAML-:Web Service Description for
the SemanticWeb.In The First International Semantic Web
Conference (ISWC), June 2002.
29. Rudrof, D. and Tost, A., Integrate enterprise applications
with Web services and J2EE, http://www-
106.ibm.com/developerworks/webservices/
library/ws-eai/, 2002.
30. Hunter, D., Cagle, K., Dix, C., Kovack, R., Pinnock, J. and
Rafer, J., Beginning XML, 2002.
31. Govatos, G. ”UDDI is Yellow Pages of Web Services”,
Network World, May 2002.
32. Gudgin, M., Hadley, J., Moreau, J. and Nielsen, H.F.,SOAP
Version 1.2, World Wide Web Consortium(W3C),July
2001,available at
http://www.w3.org/TR/2001/WD-soap12-20010709/.
33. Bequet, H., Kunnumpurath, M.M., Rhody, S. and Tost, A.,
Beginning Java Web Services, wrox,2002.
34. Horrocks, I., Harmelen, F., Schneider, P., Berners, T.,
Brick-ley, D., Connoly, D., Dean, M., Decker, S., Fensel,
D., Hayes, P., Hein, J., Hendler,J., Lassila, O.,
McGuinness, D., and Stein, L.A., DAML+OIL, 2001.
http://www.daml.org/2001/03/daml+oil-index.html.
35. Jones, R. “Pathology Messaging – to XML or not to XML? ”
The British Journal of Healthcare Computing and Information
Management., October 2000; 17(8):pp.32-35.
36. Krupczak, B., Calvert, K. and Ammar, M.,”Implementing
Protocols in Java: The Price of Portability”
37. Laurence, P.G.,”Creating Web Servicws With J2EE:iPlanet
and Sun ONE,” 2001, Sun’s 2001 Worldwide Java Developer
Conference.
38. Juric, B., Basha, S., Leander, R. and Nagappan, R., J2EE
EAI, wrox, 2001.
39. Mao, Z. M., Brewer, E. A., and Katz, R. H., “Fault-
tolerant, Scalable, Wide-Area Internet Service
Composition.”, U.C. Berkeley TR UCB//CSD-01-1129, Jan.
2001.
40. Maruyama, H., Tamura, K. and Uramoto, N., XML and Java
Development Web Application, Addison-Wesley, 1999.
41. McIlraith, S. and Son, T. Adapting Golog for Composition of
Semantic Web Services, 2002.
42. MSDN Online Web Workshop, Microsoft Corp, Benefiting from
XML, available at
http://msdn.microsoft.com/xml/general/benefits.asp.
43. Nunamaker, J.F., “Build and Learn, Evaluate and Learn”,
Informatica, 1992, pp1-5.
43. Frementle, P., Web services invocation framework,
http://www-106.ib
m.com/developerworks/webservices/library/ws-wsif3.html,
2002.
44. Plummer, D. and Smith, D., “Web Services and Software E-
Services: What’s in a Name?”, Application Integration and
Middleware Strategies Research Note COM-12-0101, Gartner
Group, 2000.
45. Paolucci, M., Kawmura, T., Payne, T., and Sycara, K.,
Semantic Matching of WebServices Capabilities, 2002.
46. Roberts-Witt, S.L.,”Warm Up;The pent-up demand for and
easy way to develop applications and tie them together is
driving web services forward,” PC Magazine,June 2002,
pp.12.
47. Russell, D., “Electronic Business XML:Marking Web Service \
Work for Business,” Web Services Journal, June 2001, pp.16-
18.
49. Scott-Morton, M.S., “The State of the Art of Research,”
The Information Systems Research, Poston:Harvard Business
School Press, 1984, pp.13-41.
48. Sergeant, A. and Yang, B., “The Provision of Online Public
Service Data with XML”, Current Perspectives in Healthcare
Computing, 2002, pp.257-263
49. Sheng, Q. Z., Benatallah, B., Dumas, M., and Mak, E.,
“SELF-SERV: A Plat-form for Rapid Composition of Web
Services in a Peer-to-Peer Environment,” In Demo Session
of the 28th Intl. Conf. on Very Large Databases, Sep. 2002.
50. Sun Microsystems, Inc., http://java.sun.com, 2001.
51. Sun Microsystems, Inc., Mountain View, California. Java
Connector Architecture,available at
http://java.sun.com/j2ee/connector, Nov. 2002.
52. Vogel, A.,”Building Enterprise Application for the Net
with EJB,CORBA and XML”, Inprise Corporation, 1999.
53. Tidwell, D., Tutorial: XML programming in Java,
developerWorks XML Team, IBM Corp.,Sep. 1999.
54. Tidwell, D., Snell, J. and Kulchenko, P., Programming Web
Services with SOAP, First Edion, O’really, Dec. 2001.
55. UDDI Organization, http://www.uddi.org, 2000.
56. Web Services Description Language (WSDL) 1.1 W3C Note 15
March 2001. Available at http://www.w3.org/TR/wsdl.html.
57. W3C Organization, http://www.w3.org, 2001.
58. W3C XML Encryption Syntax and Processing, see
http: //www.w3c.org/Encryption/2001/03/12-proposal.html.
59. W3C Recommendation, Extensible Markup Language(XML) 1.0
(Second Edition); see http://www.w3.org/TR/2000/REC-xml-
20001006.html, 2002.
60. Web Services Description Language (WSDL) 1.1, Available at
http://www.w3.org/TR/wsdl, 2000.