查看网卡底层状态以及多网卡绑定
2013-07-30 22:58
309 查看
A lot of talking about AJAX is taking place here and there; AJAX is the acronym of "Asynchronous JavaScript and XML", a technology based on XMLHttpRequest, which is now supported by all main browsers. The basic idea is quite simple - and not actually a breakthrough - but it allows updating a page following a server request, without reloading the entire set of data.
We propose a solution based on AJAX that has a great advantage with respect to those commonly found in Internet: calls are made to the Web Services.
This permits:
![](http://lichangwei.iteye.com/upload/attachment/34246/057759dc-ea10-383d-ba64-e304f6daee73.png)
On the server side we only have to expose a Web Service with the required methods (instead of generating dynamic pages incorporating data that are based on a custom syntax or on a generic XML)
On the client side we use the WSDL (Web Service Description Language) to automatically generate a JavaScript proxy class so as to allow using the Web Service return types - that is similar to what Visual Studio does when a Web Reference is added to the solution.
The following diagram shows the SOAP Client workflow for asynchronous calls:
The Client invokes the SOAPClient.invoke method using a JavaScript function and specifying the following:
Web Service URL (pls note that many browsers do not allow cross-domain calls for security reasons)
Web method name
Web method parameter values
Call mode (async = true, sync = false)
CallBack method invoked upon response reception (optional for sync calls)
The SOAPClient.invoke method executes the following operations (numbers refer to the previous diagram)
It gets the WSDL and caches the description for future requests
It prepares and sends a SOAP request to the server (invoking method and parameter values)
It processes the server reply using the WSDL so as to build the corresponding JavaScript objects to be returned
If the call mode is async, the CallBack method is invoked, otherwise it returns the corresponding object
We propose a solution based on AJAX that has a great advantage with respect to those commonly found in Internet: calls are made to the Web Services.
This permits:
![](http://lichangwei.iteye.com/upload/attachment/34246/057759dc-ea10-383d-ba64-e304f6daee73.png)
On the server side we only have to expose a Web Service with the required methods (instead of generating dynamic pages incorporating data that are based on a custom syntax or on a generic XML)
On the client side we use the WSDL (Web Service Description Language) to automatically generate a JavaScript proxy class so as to allow using the Web Service return types - that is similar to what Visual Studio does when a Web Reference is added to the solution.
The following diagram shows the SOAP Client workflow for asynchronous calls:
The Client invokes the SOAPClient.invoke method using a JavaScript function and specifying the following:
Web Service URL (pls note that many browsers do not allow cross-domain calls for security reasons)
Web method name
Web method parameter values
Call mode (async = true, sync = false)
CallBack method invoked upon response reception (optional for sync calls)
The SOAPClient.invoke method executes the following operations (numbers refer to the previous diagram)
It gets the WSDL and caches the description for future requests
It prepares and sends a SOAP request to the server (invoking method and parameter values)
It processes the server reply using the WSDL so as to build the corresponding JavaScript objects to be returned
If the call mode is async, the CallBack method is invoked, otherwise it returns the corresponding object
相关文章推荐
- redis绑定ip以及启动和查看启动状态
- 查看RHEL网卡绑定模式和绑定状态
- JAVA 线程死锁,以及linux 命令和jstack 命令 查看线程死锁状态信息
- linux 查看端口号 以及进程的状态
- Dev控件 TreeList的使用,绑定多级树以及多选框的三种状态
- Linux系统查看服务器型号、CPU、RAM、ROM以及网卡信息
- JDK内置工具-jstack-查看进程的状态以及异常诊断
- rpm的查看安装的应用以及查看mysql的安装状态
- Linux 查看网卡全双工 还是半双工 以及设置网卡为半双工
- 关于文件状态的三种时间,mtine ,ctime , atime 以及查看文件状态stat 和修改文件时间touch
- REDIS学习(6)查看redis状态,以及rdb和aof两种持久化方案的区别
- 查看Linux下网卡状态或 是否连接
- Linux 查看网卡全双工 还是半双工 以及设置网卡为半双工
- Dev控件 TreeList的使用,绑定多级树以及多选框的三种状态
- 查看Linux下网卡状态或是否连接
- GridView相关总结(主键绑定 行高亮 状态替换 多余字符...替代 详情查看 )
- 服务器邮件不能发送 可选方案 以及 端口状态查看与设置
- 查看Linux下网卡连接状态(up还是down)?
- linux子接口以及绑定网卡使用
- 查看文件状态以及级联删除软连接