Describe a situation where you had to integrate a legacy system with a modern web application. What challenges did you face?