I am quite confused with these terms. As far as I understand
Middleware provides the connection between devices/applications present in heterogeneous system.
Web services provides the methods through which the message can be transferred using the connection developed by middleware.
Am I right?