EWS缺少必需的属性"Traversal" [英] EWS The required attribute 'Traversal' is missing

查看:79
本文介绍了EWS缺少必需的属性"Traversal"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

EWS( Exchange Webservice )

<?xml version="1.0"?>
<soap12:Envelope xmlns:soap12="http://schemas.xmlsoap.org/soap/envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:M="http://schemas.microsoft.com/exchange/services/2006/messages" soap12:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:T="http://schemas.microsoft.com/exchange/services/2006/types">
 <soap12:Body>
  <M:FindFolder>
   <request SOAP-ENC:id="1" xsi:type="M:FindFolder" Traversal="Deep">
    <FolderShape xsi:nil="true"/>
    <IndexedPageFolderView SOAP-ENC:id="2" xsi:type="T:IndexedPageViewType" Offset="0" BasePoint="Beginning"/>
    <ParentFolderIds xsi:nil="true"/>
   </request>
   <Impersonation xsi:nil="true"/>
   <S2SAuth xsi:nil="true"/>
   <MailboxCulture xsi:type="xsd:string">de-DE</MailboxCulture>
   <RequestVersion SOAP-ENC:id="3" xsi:type="T:RequestServerVersion"   Version="Exchange2007_SP1"/>
  </M:FindFolder>
 </soap12:Body>
</soap12:Envelope>

并从服务器获取以下xml

    <?xml version="1.0"?>
    <soap11:Envelope xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
     <soap11:Header>
      <t:ServerVersionInfo MajorVersion="8" MinorVersion="3" MajorBuildNumber="245" MinorBuildNumber="0" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
     </soap11:Header>
     <soap11:Body>
      <soap11:Fault>
       <faultcode>soap11:Client</faultcode>
       <faultstring>The request failed schema validation: The required attribute 'Traversal' is missing.</faultstring>
       <detail>
        <e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorSchemaValidation</e:ResponseCode>
        <e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">

The required attribute 'Traversal' is missing.

        </e:Message>
        <e:Line xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">2
        </e:Line>
        <e:Position xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">446
        </e:Position>
       </detail>
      </soap11:Fault>
     </soap11:Body>
    </soap11:Envelope>

那么服务器为什么说缺少遍历?

So why the Server say that Traversal is missing ?

(我也已经使用T:Traversal = Deep T:对类型的名称空间条目进行了测试)

(I also have tested it with the T:Traversal = Deep T: for the namespaceentry for the types)

有人可以帮助我解决这个问题吗?

Can someone can help me with this problem?

推荐答案

Traversal is required on the FindFolder element. Try changing it from...

<M:FindFolder> 
   <!-- ... -->

对此...

<M:FindFolder Traversal="Deep"> 
   <!-- ... -->

Traversal属性

这篇关于EWS缺少必需的属性"Traversal"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆