Proxy Callbacks

If you're using the wwAjaxMethodCallback server control you can optionally have the control create proxy wrappers for all exposed server methods. This makes it super easy to call server methods with a single line of code.

An autogenerated proxy looks something like this embedded into client script:

Proxy Generation

When using the wwAjaxMethodCallback Class the client proxy generation is automatically enabled by default. It works by looking at the target object that handles requests and looking for all methods that have the [CallbackMethod] attribute defined via Reflection.

If you prefer you can surpress the proxy generation by setting the GenerateClientProxyClass property to false.