Proxy object which allow you to call JSON-RPC methods as if it was Obj-C method. More...
#import <JSONRPCService.h>
Properties | |
JSONRPCService * | service |
the service the proxy acts for |
Proxy object which allow you to call JSON-RPC methods as if it was Obj-C method.
Use the JSONRPCService::proxy méthod to get a proxy object to a JSON-RPC WebService instead of creating it yourself.
Using the proxy object allows you to directly call a JSON-RPC method on a WebService as if it was an Objective-C method like this:
// service is an JSONRPCService object [service.proxy getUsersList]; // equivalent to [service callMethodWithName:@"getUsersList" parameters:nil] [service.proxy echo:mkArray(@"Hello")]; // equivalent to [service callMethodWithName:@"echo" parameters:mkArray(@"Hello")]
It is a nice way to have a somewhat transparent way to manipulate the WebService's API, but has the drawback that it will generate warnings on compilation such as "xxx may not respond to selector yyy" (as the message you will call on this proxy object are not declared but instead automatically forwarded using forwardInvocation:)