我们有一个客户,其中对Exchange Web服务的多个GetItem
SOAP调用返回包含以下内容的XML:
<t:MeetingTimeZone TimeZoneName="��������������������������������">
(32个空字符)。随后,我的XML.XmlDoc.LoadXMLData调用在该行上引发了“无效的Unicode字符”EDOMParseError - 当然。
服务器版本为:
<h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="361" MinorBuildNumber="14" Version="V2015_10_05" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
这是在线Exchange365。
这里可以发生什么?这个奇怪的TimeZoneName如何蔓延?可以预防吗?
我现在唯一能推荐的是他们重新创建这些约会并检查问题是否消失,或过滤掉�
的XML会降低速度。
FWIW,这是返回的完整XML:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="1" MajorBuildNumber="361" MinorBuildNumber="14" Version="V2015_10_05" />
</s:Header>
<s:Body>
<m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ItemId Id="AQMkAG[snip]AAAA==" ChangeKey="DwAA[snip]pg28O" />
<t:ParentFolderId Id="AQMk[snip]AAAA==" ChangeKey="AQAAAA==" />
<t:ItemClass>IPM.Appointment</t:ItemClass>
<t:Subject>Daily Scrum</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text">Something</t:Body>
<t:DateTimeReceived>2014-04-16T06:18:23Z</t:DateTimeReceived>
<t:Size>7972</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2014-04-16T06:18:23Z</t:DateTimeSent>
<t:DateTimeCreated>2014-04-16T06:17:40Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:ForwardItem />
</t:ResponseObjects>
<t:ReminderDueBy>2015-12-21T08:15:00Z</t:ReminderDueBy>
<t:ReminderIsSet>true</t:ReminderIsSet>
<t:ReminderMinutesBeforeStart>0</t:ReminderMinutesBeforeStart>
<t:DisplayCc />
<t:DisplayTo />
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>nl-NL</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
</t:EffectiveRights>
<t:LastModifiedName>Mark de Waal</t:LastModifiedName>
<t:LastModifiedTime>2015-12-17T09:14:40Z</t:LastModifiedTime>
<t:UID>04000[snip]1A2FD6</t:UID>
<t:DateTimeStamp>2015-12-17T09:14:40Z</t:DateTimeStamp>
<t:Start>2015-06-10T07:15:00Z</t:Start>
<t:End>2015-06-10T07:30:00Z</t:End>
<t:IsAllDayEvent>false</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:IsMeeting>false</t:IsMeeting>
<t:IsCancelled>false</t:IsCancelled>
<t:IsRecurring>false</t:IsRecurring>
<t:MeetingRequestWasSent>false</t:MeetingRequestWasSent>
<t:IsResponseRequested>true</t:IsResponseRequested>
<t:CalendarItemType>RecurringMaster</t:CalendarItemType>
<t:MyResponseType>Unknown</t:MyResponseType>
<t:Organizer>
<t:Mailbox>
<t:Name>Mark de Waal</t:Name>
<t:EmailAddress>m[snip].com</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
<t:Duration>PT15M</t:Duration>
<t:TimeZone />
<t:AppointmentSequenceNumber>0</t:AppointmentSequenceNumber>
<t:AppointmentState>0</t:AppointmentState>
<t:Recurrence>
<t:WeeklyRecurrence>
<t:Interval>1</t:Interval>
<t:DaysOfWeek>Monday Tuesday Wednesday Thursday</t:DaysOfWeek>
</t:WeeklyRecurrence>
<t:NoEndRecurrence>
<t:StartDate>2015-06-10+02:00</t:StartDate>
</t:NoEndRecurrence>
</t:Recurrence>
<t:FirstOccurrence>
<t:ItemId Id="AAMk[snip]AEA==" ChangeKey="DwAA[snip]pg28O" />
<t:Start>2015-06-10T07:15:00Z</t:Start>
<t:End>2015-06-10T07:30:00Z</t:End>
<t:OriginalStart>2015-06-10T07:15:00Z</t:OriginalStart>
</t:FirstOccurrence>
<t:MeetingTimeZone TimeZoneName="��������������������������������">
<t:BaseOffset>-PT60M</t:BaseOffset>
<t:Standard TimeZoneName="Standard">
<t:Offset>PT0M</t:Offset>
<t:RelativeYearlyRecurrence>
<t:DaysOfWeek>Sunday</t:DaysOfWeek>
<t:DayOfWeekIndex>Last</t:DayOfWeekIndex>
<t:Month>October</t:Month>
</t:RelativeYearlyRecurrence>
<t:Time>02:00:00</t:Time>
</t:Standard>
<t:Daylight TimeZoneName="Daylight">
<t:Offset>-PT60M</t:Offset>
<t:RelativeYearlyRecurrence>
<t:DaysOfWeek>Sunday</t:DaysOfWeek>
<t:DayOfWeekIndex>Last</t:DayOfWeekIndex>
<t:Month>March</t:Month>
</t:RelativeYearlyRecurrence>
<t:Time>03:00:00</t:Time>
</t:Daylight>
</t:MeetingTimeZone>
<t:ConferenceType>0</t:ConferenceType>
<t:IsOnlineMeeting>false</t:IsOnlineMeeting>
<t:NetShowUrl />
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
答案 0 :(得分:1)
这是在线交易中的一个错误。请在这里提交:
https://github.com/OfficeDev/microsoft-graph-docs/issues
(微软跟踪GitHub中的图形api问题。当您向图表api报告任何问题时,他们会修复它并将其发布到您在网络上看到的图表api文档。包括EWS在内的所有o365服务都是图表API的一部分。 O365)。