public class WebServiceProxyCall extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebServiceProxyCall.WSDefinition
Webservice definition type, allows defining the argument values for a specific WS call
|
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_BOOLEAN
Web protocol argument/return type
|
static int |
TYPE_BOOLEAN_ARRAY
Web protocol argument/return type
|
static int |
TYPE_BOOLEAN_OBJECT
Web protocol argument/return type
|
static int |
TYPE_BYTE
Web protocol argument/return type
|
static int |
TYPE_BYTE_ARRAY
Web protocol argument/return type
|
static int |
TYPE_BYTE_OBJECT
Web protocol argument/return type
|
static int |
TYPE_CHAR
Web protocol argument/return type
|
static int |
TYPE_CHAR_ARRAY
Web protocol argument/return type
|
static int |
TYPE_CHARACTER_OBJECT
Web protocol argument/return type
|
static int |
TYPE_DOUBLE
Web protocol argument/return type
|
static int |
TYPE_DOUBLE_ARRAY
Web protocol argument/return type
|
static int |
TYPE_DOUBLE_OBJECT
Web protocol argument/return type
|
static int |
TYPE_EXTERNALIABLE
Web protocol argument/return type
|
static int |
TYPE_FLOAT
Web protocol argument/return type
|
static int |
TYPE_FLOAT_ARRAY
Web protocol argument/return type
|
static int |
TYPE_FLOAT_OBJECT
Web protocol argument/return type
|
static int |
TYPE_INT
Web protocol argument/return type
|
static int |
TYPE_INT_ARRAY
Web protocol argument/return type
|
static int |
TYPE_INTEGER_OBJECT
Web protocol argument/return type
|
static int |
TYPE_LONG
Web protocol argument/return type
|
static int |
TYPE_LONG_ARRAY
Web protocol argument/return type
|
static int |
TYPE_LONG_OBJECT
Web protocol argument/return type
|
static int |
TYPE_SHORT
Web protocol argument/return type
|
static int |
TYPE_SHORT_ARRAY
Web protocol argument/return type
|
static int |
TYPE_SHORT_OBJECT
Web protocol argument/return type
|
static int |
TYPE_STRING
Web protocol argument/return type
|
static int |
TYPE_STRING_ARRAY
Web protocol argument/return type
|
static int |
TYPE_VOID
Web protocol argument/return type
|
| Constructor and Description |
|---|
WebServiceProxyCall() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static void |
invokeWebserviceASync(WebServiceProxyCall.WSDefinition def,
Callback call,
Object... arguments)
Invokes a web asynchronously and calls the callback on completion
|
static void |
invokeWebserviceASync(WebServiceProxyCall.WSDefinition def,
SuccessCallback scall,
FailureCallback fcall,
Object... arguments)
Invokes a web asynchronously and calls the callback on completion
|
static Object |
invokeWebserviceSync(WebServiceProxyCall.WSDefinition def,
Object... arguments)
Invokes a webservice synchronously and returns result
|
public static final int TYPE_VOID
public static final int TYPE_BYTE
public static final int TYPE_CHAR
public static final int TYPE_SHORT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_DOUBLE
public static final int TYPE_FLOAT
public static final int TYPE_BOOLEAN
public static final int TYPE_BYTE_OBJECT
public static final int TYPE_CHARACTER_OBJECT
public static final int TYPE_SHORT_OBJECT
public static final int TYPE_INTEGER_OBJECT
public static final int TYPE_LONG_OBJECT
public static final int TYPE_DOUBLE_OBJECT
public static final int TYPE_FLOAT_OBJECT
public static final int TYPE_BOOLEAN_OBJECT
public static final int TYPE_STRING
public static final int TYPE_BYTE_ARRAY
public static final int TYPE_CHAR_ARRAY
public static final int TYPE_SHORT_ARRAY
public static final int TYPE_INT_ARRAY
public static final int TYPE_LONG_ARRAY
public static final int TYPE_DOUBLE_ARRAY
public static final int TYPE_FLOAT_ARRAY
public static final int TYPE_BOOLEAN_ARRAY
public static final int TYPE_STRING_ARRAY
public static final int TYPE_EXTERNALIABLE
public static Object invokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) throws IOException
def - definition of the webservice requestarguments - the arguments to the serviceIOException - an exception in case of a webservice failpublic static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments)
def - definition of the webservice requestscall - the return value callbackfcall - the error callbackarguments - the arguments to the webservicepublic static void invokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments)
def - definition of the webservice requestcall - the return value containing an error callback or valuearguments - the arguments to the webservicepublic static WebServiceProxyCall.WSDefinition defineWebService(String url, String serviceName, int returnType, int... argumentTypes)
url - the url of the webserviceserviceName - the name of the service methodreturnType - the return type for the webservice one of the TYPE_* constantsargumentTypes - the arguments for the webservice using the TYPE_* constants