摘 要
目前,国内已经逐渐的了解了一个新的服务架构模式——SOA,即面向服务的架构。SOA是指将一个应用的业务逻辑或某个单独的功能被模块化并作为服务呈现给客户端。SOA服务具有与平台独立的自描述XML文档。服务的松耦合性是他们的最大优势,使用SOA方式构建的业务解决方案可以很容易的进行更改或扩展。SOA已经被业界普遍认为是未来IT的主流架构,也是我国中间件市场发展的趋势之一。作为客户端一种流行了好多年的技术——RIA,即富互联网应用。RIA是将桌面应用程序交互的用户体验与传统的Web应用的部署灵活性和成本分析结合起来的网络应用程序。RIA的主流技术是Ajax、Flex等。
为了深入学习这些知识,本课题设计以PHP为Web服务器端实现语言,通过使用NuSOAP扩展创建一个使用WSDL描述、使用SOAP协议进行通信的网络电台索引服务,并以Flex创建一个使用该服务的客户端。该系统分为帐户模块、权限模块 国家地区和语言代码等基础数据模块、网络电台信息模块和用户收藏家模块。服务器端最基本的功能是向用户提供一个网路电台查询功能,客户端的最基本的功能是向用户提供一个查询、播放界面,并与服务器端进行通信。
该课题由本人在实习期间从需求分析、系统设计、详细设计到最后的编码、测试均由本人一人承担。本文就按照软件开发过程,从需求分析、系统设计依次展开。最终的成果是完成所有设计工作,并实现Web服务端代码。
关键词 面向服务的架构;富互联网应用;网络电台
Abstract
At present, domestic already gradual understanding new service construction pattern -- SOA, namely Service Oriented Architecture. SOA refers to an application business logical or some independent function presents by the modulation and as the service for the client side. The SOA service has independently with the platform from describes the XML documents. The service loose coupling is their biggest superiority, uses the SOA way construction the service solution to be possible very easy to carry on the change or the expansion. SOA by the field generally was already revealed that will be the future IT mainstream construction, also will be one of our country middleware market development tendencies. Has been popular for many years, RIA, namely rich Internet application, is one kind of the client side technology. RIA is the network application procedure which unifies the tabletop application interactive user experience and the traditional Web application's deployment flexibility and the cost analysis. The RIA mainstream technology is Ajax, Flex and so on.
To study these knowledge thoroughly, this curriculum design as the Web server side implemention language is PHP, through uses the NuSOAP expansion to found one internet radio indexing service which uses the WSDL description, uses the SOAP protocol to carry on the correspondence, and builds the client side by Flex which interacts with the service. This system is divided into the account module, jurisdiction module, essential data module which contains country area code and language code, the internet radio station information module and the user collector module. The server side most basic function is providing the function witch allow user to inquire internet radio stations’ information, the client side most basic function is providing an interface for user to inquiry and play the radios, and carries on the correspondence with the server side.
This curriculum design in my practice period witch is from the requirement analysis, the system design, and the detailed design, until to the final coding, the test is undertaken myself. This article defers to the software development process, spreads from the requirement analysis, the system design, until the last. The final achievement is all project work is completed, and the Web service side is realized.
Keywords service-oriented architecture, rich internet application, network broadcasting station
目 录
摘 要 I
Abstract II
第1章 绪论 1
1.1 课题背景 1
1.2 该课题研究的目的和意义 1
1.3 该课题研究的主要内容 2
第2章 相关介绍 3
2.1 网络电台简介 3
2.2 SOA简介 4
2.2.1 SOA基本原理 6
2.2.2 SOA的关键技术 6
2.2.3 SOA开发优缺点 7
2.2.4 SOA可能带来的效益 8
2.2.5 SOA国内外现状 8
2.3 RIA简介 12
2.4 本章小结 13
第3章 需求分析与系统设计 14
3.1 用户需求描述 14
3.2 需求分析 17
3.2.1 服务功能设计 17
3.2.2 序列图分析 17
3.2.3 类分析 19
3.3 系统设计 20
3.4 存在的风险及应对 21
3.5 预期目标 22
3.6 本章小结 22
第4章 详细设计 23
4.1 数据库设计 23
4.2 Web服务端设计 24
4.2.1 配置管理 25
4.2.2 Web服务Operation的实现 25
4.2.3 Web服务的创建 28
4.3 Flex客户端设计 28
4.4 本章小结 31
第5章 Web服务端实现 32
结 论 35
致 谢 36
参考文献 37
绪论
课题背景
近几年,在企业级应用开发领域,谈论最多的一个词,恐怕非SOA(Service Oriented Architecture,面向服务架构)莫属。SOA是未来IT的主流架构,这已经成为业内各界的共识,也是我国中间件市场未来发展的趋势之一。它能使企业专注于自己的核心业务,从而使其更具竞争力。SOA为发布产品与服务提供了一个崭新的平台与机遇。因此,自己所在的实习单位——大连泛科对面向服务的架构这一技术有潜在需求。
而目前网络电台也如雨后春笋般纷纷涌现。电台种类繁多,如新闻、音乐、游戏等等,甚至都出现了个人的网络电台。可是目前虽然有一些网站收录一些网络电台的播放地址,但是资料不够全面,没有归类,且只针对收听用户,而没有一个针对程序开发人员所使用的编程、查询接口。如新浪电台联盟,龙卷风网络收音机等。
因此,为了研究大连泛科潜在需求的SOA技术,就以网络电台索引服务作为主要内容来制定了该课题设计。
该课题为技术调查项目,不属于公司项目,纯属个人爱好。在不影响正常工作的情况下,所有人力物力支出、所有设计实施、所有进度的安排和执行均有自己一人承担。但是在遇到难题时会求助于自己的校内校外导师和同事。
该课题研究的目的和意义
“SOA给中国所有企业都提供了一个新的机会,特别是中小企业。就像互联网给中小企业提供新的机会一样,今天可以做到利用最新的技术实现更灵活,而中小企业对灵活性的要求是非常多的。中小企业如果不够灵活就将面临大问题,所以SOA倡导的灵活和重用,充分利用已有的资源,这对中小企业的IT应用非常重要。”,IBM软件集团大中华区市场总监左洪说道。
SOA由于其良好的架构和众多的优点,其已经成为软件业架构模式的一种趋势。但SOA并不是只有大型公司才能实施的,它对众多中小企业而言也极其重要。而且根据调查结果,80%的企业都将积极部署SOA。SOA在中国未来几年内必将迅速发展。因此,可以预知,未来几年,企业将大量需要就有SOA知识的软件开发人员。企业也会加大对于员工的相关知识培训,并会制定一些SOA产品、服务计划。
该课题的主要目的不仅是为自己预备SOA等相关知识与经验,从而更好的做出职业生涯规划,而且能将所学知识应用到就业单位的实际项目的开发中,促进就业单位开发出更灵活、更稳定、更优秀的产品。如果该课题能够持续完善下去,则不仅能够推广SOA,RIA(Rich Internet Application,富互联网应用)等技术在中国的发展,更主要的是为普通用户和程序开发人员提供一个使用网络电台更方便的接口,从而更充分的利用网络电台资源。
该课题研究的主要内容
该课题主要研究SOA的概念和相关标准,了解SOA的国内外现状以及实施方法。研究RIA的相关概念和如何使用Flex创建RIA应用;研究Web服务器端的脚步语言PHP的语法及应用方法。
了解网络电台的相关现状及发展前景,并以此为业务内容按照SOA的思想通过PHP设计并实现一个完整的Web 服务。最后通过对该Web服务的调用,使用Flex创建出一个简单的客户端程序,能够搜索、播放网络电台,完成对该服务和站点的管理。
进行相关技术预研、用户分析和系统详细设计是作为重点工作,但也并不是不进行任何编码工作。在保证完成以上工作的前提下,可进行适当的编码实现工作,其中重点是服务端的代码实现,只有在时间充分的情况下才进行客户端的编码工作。
相关介绍
新的服务架构模式——SOA(一)由毕业论文网(www.huoyuandh.com)会员上传。