| http://developer.ebay.com/DevZone/XML/docs/WebHelp/WorkingWithNotifications-Subscribing_to_Platform_Notifications.html | |
| Platform Notifications Guide > Working with Platform Notifications > Subscribing to Platform Notifications | |
Subscribing to Platform Notifications
Subscribing to Platform Notifications can be done in several ways, including enabling notifications for existing partners who have not migrated to the latest release.
Your application can subscribe to notifications using SetNotificationPreferences and can check the preferences already set with GetNotificationPreferences. See SetNotificationPreferences and GetNotificationPreferences for more details. Your platform notification usage can be monitored with GetNotificationsUsage. For more information on GetNotificationsUsage and how to use it to troubleshoot notification problems, see GetNotificationsUsage.
Basic Requirements
Your application needs to be able to receive SOAP messages at a notification delivery URL or email address of your choice. XML developers can then parse the SOAP message for the XML content contained within the SOAP envelope.
For more information about SOAP messages, see:
http://www.w3.org/TR/SOAP/Notification Delivery URL Requirements
eBay needs to know where to send the notifications. Each notification is delivered by an HTTP post to URLs or by a SMTP message to email addresses that you specify in your notification preferences (see Activating Platform Notifications). A valid notification delivery URL begins with
http://orhttps://and is well formed. A valid email delivery URL begins withmailto:ormailto://and is followed by a working email address. For more information about valid URLs, see:URL Schemas (see httpaddress)
W3C
http://www.w3.org/Addressing/URL/5_BNF.htmlNotification delivery URLs can include query string variables. For example, the following URLs are valid:
http://my_hostname.com/cgi/my_notifications.asphttps://my_hostname.com/cgi/my_notifications.asp?myvar1=45&myvar2=123456789Specifying Multiple Notification URLs
You can specify up to 10 notification URLs for an application. You define settings for a notification URL (including the URL name in DeliveryURLName) in an ApplicationDeliveryPreferences.DeliveryURLDetails container in your SetNotificationPreferences request. You associate a user token with a notification URL by using the token in a SetNotificationPreferences request that specifies the URL name in SetNotificationPreferencesRequest.DeliveryURLName. If you associate a single user token to multiple URL names, each URL name overwrites the previous name associated with the token.
Use ApplicationDeliveryPreferences.ApplicationURL to specify a default URL to receive notifications for your application. Notifications will not be sent to any URL(s) if ApplicationDeliveryPreferencesType.ApplicationEnable is set to
Disable.Activating Platform Notifications
To set up the Platform Notifications feature for an application that meets the requirements in Basic Requirements, call SetNotificationPreferences. The request must be sent by the application that subscribes to the Platform Notifications feature. Specify your notification preferences for the application, including the URLs where eBay should send notifications (see Notification Delivery URL Requirements).
To retrieve the preferences currently set for the requesting application, call GetNotificationPreferences. See
NotificationEventTypeCodeTypefor the kinds of events for which an application can subscribe.
| Platform Notifications Guide > Working with Platform Notifications > Subscribing to Platform Notifications | |
| http://developer.ebay.com/DevZone/XML/docs/WebHelp/WorkingWithNotifications-Subscribing_to_Platform_Notifications.html | |
| © 2004–2009 eBay Inc. All rights reserved. | Version 643 |