Referencing the DPWS Libraries

This overview describes how to reference the DPWS Libraries.

The .NET Micro Framework DPWS device stack libraries, MFWsStack.dll and MFDpwsDevice.dll, provide service hosting functionality for a device (the “device stack”). The DPWS client library, MFDpwsClient.dll provides functionality for invoking Web services on a device. A separate library, MFDpwsExtensions.dll, contains the System.Ext.* namespaces, which are partial implementations of certain .NET System.* classes required by the DPWS device stack but not included in the base .NET Micro Framework libraries.

Since not all devices need DPWS functionality, these libraries are not automatically added to .NET Micro Framework projects you create in Visual Studio. Instead, you should manually add references to the DLLs to your project. To do this, follow these steps:

  1. Right-click the References folder in your Visual Studio project.
  2. Choose Add Reference from the context menu
  3. In the Add Reference dialog, choose the .NET tab.
  4. Select MFWsStack.dll in the list, then click OK.
  5. Repeat steps 1 to 3, this time adding MFDpwsExtensions.dll.
  6. If your project is a for a device hosting a service, repeat steps 1 to 3, this time adding MFDpwsDevice.dll.
  7. If your project requires DPWS client functionality, repeat steps 1 to 3, this time adding MFDpwsClient.dll.
Show: