摘要
为了解决站点集成天气预报数据并保持站点风格,提出了一种基于面向服务架构的解决方案。在ASP环境下通过构造SOAP封装包,以XMLHTTP发送SOAP请求到远程WebService接口,本地应用服务器创建XML文档并加载WebService返回的地区代码数据。浏览器端根据该地区代码表,通过二级联动下拉菜单形式选择地区后发送地区代码到远程天气WebService接口,然后根据响应XML的节点数据,绑定在页面上。
To resolve the problems of websites to integrate weather forecast data and keep the original style, the paper presents a solution based on service oriented architecture with ASP technology, which build simple object access protocol(SOAP) package and sent the SOAP request to remote WebService via XMLHTTP, then create a XML document in local application server to load the response area data of WebService. The area code was sent to remote weather forecast WebService as parameters after the selection from double-level interactive pull-down menu in browser, after the data process procedure, the node data of response XML was bind into the corresponding webpage by response. write method of ASP.
出处
《中国科技信息》
2012年第11期113-114,共2页
China Science and Technology Information