Skip to main content
Published: November 07 2005, 1:00:00 AMUpdated: July 20 2022, 10:43:02 PM

SetNotificationPreferences returned Success, but I'm not receiving any notifications. Also, GetNotificationPreferences shows my ApplicationURL as 'http://dummy.com'. Why is this happening?

Summary

The SetNotificationPreferences call in the Unified Schema will ignore input fields that are not defined in the schema. Therefore if you misspell ApplicationDeliveryPreferences as ApplicationDeliveryPreference, the call may return Success, but in fact it does not set your ApplicationURL.  SetNotificationPreferences call will default the ApplicationURL to 'http://dummy.com' in the case where no ApplicationDeliveryPreferences are detected.
 



Detailed Description

Double check all of the XML in the call to make sure that you have specified all input fields correctly.  For example, the following XML will return a Success, but will not set the ApplicationURL since no ApplicationDeliveryPreferences will be detected (the ApplicationDeliveryPreference input will be ignored since it is not in the schema).

<?xml version="1.0" encoding="utf-8"?>
<
SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <
RequesterCredentials>
   <
eBayAuthToken>*****</eBayAuthToken>
  </
RequesterCredentials>
  <
WarningLevel>Low</WarningLevel>
  <
Version>485</Version>
  <
ApplicationDeliveryPreference>
    <
ApplicationURL>http://www.testsoft.com/ebay/gateway.asp</ApplicationURL>
    <
ApplicationEnable>Enable</ApplicationEnable>
    <
ApplicationPayloadType>eBLSchemaSOAP</ApplicationPayloadType>
  </
ApplicationDeliveryPreference>
  <
UserDeliveryPreferenceArray>
    <
NotificationEnable>
      <
EventType>AskSellerQuestion</EventType>
      <
EventEnable>Enable</EventEnable>
    </
NotificationEnable>
  </
UserDeliveryPreferenceArray>
</
SetNotificationPreferencesRequest
>

If you set the WarningLevel to High, the response will return the following warning:

<?xml version="1.0" encoding="utf-8"?>
<
SetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <
Timestamp>2006-11-13T22:59:26.404Z</Timestamp>
  <
Ack>Warning</Ack>
  <
Errors>
    <
ShortMessage>Unrecognized element <ApplicationDeliveryPreference> in SOAP request.</ShortMessage>
    <
LongMessage>The element <ApplicationDeliveryPreference> was found in the input SOAP request. This is not a declared element in the schema and will be ignored.</LongMessage>   
    <
ErrorCode>21927</ErrorCode>
    <
SeverityCode>Warning</SeverityCode>
    <
ErrorParameters ParamID="0">
      <
Value>ApplicationDeliveryPreference</Value>
    </
ErrorParameters>
    <
ErrorClassification>RequestError</ErrorClassification>
  </
Errors>
  <
Version>485</Version>
  <
Build>e485_core_Bundled_3782291_R1</Build>
</
SetNotificationPreferencesResponse>

From this warning, you can find out that an incorrect tag was used.  You need to use ApplicationDeliveryPreferences instead.


Version Info

The code example above was based on the versions specified below:

API Schema Version 485

 

How well did this answer your question?
Answers others found helpful