Linking a service to a resource