[Web Service Utils] Refactored to comply with the new generated API.