Impersonating user with Soap calls RRS feed

  • Question

  • I want to create (and delete) calendar items in Outlook 2007 (and Exchange 2007).

    I do this with soap calls in SOAP UI 5.0.0.

    <soap:Envelope xmlns:xsi=""
          <typ:RequestServerVersion Version="Exchange2010_SP2"/>
        <CreateItem xmlns=""
                    SendMeetingInvitations="SendToAllAndSaveCopy" >
            <t:DistinguishedFolderId Id="calendar"/>
            <t:CalendarItem xmlns="">
              <Subject>Planning Meeting - 1234</Subject>
              <Body BodyType="Text">1234 - Plan the agenda for next week's meeting.</Body>
              <Location>Conference Room 721</Location>

    I created an event in my own calendar (without the typ:ExchangeImpersonation part).

    So now I want to create an event in an other user's calendar.

    I have an admin account, who got al rights to do this. 

    But when I configure my endpoint and Authorization (NTLM) to the admins credentials, I get this as response:

    <s:Envelope xmlns:s="">
             <faultcode xmlns:a="">a:ErrorImpersonateUserDenied</faultcode>
             <faultstring xml:lang="nl-BE">The account does not have permission to impersonate the requested user.</faultstring>
                <e:ResponseCode xmlns:e="">ErrorImpersonateUserDenied</e:ResponseCode>
                <e:Message xmlns:e="">The account does not have permission to impersonate the requested user.</e:Message>

    Admin got all the rigths to do this (normally).

    So how can I create an event in another users calendar, with SOAP calls?

    Is this with the use of typ:ExchangeImpersonation ?


    Wednesday, July 23, 2014 9:30 AM


  • Fixed

    For anyone who wants to know:

        <t:DistinguishedFolderId Id="calendar">

    And login with admin credentials.


    Wednesday, July 23, 2014 10:09 AM