我想尝试使用mime内容创建一条消息。并添加扩展属性标记,以便消息不被标记为草稿。 这是示例xml请求
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="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">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1"/>
</soap:Header>
<soap:Body>
<CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" MessageDisposition="SaveOnly">
<SavedItemFolderId>
<t:FolderId Id="AAMkAGE1YTU3MjkyLWFmMjItNGYyZC05Y2ZiLTIwMWY4MjJhMTVlNAA`enter code here`uAAAAAAChtMCk52J3RLzcG5WcyzUkAQCsm0+9jDPcQakVSrf3fxOXAAAAAAEMAAA="/>
</SavedItemFolderId>
<Items>
<t:Message>
<t:MimeContent>
#-- Mime content goes here --#
</t:MimeContent>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="3591" PropertyType="Integer">
<t:Value>1</t:Value>
</t:ExtendedFieldURI>
</t:ExtendedProperty>
</t:Message>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
提交后,我收到了内部服务器错误。
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">*
</Action>
</s:Header>
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">
a:ErrorInternalServerError
</faultcode>
<faultstring xml:lang="en-US">
An internal server error occurred. The operation failed.
</faultstring>
<detail>
<e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">
ErrorInternalServerError
</e:ResponseCode>
<e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">
An internal server error occurred. The operation failed.
</e:Message>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
当我尝试删除扩展属性标记时,它可以正常工作。但该消息被标记为草稿。
请告诉我如何正确发送xml请求。