developers program  

Welcome, Guest Help
Login Login | Register
 

eBay Developer Forums > Getting Started/Introductions
RSS | NNTP Reader | FAQ | Usage Policies | Advanced Search | Print

in current forum  
in all Developer Forums

Replies: 1 - Pages: 1     Last Post: Nov 24, 2009 8:02 PM by: prafull.developersupport@ebay.com »



Posts: 1
Member Since: 11/23/09



What is correct use of SetNotificationPreferences
Posted: Nov 23, 2009 4:29 PM
  Click to reply to this thread Reply

Hi, all:

I am testing SetNotificationPreferences but always get error. I've no idea what bit is missing.Below is my code:

SetNotificationPreferencesRequestType request = new SetNotificationPreferencesRequestType();
request.Version = VERSION_TRADING;
request.ApplicationDeliveryPreferences = new ApplicationDeliveryPreferencesType();
request.ApplicationDeliveryPreferences.AlertEmail = "mailto://xxx@xxx.com";
request.ApplicationDeliveryPreferences.AlertEnable = EnableCodeType.Enable;
request.ApplicationDeliveryPreferences.AlertEnableSpecified = true;
request.ApplicationDeliveryPreferences.DeviceType = DeviceTypeCodeType.Platform;
request.ApplicationDeliveryPreferences.DeviceTypeSpecified = true;
request.ApplicationDeliveryPreferences.DeliveryURLDetails = new DeliveryURLDetailType[1];
request.ApplicationDeliveryPreferences.DeliveryURLDetails[0] = new DeliveryURLDetailType();
request.ApplicationDeliveryPreferences.DeliveryURLDetails[0].DeliveryURL = "mailto://xxx@xxx.com";
request.ApplicationDeliveryPreferences.DeliveryURLDetails[0].DeliveryURLName = "Email";
request.ApplicationDeliveryPreferences.DeliveryURLDetails[0].Status = EnableCodeType.Enable;
request.ApplicationDeliveryPreferences.DeliveryURLDetails[0].StatusSpecified = true;
request.DeliveryURLName = "Email";

request.UserDeliveryPreferenceArray = new NotificationEnableType[1];
request.UserDeliveryPreferenceArray[0] = new NotificationEnableType();
request.UserDeliveryPreferenceArray[0].EventEnable = EnableCodeType.Enable;
request.UserDeliveryPreferenceArray[0].EventEnableSpecified = true;
request.UserDeliveryPreferenceArray[0].EventType = NotificationEventTypeCodeType.ItemSold;
request.UserDeliveryPreferenceArray[0].EventTypeSpecified = true;

SetNotificationPreferencesResponseType response = _apiService.SetNotificationPreferences(request);

The error is "Preference DeliveryURL is required, please provide it in your request.".

Obviously there is another DeliveryURL I need to look at. Where is it?

Thanks in advance for help.




Posts: 492
Member Since: 4/27/09



Re: What is correct use of SetNotificationPreferences
Posted: Nov 24, 2009 8:02 PM
  Click to reply to this thread Reply

Hi bestkh1980,

Can you check if you are missing this field?

http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/SetNotificationPreferences.html#Request.DeliveryURLName

Best Regards,
Prafull Jha
eBay Developers Program



thread.rss_message