EWS client built for Exchange 2007 no longer working since moving to Exchange 2013

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>

 


June 29th, 2015 3:38pm

The 2013 example looks a bit different than what you have

https://msdn.microsoft.com/EN-US/library/office/dn643673(v=exchg.150).aspx

Free Windows Admin Tool Kit Click here and download it now
June 29th, 2015 5:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics