Update Product DB

Hello every one and thanks in advance for supporting me.
i have to update product qta for variant with size and color option directly from a web service in real time with the main headquarter software.
if there is any sell at the head quarter automatically i want the product qta updated on the site.
is possible?
thanks in advance
Luca Preziuso