摘要
XMLHttpRequest(IE for XMLHTTP)对象是目前创建更富有交互性客户端的Ajax Web应用程序的关键。但在实际使用此对象跨域调用Web服务时在网络连接上却会受到Web浏览器的严重限制。本文利用ASP.NET AJAX框架设计并实现了一种通用的客户端跨域调用Web服务的方法。其主要工作原理是在本地服务器上建立服务代理来转发客户端的网络请求到异域的Web服务,而且使得客户端能够传递复杂数据并且安全地跨域调用Web服务。
XMLHttpRequest object(IE for XMLHTTP)is the key for creating a more interactive client especially in Ajax Web applications.However,in actual application,Cross-domain calling Web Services will be subject to the browsers severely restricted when use this object.In this paper,With the help of ASP.NET AJAX framework,make analysis and proposed a feasible and generic method:Namely through the establishment of Self-Service agent to forward a request to the Cross-domain network of Web Services.which make the client to be able to make a more secure and reliable transmission of complex data and the way in Cross-Domain Web services calling.
出处
《微计算机信息》
2010年第12期171-172,194,共3页
Control & Automation
基金
广州市科技型中小企业创新基金项目(No.2007V43C0091)资助