I have a function defined inside an Oracle package:
CREATE OR REPLACE PACKAGE BODY TESTUSER.TESTPKG as FUNCTION testfunc(n IN NUMBER) RETURN NUMBER as begin
In the past I would use something like to following for the command string:
"{? = CALL JF_TESTUSER.TESTPKG.testFunc(?)}"
See the following article for more information