4 Protocol Examples

In this example, the protocol client constructs the following SOAP message to request the conversion of an OwaId to an EwsId.

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Header>

    <t:RequestServerVersion Version="Exchange2010_SP1" />

  </soap:Header>

  <soap:Body>

    <m:ConvertId DestinationFormat="EwsId">

      <m:SourceIds>

        <t:AlternateId Format="OwaId" Id="RgAAAAAzFgecVl%2fWTo7NTrcPscM3BwDHxFWht3DVTrtUQ kRbTXDCAAAAMUgfAADHxFWht3DVTrtUQkRbTXDCAAAAMW98AAAJ" Mailbox="user1@example.com" />

      </m:SourceIds>

    </m:ConvertId>

  </soap:Body>

</soap:Envelope>

The protocol server responds with the converted identifier.

<?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="218" MinorBuildNumber="12" 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">

    <m:ConvertIdResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">

      <m:ResponseMessages>

        <m:ConvertIdResponseMessage ResponseClass="Success">

          <m:ResponseCode>NoError</m:ResponseCode>

          <m:AlternateId xsi:type="t:AlternateIdType" Format="EwsId" Id="AAMkAGE4NTY1YWNjLT JkNmMtNGIwYy1hZWFhLTcwNjYzMDNjYjlkZQBGAAAAAAAzFgecVl/WTo7NTrcPscM3 BwDHxFWht3DVTrtUQkRbTXDCAAAAMUgfAADHxFWht3DVTrtUQkRbTXDCAAAAMW98AAA=" Mailbox="User1@example.com" />

        </m:ConvertIdResponseMessage>

      </m:ResponseMessages>

    </m:ConvertIdResponse>

  </s:Body>

</s:Envelope>

Show: