Interface org.as2lib.io.conn.core.client.ClientServiceProxy

Description

ClientServiceProxy handles client requests to a certain service and its responses.

Method Index

invoke(), invokeByName(), invokeByNameAndArguments(), invokeByNameAndArgumentsAndCallback(), invokeByNameAndCallback()

Inherited from BasicInterface

Method Detail

invoke

public function invoke():MethodInvocationCallback

invokeByName

public function invokeByName(methodName:String):MethodInvocationCallback

Invokes the method with passed-in methodName on the service.

Parameters

methodNamethe name of the method to invoke

Return

a callback that can be used to get informed of the response

invokeByNameAndArguments

public function invokeByNameAndArguments(methodName:String, args:Array):MethodInvocationCallback

Invokes the method with passed-in methodName on the service, passing the given args.

Parameters

methodNamethe name of the method to invoke
argsthe arguments to pass to the method

Return

a callback that can be used to get informed of the response

invokeByNameAndCallback

public function invokeByNameAndCallback(methodName:String, callback:MethodInvocationCallback):MethodInvocationCallback

Invokes the method with passed-in methodName on the service.

When the response arrives the appropriate callback method is invoked.

If the passed-in callback is not null or undefined, the returned callback is the same.

Parameters

methodNamethe name of the method to invoke
callbackthe callback that receives the return value or errors

Return

a callback that can be used to get informed of the response

invokeByNameAndArgumentsAndCallback

public function invokeByNameAndArgumentsAndCallback(methodName:String, args:Array, callback:MethodInvocationCallback):MethodInvocationCallback

Invokes the method with passed-in methodName on the service, passing the arguments.

When the response arrives the appropriate callback method is invoked.

If the passed-in callback is not null or undefined, the returned callback is the same.

Parameters

methodNamethe name of the method to be invoked
argsthe arguments to pass to the method
callbackthe callback to receive the response or possible failures

Return

a callback that can be used to get informed of the response