I have put together some simple samples which show how to use Document Services API on OSGI platform. Lot of people are familiar with invoking document services on the AEM Forms J2EE platform, but not very familiar with OSGI platform. The attached samples have a sample java code(eclipse project) which make a POST call to AEM .
Please follow the instructions mentioned in the PDF file, to set up the samples.
The sample files are located here