By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,380 Members | 1,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,380 IT Pros & Developers. It's quick & easy.

Calling a Web Service from IE

P: n/a
OK so not a JavaScript question but don't know where else to ask and judging
from some of the knowledge I have seen here in the past I reckon someone
here might just have some idea.

When the Web Service URL is called from IE it just returns the wdsl and does
not actually run the Web service. Is there a way of creating a dummy Web
page which would actually run the Web service?

Theoretically calling a Web Service is just an HTTP request so I am trying
to call a Web Service from IE. I know they are not exactly designed to be
called from Internet Explorer but I would like to do this so that I can
speed/load test our Web Service using the Microsoft 'WAS' stress testing
tool.

Thanks,
Nick

Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
NickC wrote:
OK so not a JavaScript question but don't know where else to ask and judging
from some of the knowledge I have seen here in the past I reckon someone
here might just have some idea.

When the Web Service URL is called from IE it just returns the wdsl and does
not actually run the Web service. Is there a way of creating a dummy Web
page which would actually run the Web service?

Theoretically calling a Web Service is just an HTTP request so I am trying
to call a Web Service from IE. I know they are not exactly designed to be
called from Internet Explorer but I would like to do this so that I can
speed/load test our Web Service using the Microsoft 'WAS' stress testing
tool.

Thanks,
Nick


Use the XML HTTPRequest object.

<url: http://jibbering.com/2002/4/httprequest.html />

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #2

P: n/a
On Thu, 10 Jul 2003 13:28:17 +0000 (UTC), "NickC" <me@somewhere.com>
wrote:
When the Web Service URL is called from IE it just returns the wdsl and does
not actually run the Web service. Is there a way of creating a dummy Web
page which would actually run the Web service?


Yes, stop using web-services, and get a more RESTful architecture,
then you wouldn't have this problem....

The http request object will probably do the job, but using it for
stress tesing won't be very fair as you'll have the cost of loading
the page itself aswell it then doing automatic javascript requests
back to the server, but I guess this at least will give errors on the
better side of the issue (underestimating performance)

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3

P: n/a
On Sat, 12 Jul 2003 20:42:09 GMT, ji*@jibbering.com (Jim Ley) wrote:
On Thu, 10 Jul 2003 13:28:17 +0000 (UTC), "NickC" <me@somewhere.com>
wrote:
When the Web Service URL is called from IE it just returns the wdsl and does
not actually run the Web service. Is there a way of creating a dummy Web
page which would actually run the Web service?


Yes, stop using web-services, and get a more RESTful architecture,
then you wouldn't have this problem....

The http request object will probably do the job, but using it for
stress tesing won't be very fair as you'll have the cost of loading
the page itself aswell it then doing automatic javascript requests
back to the server, but I guess this at least will give errors on the
better side of the issue (underestimating performance)

Jim.


You don't have to have the dummy page on the same server though.

Use XMLHTTP as Grant already suggested or try the SOAP Toolkit.
http://msdn.microsoft.com/library/en...lient_6038.asp
http://msdn.microsoft.com/library/de...intro_19bj.asp

Don't have the dummy page create multiple XMLHTTP/SoapClient objects
and send multiple simultaneous requests. Windows attempts to respect
the HTTP standard of a maximum of 2 concurrent connections between the
client and server by limiting the number of concurent connections a
single process can make to any one web server. Your dummy page should
probably only send one request, and you should have multiple instances
of IE with the dummy page (either on one machine or distributed over a
number of machines).

Regards,
Steve
Jul 20 '05 #4

P: n/a
On Sun, 13 Jul 2003 19:37:28 GMT, Steve van Dongen
<st*****@hotmail.com> wrote:
You don't have to have the dummy page on the same server though.


Don't you to put it through MS's stress tester - since it's that that
generates the requests, so the only way to do it would be via firing
them off onload?

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #5

P: n/a
XMLHttp won't help in this case because of the overhead involved in opening
IE and waiting for the onLoad() to run. The stress tester will be hitting
the Web server 100, 200 maybe 500 times per second there is no way IE could
keep up with that; it would require a farm of way more machines than I have
available.

Nick

"Steve van Dongen" <st*****@hotmail.com> wrote in message
news:jd********************************@4ax.com...
On Mon, 14 Jul 2003 03:57:22 GMT, ji*@jibbering.com (Jim Ley) wrote:
On Sun, 13 Jul 2003 19:37:28 GMT, Steve van Dongen
<st*****@hotmail.com> wrote:
You don't have to have the dummy page on the same server though.


Don't you to put it through MS's stress tester - since it's that that
generates the requests, so the only way to do it would be via firing
them off onload?


I dunno, maybe it does have to be on the same server. I've never
heard of this WAS stress tool before. I just assumed you could point
it at whatever URL you wanted and monitor the perf on the server you
were interested in using perfmon.

Regards,
Steve

Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.