public abstract class WebServiceProxyCall

  1. Object
  2. WebServiceProxyCall
Utility class used by the webservice proxy code to invoke server code

Nested types

class WebServiceProxyCall.WSDefinitionWebservice definition type, allows defining the argument values for a specific WS call

Fields

public static final int TYPE_VOID = 0Web protocol argument/return type
public static final int TYPE_BYTE = 1Web protocol argument/return type
public static final int TYPE_CHAR = 2Web protocol argument/return type
public static final int TYPE_SHORT = 3Web protocol argument/return type
public static final int TYPE_INT = 4Web protocol argument/return type
public static final int TYPE_LONG = 5Web protocol argument/return type
public static final int TYPE_DOUBLE = 6Web protocol argument/return type
public static final int TYPE_FLOAT = 7Web protocol argument/return type
public static final int TYPE_BOOLEAN = 8Web protocol argument/return type
public static final int TYPE_BYTE_OBJECT = 9Web protocol argument/return type
public static final int TYPE_CHARACTER_OBJECT = 10Web protocol argument/return type
public static final int TYPE_SHORT_OBJECT = 11Web protocol argument/return type
public static final int TYPE_INTEGER_OBJECT = 12Web protocol argument/return type
public static final int TYPE_LONG_OBJECT = 13Web protocol argument/return type
public static final int TYPE_DOUBLE_OBJECT = 14Web protocol argument/return type
public static final int TYPE_FLOAT_OBJECT = 15Web protocol argument/return type
public static final int TYPE_BOOLEAN_OBJECT = 16Web protocol argument/return type
public static final int TYPE_STRING = 17Web protocol argument/return type
public static final int TYPE_BYTE_ARRAY = 18Web protocol argument/return type
public static final int TYPE_CHAR_ARRAY = 19Web protocol argument/return type
public static final int TYPE_SHORT_ARRAY = 20Web protocol argument/return type
public static final int TYPE_INT_ARRAY = 21Web protocol argument/return type
public static final int TYPE_LONG_ARRAY = 22Web protocol argument/return type
public static final int TYPE_DOUBLE_ARRAY = 23Web protocol argument/return type
public static final int TYPE_FLOAT_ARRAY = 24Web protocol argument/return type
public static final int TYPE_BOOLEAN_ARRAY = 25Web protocol argument/return type
public static final int TYPE_STRING_ARRAY = 26Web protocol argument/return type
public static final int TYPE_EXTERNALIABLE = 1000Web protocol argument/return type

Constructors

public WebServiceProxyCall()

Methods

public static Object invokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) throws IOExceptionInvokes a webservice synchronously and returns result
public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments)Invokes a web asynchronously and calls the callback on completion
public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments)Invokes a web asynchronously and calls the callback on completion
public static WebServiceProxyCall.WSDefinition defineWebService(String url, String serviceName, int returnType, int... argumentTypes)Creates a webservice definition object which can be used to invoke the webservice.

Inherited methods

Field details

TYPE_VOID

public static final int TYPE_VOID = 0
Web protocol argument/return type

TYPE_BYTE

public static final int TYPE_BYTE = 1
Web protocol argument/return type

TYPE_CHAR

public static final int TYPE_CHAR = 2
Web protocol argument/return type

TYPE_SHORT

public static final int TYPE_SHORT = 3
Web protocol argument/return type

TYPE_INT

public static final int TYPE_INT = 4
Web protocol argument/return type

TYPE_LONG

public static final int TYPE_LONG = 5
Web protocol argument/return type

TYPE_DOUBLE

public static final int TYPE_DOUBLE = 6
Web protocol argument/return type

TYPE_FLOAT

public static final int TYPE_FLOAT = 7
Web protocol argument/return type

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN = 8
Web protocol argument/return type

TYPE_BYTE_OBJECT

public static final int TYPE_BYTE_OBJECT = 9
Web protocol argument/return type

TYPE_CHARACTER_OBJECT

public static final int TYPE_CHARACTER_OBJECT = 10
Web protocol argument/return type

TYPE_SHORT_OBJECT

public static final int TYPE_SHORT_OBJECT = 11
Web protocol argument/return type

TYPE_INTEGER_OBJECT

public static final int TYPE_INTEGER_OBJECT = 12
Web protocol argument/return type

TYPE_LONG_OBJECT

public static final int TYPE_LONG_OBJECT = 13
Web protocol argument/return type

TYPE_DOUBLE_OBJECT

public static final int TYPE_DOUBLE_OBJECT = 14
Web protocol argument/return type

TYPE_FLOAT_OBJECT

public static final int TYPE_FLOAT_OBJECT = 15
Web protocol argument/return type

TYPE_BOOLEAN_OBJECT

public static final int TYPE_BOOLEAN_OBJECT = 16
Web protocol argument/return type

TYPE_STRING

public static final int TYPE_STRING = 17
Web protocol argument/return type

TYPE_BYTE_ARRAY

public static final int TYPE_BYTE_ARRAY = 18
Web protocol argument/return type

TYPE_CHAR_ARRAY

public static final int TYPE_CHAR_ARRAY = 19
Web protocol argument/return type

TYPE_SHORT_ARRAY

public static final int TYPE_SHORT_ARRAY = 20
Web protocol argument/return type

TYPE_INT_ARRAY

public static final int TYPE_INT_ARRAY = 21
Web protocol argument/return type

TYPE_LONG_ARRAY

public static final int TYPE_LONG_ARRAY = 22
Web protocol argument/return type

TYPE_DOUBLE_ARRAY

public static final int TYPE_DOUBLE_ARRAY = 23
Web protocol argument/return type

TYPE_FLOAT_ARRAY

public static final int TYPE_FLOAT_ARRAY = 24
Web protocol argument/return type

TYPE_BOOLEAN_ARRAY

public static final int TYPE_BOOLEAN_ARRAY = 25
Web protocol argument/return type

TYPE_STRING_ARRAY

public static final int TYPE_STRING_ARRAY = 26
Web protocol argument/return type

TYPE_EXTERNALIABLE

public static final int TYPE_EXTERNALIABLE = 1000
Web protocol argument/return type

Constructor details

WebServiceProxyCall

public WebServiceProxyCall()

Method details

invokeWebserviceSync

public static Object invokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) throws IOException
Invokes a webservice synchronously and returns result

Parameters

def WebServiceProxyCall.WSDefinition
definition of the webservice request
arguments Object...
the arguments to the service

Returns

the value of the sync call

Throws

IOException
an exception in case of a webservice fail

invokeWebserviceASync

public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments)
Invokes a web asynchronously and calls the callback on completion

Parameters

def WebServiceProxyCall.WSDefinition
definition of the webservice request
scall SuccessCallback
the return value callback
fcall FailureCallback
the error callback
arguments Object...
the arguments to the webservice

invokeWebserviceASync

public static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments)
Invokes a web asynchronously and calls the callback on completion

Parameters

def WebServiceProxyCall.WSDefinition
definition of the webservice request
call Callback
the return value containing an error callback or value
arguments Object...
the arguments to the webservice

defineWebService

public static WebServiceProxyCall.WSDefinition defineWebService(String url, String serviceName, int returnType, int... argumentTypes)
Creates a webservice definition object which can be used to invoke the webservice.

Parameters

url String
the url of the webservice
serviceName String
the name of the service method
returnType int
the return type for the webservice one of the TYPE_* constants
argumentTypes int...
the arguments for the webservice using the TYPE_* constants

Returns

a WSDefinition object