AbstractClientServiceProxy offers default implementations of some methods
needed when implemnting the ClientServiceProxy interface.
public function invokeByName(methodName:String):MethodInvocationCallback
Invokes the method with passed-in methodName on the service.
The invocation is done by forwardning to the
method passing an empty arguments array.
methodName | the name of the method to invoke |
a callback that can be used to get informed of the response
public function invokeByNameAndArguments(methodName:String, args:Array):MethodInvocationCallback
Invokes the method with passed-in methodName and args on the
service.
The response of the method invocation is delegated to the appropriate method
on the returned callback. This is either the onReturn method when no
error occured. Or the onError method in case something went wrong.
The invocation is done by forwardning to the
method passing an empty arguments array.
methodName | the name of the method to invoke on the service |
args | the arguments that are passed to the method as parameters |
the callback that handles the response
public function invokeByNameAndCallback(methodName:String, callback:MethodInvocationCallback):MethodInvocationCallback
Invokes the the method with passed-in method on the service.
When the response arrives the appropriate callback method is invoked.
If the passed-in callback is not null, the returned callback
is the same instance.
The invocation is done by forwardning to the
method passing an empty arguments array.
methodName | the name of the method to invoke |
callback | the callback that receives the return value or errors |
a callback that can be used to get informed of the response