For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Determining the Notification Event Type from a Notification Message

  • Answer ID 854
  • Published 12/22/2006 01:37 PM
  • Updated 10/20/2013 06:41 AM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=854
Product

How can I determine what type of notification I have received without looking into the body of the HTTP POST that I have received?


Summary

When you receive a notification event on your notification listener, you may want to forward the request to different handlers, based upon the notification event type. You would like to do this without reading or parsing the body of the HTTP POST.

Use the Headers in the notification HTTP POST to determine the event type. An example of the headers you will receive are shown below. Use the SOAPACTION header to determine the notification event type.

POST: /cgi/my_notifications.asp 
PROTOCOL: HTTP/1.1
HOST: my_hostname.com 
CONTENT_TYPE: text/xml; charset="utf-8" 
CONTENT_LENGTH: 1252 
SOAPACTION: HTTPS://developer.ebay.com/notification/EndOfAuction
 

Additional Resources

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter