Took a couple more stabs at it myself and it looks like this is ridiculously simple.
service CallRPGService
function hello(name string inout)
{
@IBMiProgram {
programName = "MYRPG",
libraryName = "/QSYS.LIB/*LIBL.LIB/",
parameterAnnotations = [
@AS400Text{length = 40}
],
connectionResourceBindingURI =
"binding:file:RPGProgramCall1#MyConnection"
}
}
end
end
In RUI handler:
call callRPGService.hello(varNameField.text)
using new HttpProxy
returning to myCallBackFunction
onException myExceptionHandler;
Wow. Well done, folks. This is a big, big deal. Now, if we had that wizard to generate the program call definitions...
--Dan
p.s. I'll see about contributing an example to the wiki since I don't think this call-from-RUI pattern is described there.