Hello,
I have an EWS client built in JAVA which calls the GetUserAvailability and CreateItem operations. SOAP requests are sent over HTTPS. A service account is supplied which satisfies authentication challenges.
The client was built against Exchange Server 2007. Now the infrastructure is moving to Exchange 2013. Initially testing has surfaced an issue connecting and fetching FREEBUSY data from Exchange 2013.
Exchange 2013 returns a 400 exception when I attempt to fetch FREEBUSY data for an existing mailbox. The same client returns data when pointed against the 2007 server.
Can someone advise if the SOAP request for Exchange 2013 requires some additional header information ( compared to 2007 request)?
Including a copy of the request i send incase someone sees something which i should change
<?xml version="1.0" encoding="utf-8" ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <GetUserAvailabilityRequest xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <TimeZone xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <Bias>0</Bias> <StandardTime> <Bias>0</Bias> <Time>01:00:00</Time> <DayOrder>4</DayOrder> <Month>10</Month> <DayOfWeek>Sunday</DayOfWeek> </StandardTime> <DaylightTime> <Bias>0</Bias> <Time>01:00:00</Time> <DayOrder>4</DayOrder> <Month>3</Month> <DayOfWeek>Sunday</DayOfWeek> </DaylightTime> </TimeZone> <MailboxDataArray> <MailboxData xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <Email> <Name/> <Address>adress@example.com</Address> <RoutingType>SMTP</RoutingType> </Email> <AttendeeType>Required</AttendeeType> <ExcludeConflicts>false</ExcludeConflicts> </MailboxData> </MailboxDataArray> <FreeBusyViewOptions xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> <TimeWindow> <StartTime>2015-08-29T14:00:00.000Z</StartTime> <EndTime>2015-08-29T16:00:00.000Z</EndTime> </TimeWindow> <MergedFreeBusyIntervalInMinutes>30</MergedFreeBusyIntervalInMinutes> <RequestedView>FreeBusy</RequestedView> </FreeBusyViewOptions> </GetUserAvailabilityRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
- Edited by colinduggan Monday, June 29, 2015 8:23 PM