Web Services on Devices (WSD) expand the existing Web services architecture to resource-constrained devices. Examples like consumer electronics, PDAs, computer peripherals and computing appliances. Web Services on Devices is one of four technologies that consist of the Network Connected Device (NCD). The four technologies are PnP-x, Function Discovery, WSD and Publication Services.
These NCD technologies enable virtually-connected devices (those connected to a computer over a network) to appear and act as if they were physically connected. Such devices are loosely connected to one or more computers and use the network as a communication bus.
Web Service on Devices API (WSDAPI) is an implementation of the Devices Profile for Web Services (DPWS). WSDAPI is implements for Windows Vista and Windows Server 2008. The DPWS force Web Services specifications so clients can easily discover devices. Once a device is discovered, a client can retrieve a description of services hosted on that device and use those services.
Devices are components, usually means hardware, which are attached to the network. Eg. printers, Web cameras, and video systems.
Devices may consist of zero or more services. For eg, a video device may include services that support power on and off, media ejection, play control and video streaming. Play control may support actions such as play, pause, rewind, and fast forward.
Discussion: Discovering And Manipulating Web Services On Devices
WSDAPI expands the local Plug and Play model by providing a client to discover and access a remote device. The devices associated services across a network. The services support discovery, one-way and two-way control messaging, and eventing.
The following figure shown WSDAPI is connecting the client and device together using WSDAPI. WSDAPI is a bridge between client and devices.
DPWS devices declare their occurrence and discover services (if any) using a unique address and a standardized set of XML messages. DPWS clients can use the discovery process as below:
find the device,
enumerate its services, and
connect to those services to perform specific actions.
A WSDAPI client first inquiry the device for complete descriptions of its services, including the service types. The service types such as a scanner service type or a printer service type. The client then controls the device by calling commands defined by a service type. For example like by calling CreatePrintJob on a device with a printer service type. In others, the client also can monitor each state changes in each service by subscribing to events that occur during command execution.
The above figure shown the device is joins to the client 1, client 2 and client 3 network. Client 3 cans discovery and manipulating the device as following steps:
client discovery the devices
device respond the description to the client
client can control the device after receive the description
device will send the event to client from time to time
What is Web Services for Devices?
A web service for devices is a term that is used for a number of products and services and improved the use of Internet technology. Basically, many products that we used in past are built on a foundation of technologies other than the World Wide Web are now improved by Internet connections.
Examples of Common Web Services For Devices
Use Internet to allow remote printing was first web services for devices developed. Formerly, printers need a direct wire connection to a network hub to operating. Now, a person who travels out can send documents to a printer at the home office for printing, and the document print out in few minutes. In a same theory, we can to use the Internet to send a document to a fax machine for printing.
PDA and the Internet phone are also examples of web services for devices. Wireless technology has made the devices to connect with an Internet service provider, browse the web, telephone calls, faxes documents, and send email, all from a handheld device.
Voice over Internet Protocol is also web services for device. Now, traditional land lines can use as part of the equipment to make local, national, and international phone calls using audio streaming across the Internet. Basically, the signal is converted from a standard phone signal to a data stream. It makes its way across the Internet to the point of termination. The point of termination may be a land line using traditional fiber optic technology, a computer or a cell phone connected to the Internet. The devices will be installed with software for making and receiving phone calls. The latest versions of JAVA and XMTL make this process appear seamless to users. It also helps to maintain the integrity of the connections.
Home security and control also an example of web services for devices. Persons who are traveling may use the Internet to manage activities at home, such as turning lights off and on. They also can view images that are captured by security cameras on the premises. The ability to manage home controls is one of the most current developments in web services for devices. This technology will become increasing popular over the next few years.
In general, web services for devices are developed with an eye toward taking. It makes use on something that persons already use, and making better, which means of a connection to the Internet with the devices.