Java/.NET Client
Java/.NET Clients must comply with the following rules when calling methods in a Service:
-
Pass arguments into calls as
Object[], which corresponds to the arguments of the method. Note that you must use exactly the typeObject[]. For instance, a set of strings cannot be passed in as aString[]. The array length must match the number of arguments. -
For convenience, if the method takes only a single argument, you pass it directly into the call. It is the equivalent of passing in an
Object[1]with the 0th element being the object. -
If a method takes no arguments, you can call it only with zero-length
Object[]or a null object. -
Autoboxing is used for primitive types. For example, a Service method that returns a
Doubleon the client.