Summary: DPWS is a subset of Windows Rally technology that provides support for Web service on devices that are connected to the network. This article describes DPWS and its support library on the. NET Micro Framework v3.0, and how to use Visual Studio 2008 SP1 to create a Micro host and client on the device of the. NET DPWS framework , and let them run under Windows Vista.
1. What is DPWS?
DPWS, device profile for Web Services, defines the minimum set of interfaces that are used on a resource-limited terminal to implement a secure Web service. DPWS Client class libraries (WSDAPI) are built into Windows Vista, and devices that support DPWS (such as some common DPWS-enabled printers) automatically appear in Windows Vista Network Explorer, as Windows XP can discover the same devices as UPnP. In a way, DPWS is the UPnP Web service implementation. The Dwps architecture is shown in the following illustration:
Tips for more information on DPWS please refer to the DPWS manual, which you can download at the following link: http://schemas.xmlsoap.org/ws/2006/02/devprof/
2. The DPWs class library on the. Net Micro Framework
The DPWS host class library (MFDpwsDevice.dll and MFWsStack.dll) includes the following namespaces:
| namespace |
description |
| dpws.device |
|
| contains a class that creates and manages event sources and controls host service endpoints, actions, and events. Included in MFDpwsDevice.dll |
| provides an action class that manages terminal servers. Included in MFWsStack.dll |
| contains classes that return error prompts when class generation is processed. Included in MFWsStack.dll |
| contains the mtom contained in the SOAP message in MFWsStack.dll |
| ws.services.soapThe |
|
| contains a class that provides basic network services. Included in MFWsStack.dll |
| Provides a class that shows the debug output, displays the duration, and validates the URIs based on UUIDs. Included in MFWsStack.dll |
| contains classes for processing ws-addressing header information. Included in MFWsStack.dll |
| contains classes that are used to work with XML. Included in MFWsStack.dll |