ExpandDL

ResolveNames returns matching distribution lists, but it is often desirable to retrieve the members of a distribution list. This is where the ExpandDL Web method comes into play. Let’s look at the basic structure of an ExpandDL request, as shown in Example 6-23.

Example 6-23. Basic structure of ExpandDL

<ExpandDL xmlns=".../messages"
  <Mailbox/>
</ExpandDL>

Another simple Web method. You can expand one single distribution list at a time, as can be seen by the single Mailbox element. Now, what may not be clear is that you can expand both Store and Active Directory distribution lists. The secret to this lies in the Mailbox element.

If the EmailAddress element is filled in, then you are trying to expand an Active Directory distribution list. ...

Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.