Implementation of an optimized solution to the problems of asynchronous and synchronous communication between web services