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.
The service automatically supports callbacks by the wwMethodCallback server and wwMethodCallback client controls which use a specific POST format. Plain REST calls can also be made with the following URL syntax:
MyHandler.ashx?Method=MethodToCall
POST data can then be passed in to act as parameters:
For more information on how to call these handlers see Using wwCallbackHandler with REST Calls.
Note this class defers its actual processing of the JSON Callback methods to the JsonCallbackMethorProcessor which is generic and reusable.
System.Object
Westwind.Web.Controls.wwCallbackHandler
public class wwCallbackHandler : object, IHttpHandler
Member | Description | |
---|---|---|
ProcessRequest | public sealed void ProcessRequest( HttpContext context ); | |
IsReusable | This handler is not thread-safe |