我正在microsoft EWS Webservice
工作,我找到了用于计算当前用户数据的解决方案。现在我需要获取global contacts from EWS
。有什么帮助吗?先谢谢。
目前我正在使用以下字符串获取用户数据
<?xml version=\"1.0\" encoding=\"utf-8\"?>\
<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\
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\">\
<soap:Body>\
<ResolveNames xmlns=\"http://schemas.microsoft.com/exchange/services/2006/messages\"\
xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\"\
ReturnFullContactData=\"true\">\
<UnresolvedEntry>smtp:%@@atea.dk</UnresolvedEntry>\
</ResolveNames>\
</soap:Body>\
</soap:Envelope>
答案 0 :(得分:0)
如果要在全局地址列表中搜索联系人,只需将SearchScope设置为ActiveDirectory,请参阅http://msdn.microsoft.com/en-us/library/office/aa565329(v=exchg.150).aspx
例如
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1" />
</soap:Header>
<soap:Body>
<m:ResolveNames ReturnFullContactData="true" SearchScope="ActiveDirectory">
<m:UnresolvedEntry>smtp</m:UnresolvedEntry>
</m:ResolveNames>
</soap:Body>
</soap:Envelope>
使用此方法时要记住的是,它最多只返回100个条目。如果您有一个非常大的目录并拥有Exchange 2013,那么请使用findpeople http://msdn.microsoft.com/en-us/library/office/jj191039(v=exchg.150).aspx代替
干杯 格伦