Share via


Loading an Application Manifest

 
Communications Server 2007 Server SDK Documentation

Loading an Application Manifest

For Microsoft SIP Processing Language (MSPL) script applications, load the application manifest manually using the Microsoft Management Console. See the section "Adding Script-Only Applications" in the Microsoft Office Communications Server 2007 Administration Guide for more information.

Note????Script-only applications cannot be loaded directly through WMI.

For SIP managed code applications, load the application manifest using the ApplicationManifest class, and compile the manifest by calling the ApplicationManifest.Compile method, as illustrated in the following code:

  [C#]
ResourceManager myResourceManager = new ResourceManager(MyApplicationType);
string appManifestXml = myResourceManager.GetString("appManifest");

ApplicationManifest myAppManifest = ApplicationManifest.CreateFromString(appManifestXml);
try {
  myAppManifest.Compile();
}
catch (CompilerErrorException cee) {
  Console.WriteLine("Failed to compile.");
  foreach (string message in cee.ErrorMessages) {
      Console.WriteLine(message);
  }
  return;
}

FakePre-388b3cede8d04d6a87e0b46783be019f-6feb2fb19ea445c98448f5a7716c8c89

The compiled application manifest is presented to the server agent, which uses the application attributes along with the rules defined in the MSPL message filter to dispatch only those SIP messages that the application is designed to process. All other message are proxied, or dropped (if so specified).

See Also

SIP Application Manifests
Creating an Application Manifest
SIP Application Manifest Example

  
  What did you think of this topic?
  © 2007 Microsoft Corporation. All rights reserved.