The push notification sample application contains two components. The first component is the client Web service that listens for and retrieves notification events. This component also provides responses to notify the Client Access server as to whether the subscription should be maintained. The second component initiates the subscription with the Client Access server. It identifies the client Web service endpoint and other information that is required to configure the subscription.
The following prerequisites are needed to build and use the Push Notification Sample Application:
- Microsoft.NET Framework
- MicrosoftVisual Studio .NET
- MicrosoftInternet Information Services (IIS)
- MS Exchange 2010
The types.xsd
and messages.xsd
schema files that are found in the EWS virtual directory of the computer that is running Exchange 2010.
To build the push notification client Web services application**
- Open the client Web services project.
- Navigate to the directory in which the Exchange 2010 Web Services SDK is installed, open the
Samples\PushNotification\PushNotificationClient\
folder, and double-click thePushNotificationClient.sln
file. - From the Build menu, select Build Web Site.
- Publish the Web site to an IIS virtual directory
To set up and build the subscriber application
Navigate to the directory in which the Exchange 2010 Web Services SDK is installed, open the
Samples\PushNotification\PushNotificationSubscriber\
folder, and double-click thePushNotificationSubscriber.csproj
file.Update the
ExchangeServiceBindingUrl
property to identify the location of the Exchange Web service.Update the
ExchangeServiceBindingCredentials
property to identify the name, password, and domain of the user whose mailbox will be monitored for events.Update the
PushSubscriptionRequestTypeURL
property to identify the location of the client Web service that will receive the event notifications. This URL is defined by the location of the client Web service.From the Build menu, select Build Solution.