Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » EWS - FindAppointments Issue (Issue when contacting a Kerio server using EWS)
  •  
mcbreaker

Messages: 9
Karma: 0
Send a private message to this user
Sending the following EWS request:

<?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="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:ItemShape>
<m:CalendarView StartDate="2016-06-09T10:04:25.963Z" EndDate="2016-06-11T10:04:25.963Z" />
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>myroo<_at_>mydomain.com/t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
</Trace>

Give me the following answer:

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header>
<ServerVersionInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/types" MinorBuildNumber="3" MajorBuildNumber="123" MinorVersion="3" MajorVersion="14" Version="Exchange2010_SP2">
</ServerVersionInfo>
</Header>
<Body>
<FindItemResponse xmlns=" http://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages>
<FindItemResponseMessage ResponseClass="Error">
<MessageText>Only BaseShape with no additional properties is supported</MessageText>
<ResponseCode>ErrorUnsupportedPropertyDefinition</ResponseCode >
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</FindItemResponseMessage>
</ResponseMessages>
</FindItemResponse>
</Body>
</Envelope>
</Trace>

Question: How dow I read the calendar of a room using EWS ?

Thank you in advance
  •  
Pavel Špalek (Kerio)

Messages: 275
Karma: 30
Send a private message to this user
Sorry, the BaseShape with "AllProperties" value is currently not supported (not used by any client). But you can use BaseShape=IdOnly with any AdditionalProperties. I'll implement it to the next version.

Pavel Špalek
developer - Kerio Connect
  •  
mcbreaker

Messages: 9
Karma: 0
Send a private message to this user
Unfortunately, it does not work either:

<?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="Exchange2010_SP2" />
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:ItemId" />
</t:AdditionalProperties>
</m:ItemShape>
<m:CalendarView StartDate="2016-06-10T09:33:38.585Z" EndDate="2016-06-12T09:33:38.585Z" />
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>my_room<_at_>mydomain.com</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
</Trace>

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header>
<ServerVersionInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/types" MinorBuildNumber="3" MajorBuildNumber="123" MinorVersion="3" MajorVersion="14" Version="Exchange2010_SP2">
</ServerVersionInfo>
</Header>
<Body>
<FindItemResponse xmlns=" http://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages>
<FindItemResponseMessage ResponseClass="Error">
<MessageText>Calendar view is not supported</MessageText>
<ResponseCode>ErrorUnsupportedPropertyDefinition</ResponseCode >
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</FindItemResponseMessage>
</ResponseMessages>
</FindItemResponse>
</Body>
</Envelope>
</Trace>

Do you also plan to manager CalendarView in the next version ?
Do you have any estimation when the next version will be officially available ? July ? August ?

Thank you in advance
  •  
Pavel Špalek (Kerio)

Messages: 275
Karma: 30
Send a private message to this user
Yes, calendar view will be in 9.1 (but AllProperties shape will not). I'm sorry, I can't promise any date, but your estimation is realistic.

Pavel Špalek
developer - Kerio Connect
  •  
mcbreaker

Messages: 9
Karma: 0
Send a private message to this user
Hi,

Most of the issues I met are currently solved with version 9.1.1. Good job!

There is still one issue:
When reading the start_date and end_date of an Appointment using EWS, there is an issue when this is a recurrent meeting.
Instead of reading the start_date and end_date of the current occurence of an Appointment using EWS (Exchange is doing so), I receive the information of the 1st occurence.

Could you please have a look ?

Thank you in advance
  •  
Pavel Špalek (Kerio)

Messages: 275
Karma: 30
Send a private message to this user
You must use CalendarView property in the request. Only in this case the occurrence(s) from given range are returned with a proper Start and End. Otherwise the returned event type is RecurringMaster and Start and Date are related to the first occurrence.

Pavel Špalek
developer - Kerio Connect
Previous Topic: Full text search not working
Next Topic: Anti spam
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Fri Dec 09 16:23:51 CET 2016

Total time taken to generate the page: 0.00899 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.