View difference between Paste ID: 55x2d2Ht and Zi6hLSKm
SHOW: | | - or go back to the newest paste.
1
Request
2
-----------------
3
POST https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1
4
Authorization: Bearer xxxxxx (omitted)
5
Content-Type: text/xml; charset=utf-8
6
Host: outlook.office365.com
7
Content-Length: 1262
8
9
<?xml version="1.0" encoding="utf-8"?>
10
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
12
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
13
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
14
  <soap:Header>
15
    <t:RequestServerVersion Version="Exchange2013" />
16
  </soap:Header>
17
  <soap:Body>
18
    <UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AutoResolve"
19
    xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
20
      <ItemChanges>
21
        <t:ItemChange>
22
          <t:ItemId Id = "AAMkAGI3NDEzZjRhLWU3ZjktNGViNy04MTI1LWFhOWRiZDRlY2QwNABGAAAAAADBaXFYA4KPQqsQBpmZF2+2BwAa6KJzOcvaRKcc5UfLbF5tAAAA4fK1AAACk4HLLuxASqDPNieBkIv8AANIKlICAAA=" ChangeKey="CQAAABYAAAACk4HLLuxASqDPNieBkIv8AANIb3mG"/>
23
          <t:Updates>
24
25
            <t:SetItemField>
26
              <t:FieldURI FieldURI = "item:Categories" />
27
              <t:Message>
28
                <t:Categories>
29
                  <t:String>Workout</t:String>
30
                </t:Categories>
31
              </t:Message>
32
            </t:SetItemField>
33
          </t:Updates>
34
        </t:ItemChange>
35
      </ItemChanges>
36-
</soap:Envelope>
36+
37
  </soap:Body>
38
</soap:Envelope>
39
40
41
42
Response
43
------------
44
HTTP/1.1 500 Internal Server Error
45
Cache-Control: private
46
Content-Length: 673
47
Content-Type: text/xml; charset=utf-8
48
Server: Microsoft-IIS/8.0
49
request-id: db9b1db2-ed0d-40ed-ab1d-74d2182e145d
50
X-CalculatedBETarget: AM3PR06MB1202.eurprd06.prod.outlook.com
51
X-BackEndHttpStatus: 500
52
Set-Cookie: exchangecookie=5f0e77b2ba2647e2a26565e8e4adad39; expires=Fri, 08-Sep-2017 15:23:08 GMT; path=/; HttpOnly
53
x-ms-diagnostics: 2000008;reason="The web method in the request is not allowed with this token.";error_category="invalid_grant"
54
X-AspNet-Version: 4.0.30319
55
X-DiagInfo: AM3PR06MB1202
56
X-BEServer: AM3PR06MB1202
57
X-Powered-By: ASP.NET
58
X-FEServer: AM3PR01CA024
59
Date: Thu, 08 Sep 2016 15:23:07 GMT
60
61
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorAccessDenied</faultcode><faultstring xml:lang="en-US">The requested web method is unavailable to this caller or application.</faultstring><detail><e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorAccessDenied</e:ResponseCode><e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">The requested web method is unavailable to this caller or application.</e:Message></detail></s:Fault></s:Body></s:Envelope>