Well the reason the following link is not working for you is because you have the "services" package in the URL, but retrieveData.xsjs is not in that package, it is in the data package. Only your xsodata file is in the services package.
"hostname:80<instance#>/workspace/session/a00/data/services/retrieveData.xsjs"
Cheers,
Rich Heilman