Refactoring for integrating the Web Service