Consuming a document service