In your example, PageMethods.DoSomething should have a return value equal to WebRequest if it is an asp.net proxy. This is provided so that you can manipulate the request after it starts (i.e. cancel it, etc.).
add_completed, -. function OnWebRequestCompleted(executor, eventArgs), executor . , executor.getAllResponseHeaders(); ( ) .
, - , ( -, , !).
WebRequest , . , , WebRequest.
- Asp.Net Ajax Web Service WebServiceProxy, - invoke, WebRequest.