A Web-oriented architecture using REST framework is proposed to enable warehouse objects to communicate over the Web. In the proposed mechanism, the smart warehouse consists of a data collection module and an administrative module. The former includes a collection of radio-frequency identification sensors to read RFID tags of the products, wireless sensors for operational data collection, and the actuators. It is responsible for the data collection process of products and goods stored in the warehouse as well as the collection of operational parameters, i.e. temperature, humidity, air quality, and pressure. The latter acts as the brain of the smart warehouse by processing data, organizing data, generating events, and executing actions. The warehouse user is provided with the environment to control the functionality of various sensors, things, appliances, and HAVC system of warehouse through the Web. An event decision system is built on top of the Web architecture to control real-time processing of the sensors, things, etc. In the proposed architecture, the smart gateway consists of two layers, namely transport module (TM) and device service module (DSM). The combination of TM and DSM creates the device controller for embedded devices operating on proprietary protocols. The proposed system is simulated and evaluated in various scenarios in context of discovery time, response time, and transmission failure. Its effect is seen in the form of improved performance of warehouse in quick interaction and in high accuracy as well.