One of the main aims of the pervasive systems is to be able to adapt themselves in execution time to the changes in the number of resources available, the mobility of the users, variability in the needs of the users and failures of the system. This work presents HoCa, a multi-agent based architecture designed to facilitate the development of pervasive systems. HoCa presents a new model where multi-agent systems and service oriented architectures are integrated to facilitate compatible services. HoCa has been applied to case study in a real scenario, aimed to provide automatic assistance to dependent people at their home, and the results obtained are presented in this paper.