Calling a Web Service from IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NickC

    Calling a Web Service from IE

    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



  • Grant Wagner

    #2
    Re: Calling a Web Service from IE

    NickC wrote:
    [color=blue]
    > 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[/color]

    Use the XML HTTPRequest object.

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

    --
    | Grant Wagner <gwagner@agrico reunited.com>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *


    * Internet Explorer DOM Reference available at:
    *
    Gain technical skills through documentation and training, earn certifications and connect with the community


    * 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


    Comment

    • Jim Ley

      #3
      Re: Calling a Web Service from IE

      On Thu, 10 Jul 2003 13:28:17 +0000 (UTC), "NickC" <me@somewhere.c om>
      wrote:
      [color=blue]
      >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?[/color]

      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 (underestimatin g performance)

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

      Comment

      • Steve van Dongen

        #4
        Re: Calling a Web Service from IE

        On Sat, 12 Jul 2003 20:42:09 GMT, jim@jibbering.c om (Jim Ley) wrote:
        [color=blue]
        >On Thu, 10 Jul 2003 13:28:17 +0000 (UTC), "NickC" <me@somewhere.c om>
        >wrote:
        >[color=green]
        >>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?[/color]
        >
        >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 (underestimatin g performance)
        >
        >Jim.[/color]

        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.
        Gain technical skills through documentation and training, earn certifications and connect with the community



        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

        Comment

        • Jim Ley

          #5
          Re: Calling a Web Service from IE

          On Sun, 13 Jul 2003 19:37:28 GMT, Steve van Dongen
          <stevevd@hotmai l.com> wrote:
          [color=blue]
          >You don't have to have the dummy page on the same server though.[/color]

          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.javas cript FAQ - http://jibbering.com/faq/

          Comment

          • NickC

            #6
            Re: Calling a Web Service from IE

            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" <stevevd@hotmai l.com> wrote in message
            news:jdn4hvov8e 864nvfp87ggsntf b4u46snfq@4ax.c om...[color=blue]
            > On Mon, 14 Jul 2003 03:57:22 GMT, jim@jibbering.c om (Jim Ley) wrote:
            >[color=green]
            > >On Sun, 13 Jul 2003 19:37:28 GMT, Steve van Dongen
            > ><stevevd@hotma il.com> wrote:
            > >[color=darkred]
            > >>You don't have to have the dummy page on the same server though.[/color]
            > >
            > >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?[/color]
            >
            > 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[/color]


            Comment

            Working...