Writing document for application services