Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In your example, PageMethods.DoSomething should have a return value equal to <a href="http://msdn.microsoft.com/en-gb/library/bb310979.aspx" rel="nofollow noreferrer">WebRequest</a> if it's an asp.net web service proxy. This is provided so that you can manipulate the request after you've initiated it (i.e. cancel it etc).</p> <p>With this class you have an add_completed method which you can use to add a handler for when the web request completes. The signature for the callback is <code>function OnWebRequestCompleted(executor, eventArgs)</code>, and the <code>executor</code> parameter in this enables you to get hold of extra response information. For example, you can get hold of the response headers with <code>executor.getAllResponseHeaders()</code>; which should be a map (named collection) of header names and values.</p> <p>So if you add a handler to the web request's completed event immediately after making the service method call, it should work (there's no web service in the world that can respond faster than two consecutive lines of code!).</p> <p>The previous hyperlink to <a href="http://msdn.microsoft.com/en-gb/library/bb310979.aspx" rel="nofollow noreferrer">WebRequest</a> contains a full example of how wire this up. Notice, however, that this code uses the WebRequest directly.</p> <p>Asp.Net Ajax Web Service proxy classes use the <code>WebServiceProxy</code> class, and each proxy method ultimately call its <code>invoke</code> method, which returns the <code>WebRequest</code> instance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload