question

trakker2128506 avatar image
0 Likes"
trakker2128506 asked

Problem with SetNotificationPreferencesCall

I am trying to use SetNotificationPreferencesCall to enable platform notifications and can't figure out why I am getting the following exception from EBay: com.ebay.sdk.ApiException: Missing property name or event type. I've started with a simple request from example on the documentation page: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/SetNotificationPreferences.html#Samples That did not work, so I tried to add all properties that I could possibly find relevant to what I am trying to accomplish, but still get the same response from the server. At this point I am not sure what else to try. Any suggestions would be greatly appreciated. Here is my SOAP request: 2014-12-13 20:22:37.814 INFO c.e.s.h.SOAPMessageLoggingHandler - AgAAAA**A......... ReturnHeaders 456 797 1.1.1.1 123 High http://mywebsitefqdn.com/ebay/platformNotification Enable mailto: //admin@mywebsitefqdn.com Disable Platform aaa http://mywebsitefqdn.com/ebay/platformNotification Enable ItemSold Enable ItemSold CurrentWeek EveryWednesday extuserdata ItemSold qqq and this is the reply I am getting from EBay: 2014-12-13 20:40:58.704 INFO c.e.s.h.SOAPMessageLoggingHandler - 2014-12-14T03:40:58.076Z Failure 456 Missing property name or event type. Missing property name or event type. 22112 Error RequestError 893 E893_CORE_API_17097905_R1 Vlad.
javasdksetnotificationpreferensessetnotificationpreferensescall
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zhuowei.developersupport@ebay.com avatar image
1 Like"
zhuowei.developersupport@ebay.com answered
Hi trakker2128506, You are correct, it does not matter which auth token you use when you call SetNotificationPreferences API to define ApplicationDeliveryPreferences for your app. Note. the token must be generated with your developer keyset. Best Regards,
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zhuowei.developersupport@ebay.com avatar image
1 Like"
zhuowei.developersupport@ebay.com answered
Hi trakker2128506, A separate SetNotificationPreferences call must be made for the application, and then for each individual user/subscriber: Call SetNotificationPreferences with the URL you wish your application to receive notifications from ( this is also referred as '**application level subscription**') :
 

     
          
          899
           
           *****
          
           
          https://newNotificationListernServer
          Enable
          
          



 For each of the users you support, you need to use that user's auth token and call SetNotificationPreferences with a 'list' (set of XML nodes actually) of notification events that user would like to subscribe to ( **user level subscription**).   Here is a sample XML request that will enable a user for ItemSold and Feedback notification events/messages:

    
        
        899
        
        x
        
        
        
        ItemSold
        Enable
        
        
        Feedback
        Enable
        
        
        

Note. application level subscription applies to each individual user/subscriber that are supported in your notification app so that you only need to do it once.  Please refer to this [KB][1] for how to change Platform Notification callback URL.


Best Regards,


  [1]: https://ebaydts.com/eBayKBDetails?KBid=1130




10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

trakker2128506 avatar image
0 Likes"
trakker2128506 answered
Thanks! There is one more thing that I am a bit confused about though. Let's assume my application has 10 users. When I make the first call to setup notification url, does it matter whose user's eBayAuthToken I should use. My guess is not, but I would appreciate your clarification on this.
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.