PlayOnPhone 操作 (EWS)
PlayOnPhone 操作启动出站呼叫并通过电话播放消息。
PlayOnPhone 请求示例
说明
以下 PlayOnPhone 请求示例演示如何形成在手机上播放消息的请求。
代码
<?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/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010" />
</soap:Header>
<soap:Body>
<m:PlayOnPhone>
<m:ItemId Id="AkAjzQTbY/i="/>
<m:DialString>5555551212</m:DialString>
</m:PlayOnPhone>
</soap:Body>
</soap:Envelope>
PlayOnPhone 响应示例
说明
以下示例显示了 对 PlayOnPhone 请求的成功响应。
代码
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
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">
<PlayOnPhoneResponse ResponseClass="Success"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<PhoneCallId Id="ZWMtWYtMY29t"/>
</PlayOnPhoneResponse>
</s:Body>
</s:Envelope>