Class WebServiceProxyCall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWebservice definition type, allows defining the argument values for a specific WS call -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return typestatic final intWeb protocol argument/return type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefineWebService(String url, String serviceName, int returnType, int... argumentTypes) Creates a webservice definition object which can be used to invoke the webservice.static voidinvokeWebserviceASync(WebServiceProxyCall.WSDefinition def, Callback call, Object... arguments) Invokes a web asynchronously and calls the callback on completionstatic voidinvokeWebserviceASync(WebServiceProxyCall.WSDefinition def, SuccessCallback scall, FailureCallback fcall, Object... arguments) Invokes a web asynchronously and calls the callback on completionstatic ObjectinvokeWebserviceSync(WebServiceProxyCall.WSDefinition def, Object... arguments) Invokes a webservice synchronously and returns result
-
Field Details
-
TYPE_VOID
public static final int TYPE_VOIDWeb protocol argument/return type- See Also:
-
TYPE_BYTE
public static final int TYPE_BYTEWeb protocol argument/return type- See Also:
-
TYPE_CHAR
public static final int TYPE_CHARWeb protocol argument/return type- See Also:
-
TYPE_SHORT
public static final int TYPE_SHORTWeb protocol argument/return type- See Also:
-
TYPE_INT
public static final int TYPE_INTWeb protocol argument/return type- See Also:
-
TYPE_LONG
public static final int TYPE_LONGWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLEWeb protocol argument/return type- See Also:
-
TYPE_FLOAT
public static final int TYPE_FLOATWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEANWeb protocol argument/return type- See Also:
-
TYPE_BYTE_OBJECT
public static final int TYPE_BYTE_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_CHARACTER_OBJECT
public static final int TYPE_CHARACTER_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_SHORT_OBJECT
public static final int TYPE_SHORT_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_INTEGER_OBJECT
public static final int TYPE_INTEGER_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_LONG_OBJECT
public static final int TYPE_LONG_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE_OBJECT
public static final int TYPE_DOUBLE_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_FLOAT_OBJECT
public static final int TYPE_FLOAT_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN_OBJECT
public static final int TYPE_BOOLEAN_OBJECTWeb protocol argument/return type- See Also:
-
TYPE_STRING
public static final int TYPE_STRINGWeb protocol argument/return type- See Also:
-
TYPE_BYTE_ARRAY
public static final int TYPE_BYTE_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_CHAR_ARRAY
public static final int TYPE_CHAR_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_SHORT_ARRAY
public static final int TYPE_SHORT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_INT_ARRAY
public static final int TYPE_INT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_LONG_ARRAY
public static final int TYPE_LONG_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_DOUBLE_ARRAY
public static final int TYPE_DOUBLE_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_FLOAT_ARRAY
public static final int TYPE_FLOAT_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_BOOLEAN_ARRAY
public static final int TYPE_BOOLEAN_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_STRING_ARRAY
public static final int TYPE_STRING_ARRAYWeb protocol argument/return type- See Also:
-
TYPE_EXTERNALIABLE
public static final int TYPE_EXTERNALIABLEWeb protocol argument/return type- See Also:
-
-
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: definition of the webservice request -
arguments: the arguments to the service
Returns
the value of the sync call
Throws
IOException: an exception in case of a webservice fail
- Throws:
IOException
-
-
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: definition of the webservice request -
scall: the return value callback -
fcall: the error callback -
arguments: 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: definition of the webservice request -
call: the return value containing an error callback or value -
arguments: 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: the url of the webservice -
serviceName: the name of the service method -
returnType: the return type for the webservice one of the TYPE_* constants -
argumentTypes: the arguments for the webservice using the TYPE_* constants
Returns
a WSDefinition object
-
-