This provider is the most feature-rich of the samples. It illustrates a provider with multiple methods that interacts with a published API. It is an example of how to expose an existing API to the provisioning platform.
Windows Media Services must be installed prior to testing the Windows Media Provider. There are references made within the project to the Media Services object, and the project will not build without these references resolved.
To register the Windows Media Sample in Visual Studio 2005
You can open up Provisioning Manager and import this namespace, or go to a command prompt, navigate to <SystemDrive>:Program Files\Microsoft Hosting\Development\Samples\VBNet\2.0\WindowsMedia and use the 'provnamespace' command to register the namespace with MPS with the following command: Provnamespace WindowsMedia_ns.xml
To register the Windows Media Sample in Visual Studio 2005 using MPS SDK add-in features
The MPS Output window should indicate that the namespace was registered successfully. A new namespace beginning with the letters "SDK" should now show up in the Provisioning Manager, and refreshing the Namespace Browser window in Visual Studio should yield the same result.
Now a request can be submitted from the command line in order to test the provider. Create a sample request, similar to the following:
Submit the request to MPS, and the response from MPS should be similar to the following sample:
A test can also be run from within Visual Studio 2005 by opening the MPS Development Tools.
To test the Windows Media Sample Provider within Visual Studio 2005