Click here to Skip to main content
14,971,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
at present i am working on a web project where the request is send from java script using http and the sample code is as following

VB
var request_o; 
var browser = navigator.appName; //find the browser name
if(browser == "Microsoft Internet Explorer")
{
	/* Create the object using MSIE's method */
	request_o = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
	/* Create the object using other browser's method */
	request_o = new XMLHttpRequest();
}
return request_o; //return the object
http.onreadystatechange = getAjaxResponse;
http.send(null);
boal = "";


if we want any new methods to be implemented we are using webservices to call the methods

i need to know which gives the better performance is the old http or the webservices

thanks in advance
Posted

1 solution

Hi a.pkumar, this is a tricky one as always it depends on what you are sending and receiving. You could try using a tool like 'Fiddler' and see the total ms for both approaches. Personally the web service route is cleaner. Have you considered MVC as a solution instead of separate web services?

Yahoo also offers a page perfomance YSlow which would also show you some numbers. FireBug also shows request / response times.

Hope this helps a bit...
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900