A Service-oriented Architecture for Ambient-Assisted Living