none
[E2010][EWS-XML][JAVA]How to list all resource mailboxes (meeting room) in Exchange web service 2010 use EWS API RRS feed

Answers

  • Oultook has its own directory interfaces it doesn't use EWS to get this information. If your going to use only EWS you need to get your administrator to create a roomlist for you to use. EWS has only very limited access to the Directory eg ResolveName, Exanddl

    Otherwise as i said you can access Active Directory directly using LDAP and System.DirectoryServices and use the msExchRecipientDisplayType property to find Meeting Room or resource eg http://gsexdev.blogspot.com.au/2007/04/webservice-to-find-room-and-equipment.html

    Cheers
    Glen

    • Marked as answer by shinkt Wednesday, April 18, 2012 7:18 AM
    Wednesday, April 18, 2012 5:29 AM

All replies

  • You need to first Create a RoomList see http://technet.microsoft.com/en-us/library/ee633471.aspx

    then you can use the room list operations which are documented with their respective XML at 

    http://msdn.microsoft.com/en-us/library/dd899416%28v=exchg.140%29.aspx

    and

    http://msdn.microsoft.com/en-us/library/dd899415%28v=exchg.140%29.aspx

    Cheers
    Glen

    Tuesday, April 17, 2012 5:53 AM
  • Thanks for your answer but the problem is I don't have administrator permission to create room list. I use GetRoomLists operation but it return no result (but success) like: GetRoomLists returns no results

     Here is my request:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
                   xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
      <soap:Header>
        <t:RequestServerVersion Version ="Exchange2010_SP1"/>
      </soap:Header>
      <soap:Body>
        <m:GetRoomLists />
      </soap:Body>
    </soap:Envelope>

    And response:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Header>
        <h:ServerVersionInfo MajorVersion="14" MinorVersion="1" MajorBuildNumber="355" MinorBuildNumber="2" Version="Exchange2010_SP1" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
      </s:Header>
      <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <GetRoomListsResponse ResponseClass="Success" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
          <ResponseCode>NoError</ResponseCode>
          <m:RoomLists xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" />
        </GetRoomListsResponse>
      </s:Body>
    </s:Envelope>

    How can I solve that?

    Tuesday, April 17, 2012 9:30 AM
  • >> Thanks for your answer but the problem is I don't have administrator permission to create room list. I use GetRoomLists operation but it return no result (but success)

    There are No Roomlists configured by default you need to talk to your administrator and ask them (nicely) to create a Roomlist for your application to use. That's the only way you will be albe to get this to work otherwise the only other solution is to query Active Directory directly using LDAP and System.DirectoryServices.

    Cheers
    Glen

    Wednesday, April 18, 2012 4:40 AM
  • Thanks. But I wonder how outlook can get list room when I choose location. Like this:

    Wednesday, April 18, 2012 5:14 AM
  • Oultook has its own directory interfaces it doesn't use EWS to get this information. If your going to use only EWS you need to get your administrator to create a roomlist for you to use. EWS has only very limited access to the Directory eg ResolveName, Exanddl

    Otherwise as i said you can access Active Directory directly using LDAP and System.DirectoryServices and use the msExchRecipientDisplayType property to find Meeting Room or resource eg http://gsexdev.blogspot.com.au/2007/04/webservice-to-find-room-and-equipment.html

    Cheers
    Glen

    • Marked as answer by shinkt Wednesday, April 18, 2012 7:18 AM
    Wednesday, April 18, 2012 5:29 AM
  • Ok, I got it. Thank you very much!
    Wednesday, April 18, 2012 7:17 AM
  • Thank you for your information. And may I ask, how to create a room list for my application? if i am the administrator.
    Wednesday, June 19, 2013 2:58 AM