摘要随着我国国民经济的迅猛发展,人们对生活质量的要求也越来越高。节假日出行旅游已然成了人们消费的一大热点,目前的大多数旅游网站都只是各旅行社的旅游网站,也只提供他们自己的旅游线路和报价,这对于那些喜欢自驾游、自由行的人来说无疑是一种约束,所以怎样更好地为人们的个性化旅行提供更多的方便、更多的选择,便是本课题的研究对象。
旅行计划网的设计与实现分为机票搜索、酒店搜索、地图景点搜索等模块。本文便是针对酒店搜索模块展开的研究。毕业设计中采用java开发,继承了java“一次编译,到处运行”的优点。同时系统中采用了JSP应用开发技术,具有查询出行目的城市的所有酒店以及可以查看酒店提供的服务等功能。酒店信息的获取主要通过对携程网站的酒店接口发送HTTP请求体,获得XML文件的返回体进行解析,从而即时的获得酒店的相关信息。19943
关键字 酒店搜索 携程接口 java XML解析
毕业设计说明书(论文)外文摘要
Title Design and implementation of travel plans Network Hotel Search
Abstract
With the rapid development of China's national economy, People for the quality of life has a higher requirement. Holiday travel tourism has already become a hot spot for human consumption. Currently, most tourist sites just belong to some travel agencies ,and just offer their own tours and offer, for those who prefer to drive,exercise is undoubtedly a constraint, so what better to provide for the people and make they have a personalized travel which is more convenient and have more choices, that is the goal of this subject.
Design and implementation of travel plans are pided into air tickets, hotel search, attractions search modules. In this paper,we mainly study the hotel search module. The system using java development, inherited the java "write once, run anywhere" advantages. At the same time ,the system adopt in the JSP application development technology,with searching all hotels in the destination city, and you can view the services the hotel offers . Get hotel information mainly through sending HTTP request body to website Ctrip interface , and return XML file for us ,then parsing XML .Eventually get instant hotel relevant information.
Keywords hotel search Ctrip Interface java XML parsing
目次
1 绪论 1
1.1 课题背景 1
1.2 研究现状 1
1.3 主要工作 2
1.4 本文结构 3
2 相关工具及技术 4
2.1 MyEclipse简介 4
2.2 Tomcat服务器 4
2.3 JSP技术 5
2.4 XML解析 5
2.5 携程酒店API 6
3 需求分析与设计 10
3.1 用户需求 10
3.2 系统设计 10
3.2.1 功能模块 10
3.2.2 工程结构 11
4 系统实现 13
4.1 注册携程联盟 13
4.2 酒店查询 13
4.2.1 HotelSearch请求体 15
4.2.2 XML树形结 17
4.2.2 HotelSearchXML的解析 19
4.2.3 输出及功能演示 22
4.3 酒店详情查询 24
4.3.1 HotelInfo请求体 25
4.3.2 HotelInfoXML的解析 25
4.3.3 输出及功能演示 27 旅行计划网的设计与实现酒店搜索模块:http://www.751com.cn/jisuanji/lunwen_11525.html