At issue is functions are unable to return arrays. So in the old Web Service
function getemployees returns strct_employees
lstrct_emp = ds_emp.object.data
Doesn't work in 2017 (yet?) Returning it through a reference argument (haven't tried that yet), may not be possible as the service is for third party, non PB apps/services.