摘要:
This paper gives practical solutions for implementing Ajax, JavaScript, and Representational State Transfer (REST)–based Web services and functionality. We need to develop applications that are decoupled that are client code is separate from the server code. Using these approach applications can be easily tested and maintained. In some situations, responses to web service requests are not provided immediately, but rather sometime after the initial request transactions complete. Such asynchronous operations aren't explicitly supported by web services specifications and standards; however, those standards do include the infrastructure and mechanisms on which asynchronous operations can be based. Calling a web service asynchronously instead of performing a complete post back has several advantages, including less network traffic and generally elevated performance. Also with the support of DOM model and XMLHttp Object in major popular browsers, numerous client side AJAX libraries are available to make these calls. The paper examines and compares the typical and Ajax based invocation of web services with remedies to improve the performance of web services.
展开