Se ho capito bene quello che devi fare ti occorre un webservice.