The Internet of Things (IoT) is comprised of connected devices which are equipped with sensors, actuators, and applications to provide services for enabling those objects to connect and exchange data. For these connected devices and the IoT network environment, heterogeneous protocols and frameworks have been published and applied to provide novel IoT services in our daily life. On the Internet, most of the services are provided by existing web service providers which are based on the high-performance processor, storage, and stable power supply. However, devices of the IoT are developed for constrained environments using the small size of equipment to provide seamless services ubiquitously. For accessing the constrained devices and existing web service providers using the clients in the IoT networks such as smart homes, the services of servers from the devices and web service providers shall be discovered by the clients using a consistent discovery service. In this paper, a consistent registration and discovery scheme is proposed for the devices and web service providers in the Open Connectivity Foundation (OCF)-based IoT network. For supporting the proposed scheme, an embedded resource directory (RD) server is proposed to provide a consistent registration service that is used for publishing information of devices and web service providers. For the registration, a unified profile format is used that is based on the RESTful API Modeling Language to describes the information of devices and web service providers. Furthermore, the discovery service provides the consistent interface to discover the registered devices and web service providers by the client using the unified user interface. Accordingly, the client can access the resources of devices and web service providers based on the discovered information.Sustainability 2018, 10, 4706 2 of 17 existing services are developed for the hypertext transfer protocol (HTTP)-based web service provider (WSP) on the Internet [4]. However, the IoT frameworks prefer the IoT-specific protocols such as constrained application protocol (CoAP), message queuing telemetry transport (MQTT), and other communication implementations based on those protocols [5]. The IoT system shall support the HTTP-based existing services of WSPs as well as support the constrained and novel IoT-specific protocols. For accessing those massive number of devices in various protocols, the directory service is needed to provide a consistent service to discover the information of objects in the network.In the IoT network, the directory service enables things to be discovered. The functionality of the directory service supports the information of IoT devices to be stored and retrieved [6]. The resource directory (RD) is a server that provides a set of services for enabling the services of discovery in the network where the RD is deployed [7]. The registration and discovery services are the main features of the RD, which are used for registering the information of services to the directory and providing the di...