apisvc: made use of service call to get document from file