Using the Communications API with web services