Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Setting Up the Push Notification Sample Application

Topic Last Modified: 2007-03-30

The Push Notification Sample Application source code is installed by default with the Microsoft Exchange Server 2007 Software Development Kit (SDK) in the directory in which the Exchange Server 2007 SDK is installed, in the following folder: \Samples\PushNotification\. This sample includes two applications. The first application is a client Web service that accepts notifications from the computer on which the Client Access server role is installed. This must be set up first. The second application creates the subscription. The second application uses the URL to the client Web service to define where the notification messages should be sent.

Bb204060.note(en-us,EXCHG.80).gifNote:
This sample application is intended for instructional purposes only and is not meant to be installed in a production environment.

The following prerequisites are needed to build and use the Push Notification Sample Application:

  • Microsoft .NET Framework
  • Microsoft Visual Studio .NET
  • Microsoft Internet Information Services (IIS)
  • Microsoft Exchange Server 2007
  • The types.xsd and messages.xsd schema files that are found in the EWS virtual directory of the computer running Exchange 2007
To build the push notification client Web services application
  1. Open the client Web services project.

  2. Navigate to the directory in which the Exchange Server 2007 SDK is installed, open the Samples\PushNotification\PushNotificationClient\ folder, and double-click the PushNotificationClient.sln file.

  3. From the Build menu, select Build Web Site.

  4. Publish the Web site to an IIS virtual directory.

Bb204060.note(en-us,EXCHG.80).gifNote:
When the client Web service is published to IIS, make sure that the virtual directory uses ASP.NET 2.0 for the client application.
To set up and build the subscriber application
  1. Navigate to the directory in which the Exchange Server 2007 SDK is installed, open the Samples\PushNotification\PushNotificationSubscriber\ folder, and double-click the PushNotificationSubscriber.csproj file.

  2. Update the ExchangeServiceBinding Url property to identify the location of the Exchange Web service.

  3. Update the ExchangeServiceBinding Credentials property to identify the name, password, and domain of the user whose mailbox will be monitored for events.

  4. Update the PushSubscriptionRequestType URL 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.

  5. From the Build menu, select Build Solution.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.