Service Oriented Architecture for Building Automation