To use this service you need to create an HttpHandler (either .ASHX or a class registered in web.config's httpHandler section) and then add methods with the [CallbackMethod] attribute and that's it. The service accepts inputs via query string and POST data.
If you use the AjaxMethodCallbackControl the process of calling service methods is fully automated including automatic client proxy creation and you can call methods with individual parameters mapped from client to server.
Alternately you can also use plain REST calls that pass either no parameters and purely access POST data, or pass a single JSON object that can act as a single input parameter.
The service can be accessed with:
MyHandler.ashx?CallbackMethod=MethodToCall
POST data can then be passed in to act as parameters:
For more information on how to call these handlers see Using CallbackHandler with REST Calls.
System.Object
Westwind.Web.Controls.CallbackHandler
public class CallbackHandler : object, IHttpHandler
Member | Description | |
---|---|---|
Constructor | ||
ProcessRequest | Handle the actual callback by deferring to JsonCallbackMethodProcessor() public sealed void ProcessRequest( HttpContext context ); | |
IsReusable | This handler is not thread-safe |