Я пытаюсь создать календарь с помощью ews api и отправляю свое мыльное сообщение вот так
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1" />
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrimarySmtpAddress>abc@xyz.onmicrosoft.com</t:PrimarySmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:SavedItemFolderId>
<t:FolderId Id="AQMkADAzNTg5ZjFmLWI2OTItNDFiOC1iNzg5LTNmOTJmOGUxYmUxNwAuAAADTM6dNOFmmUKiuKvh0ZUivQEAKpTTWhjp40e4J27GznKZBQACBZejPgAAAA==" />
</m:SavedItemFolderId>
<m:Items>
<t:CalendarItem>
<t:MimeContent CharacterSet="UTF-8">QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KUFJPRElEOi0vL0RydXZhLy9JblN5bmMvL0VODQpYLVdSLVRJTUVaT05FOkFzaWEvQ2FsY3V0dGENCkJFR0lOOlZUSU1FWk9ORQ0KVFpJRDpBc2lhL0NhbGN1dHRhDQpYLUxJQy1MT0NBVElPTjpBc2lhL0NhbGN1dHRhDQpCRUdJTjpTVEFOREFSRA0KRFRTVEFSVDtWQUxVRT1EQVRFLVRJTUU6MTk3MDEwMjVUMDMwMDAwDQpUWk9GRlNFVEZST006KzA1MzANClRaT0ZGU0VUVE86KzA1MzANCkVORDpTVEFOREFSRA0KRU5EOlZUSU1FWk9ORQ0KQkVHSU46VkVWRU5UDQpTVU1NQVJZOlRlc3RfRXZlbnQNCkRUU1RBUlQ7VFpJRD1Bc2lhL0NhbGN1dHRhO1ZBTFVFPURBVEUtVElNRTo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9yOndpbmRvd3RleHR9XG4uTXNvQ2hwRGVmYXVsdFxuCXtmb250LWZhbWlseToNCiAiQ2FsaWJyaSJcLHNhbnMtc2VyaWZ9XG5AcGFnZSBXb3JkU2VjdGlvbjFcbgl7bWFyZ2luOjEuMGluIDEuMGluIDEuMGluIDEuMA0KIGlufVxuZGl2LldvcmRTZWN0aW9uMVxuCXt9XG4tLT5cbjwvc3R5bGU+XG48L2hlYWQ+XG48Ym9keSBsYW5nPSJFTi1VUyIgbGluDQogaz0iIzA1NjNDMSIgdmxpbms9IiM5NTRGNzIiIHN0eWxlPSIiPlxuPGRpdiBjbGFzcz0iV29yZFNlY3Rpb24xIj5cbjxwIGNsYXMNCiBzPSJNc29Ob3JtYWwiPlRlc3QgRXZlbnQ8L3A+XG48L2Rpdj5cbjwvYm9keT5cbjwvaHRtbD5cbg0KWC1NSUNST1NPRlQtQ0RPLUJVU1lTVEFUVVM6QlVTWQ0KQkVHSU46VkFMQVJNDQpBQ1RJT046RGlzcGxheQ0KREVTQ1JJUFRJT046UmVtaW5kZXINClRSSUdHRVI7UkVMQVRFRD1TVEFSVDotUFQxNU0NCkVORDpWQUxBUk0NCkVORDpWRVZFTlQNCkVORDpWQ0FMRU5EQVINCg==</t:MimeContent>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Но оно выдает ошибку http 500 для чего-то вроде этого -
<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 request failed schema validation.</e:Message>
<t:MessageXml xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<t:LineNumber>0</t:LineNumber>
<t:LinePosition>0</t:LinePosition>
<t:Violation>Character reference not valid. Line 4, position 148.</t:Violation>
</t:MessageXml>
</detail>