Building a Loosely Coupled Infrastructure for Web Services