IBM i - JSMDirect or JSMProxy not working

Refer to:

JSMDirect Program Logic

JSMProxy Program Logic