Document webservice protocol