public abstract class WebServiceProxyCall
- Object
- WebServiceProxyCall
Utility class used by the webservice proxy code to invoke server code
Nested types
class WebServiceProxyCall.WSDefinition | Webservice definition type, allows defining the argument values for a specific WS call |
Fields
Constructors
public WebServiceProxyCall() |
Methods
Inherited methods
Field details
TYPE_VOID
public static final int TYPE_VOID = 0Web protocol argument/return type
TYPE_BYTE
public static final int TYPE_BYTE = 1Web protocol argument/return type
TYPE_CHAR
public static final int TYPE_CHAR = 2Web protocol argument/return type
TYPE_SHORT
public static final int TYPE_SHORT = 3Web protocol argument/return type
TYPE_INT
public static final int TYPE_INT = 4Web protocol argument/return type
TYPE_LONG
public static final int TYPE_LONG = 5Web protocol argument/return type
TYPE_DOUBLE
public static final int TYPE_DOUBLE = 6Web protocol argument/return type
TYPE_FLOAT
public static final int TYPE_FLOAT = 7Web protocol argument/return type
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN = 8Web protocol argument/return type
TYPE_BYTE_OBJECT
public static final int TYPE_BYTE_OBJECT = 9Web protocol argument/return type
TYPE_CHARACTER_OBJECT
public static final int TYPE_CHARACTER_OBJECT = 10Web protocol argument/return type
TYPE_SHORT_OBJECT
public static final int TYPE_SHORT_OBJECT = 11Web protocol argument/return type
TYPE_INTEGER_OBJECT
public static final int TYPE_INTEGER_OBJECT = 12Web protocol argument/return type
TYPE_LONG_OBJECT
public static final int TYPE_LONG_OBJECT = 13Web protocol argument/return type
TYPE_DOUBLE_OBJECT
public static final int TYPE_DOUBLE_OBJECT = 14Web protocol argument/return type
TYPE_FLOAT_OBJECT
public static final int TYPE_FLOAT_OBJECT = 15Web protocol argument/return type
TYPE_BOOLEAN_OBJECT
public static final int TYPE_BOOLEAN_OBJECT = 16Web protocol argument/return type
TYPE_STRING
public static final int TYPE_STRING = 17Web protocol argument/return type
TYPE_BYTE_ARRAY
public static final int TYPE_BYTE_ARRAY = 18Web protocol argument/return type
TYPE_CHAR_ARRAY
public static final int TYPE_CHAR_ARRAY = 19Web protocol argument/return type
TYPE_SHORT_ARRAY
public static final int TYPE_SHORT_ARRAY = 20Web protocol argument/return type
TYPE_INT_ARRAY
public static final int TYPE_INT_ARRAY = 21Web protocol argument/return type
TYPE_LONG_ARRAY
public static final int TYPE_LONG_ARRAY = 22Web protocol argument/return type
TYPE_DOUBLE_ARRAY
public static final int TYPE_DOUBLE_ARRAY = 23Web protocol argument/return type
TYPE_FLOAT_ARRAY
public static final int TYPE_FLOAT_ARRAY = 24Web protocol argument/return type
TYPE_BOOLEAN_ARRAY
public static final int TYPE_BOOLEAN_ARRAY = 25Web protocol argument/return type
TYPE_STRING_ARRAY
public static final int TYPE_STRING_ARRAY = 26Web protocol argument/return type
TYPE_EXTERNALIABLE
public static final int TYPE_EXTERNALIABLE = 1000Web protocol argument/return type
Constructor details
WebServiceProxyCall
public WebServiceProxyCall()Method details
invokeWebserviceSync
public static Object invokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments)
throws IOExceptionInvokes a webservice synchronously and returns result
Parameters
defWebServiceProxyCall.WSDefinition- definition of the webservice request
argumentsObject...- 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
defWebServiceProxyCall.WSDefinition- definition of the webservice request
scallSuccessCallback- the return value callback
fcallFailureCallback- the error callback
argumentsObject...- 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
defWebServiceProxyCall.WSDefinition- definition of the webservice request
callCallback- the return value containing an error callback or value
argumentsObject...- 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
urlString- the url of the webservice
serviceNameString- the name of the service method
returnTypeint- the return type for the webservice one of the TYPE_* constants
argumentTypesint...- the arguments for the webservice using the TYPE_* constants
Returns
a WSDefinition object