Ambient and pervasive networks is a new networking concept that targets forthcoming dynamic communication environments; characterized by presence of a multitude of different wireless devices, radio access technologies and network operators that can form instant inter-network agreements with each other. However, one challenge is the efficient utilization and management of the multi-radio resources by means of effective radio access selection mechanisms for the best reliability communication in heterogeneous networks. This paper presents the design and the implementation of the b3gSOAP service-oriented middleware, b3gSOAP specifically defines a layered communication middleware that underlies standard SOAP-based middleware, hence supporting legacy services while exploiting nowadays pervasive connectivity.