【发布时间】:2014-11-28 20:11:46
【问题描述】:
我正在向 Office365 发出原始SOAP 请求并尝试获取指定AddressListId 的联系人列表我成功获得了联系人列表,但它不包括我需要的所有其他信息。在我的请求中添加一些其他属性(例如 PhoneNumber)后,服务器会返回 Invalid shape 错误。
这是我的要求:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope 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="Exchange2013" />
</soap:Header>
<soap:Body >
<m:FindPeople>
<m:PersonaShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="persona:DisplayName"/>
<t:FieldURI FieldURI="persona:PhoneNumber"/>
</t:AdditionalProperties>
</m:PersonaShape>
<m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100" Offset="0"/>
<m:ParentFolderId>
<t:AddressListId Id="###-####-####-####"/>
</m:ParentFolderId>
</m:FindPeople>
</soap:Body>
</soap:Envelope>
如何获取每个角色的所有其他信息?
【问题讨论】:
标签: web-services soap exchangewebservices office365