// Create the method request using the default context, the name of
// the method, the NVList argument list, and the NamedValue for the
// result. Then invoke the method by calling invoke() on the Request.
Request thisReq =
server._create_request(ctx, "myFunction", argList, resultVal, null, null);
thisReq.invoke();
assertTrue (nvArg2.value ().extract_long () == nvArg1.value ().extract_long ());
// Get the return value from the Request object and output results.
result = thisReq.result().value();