question

eyalkapah avatar image
0 Likes"
eyalkapah asked ·

GetSingleItemAsync in Shopping API returns Item = null

I am using the Shopping API in c# project to get detailed information about an item using the GetSingleItemAsync method. for some reason 'item' always returns 'null' while all other properties are filled ok. i checked in Fiddler and the SOAP response also looks ok with all info but not inside the C# code. my code snippet: public async Task GetSingleItem(string itemId) { var client = new ShoppingInterfaceClient(); using (var scope = new OperationContextScope(client.InnerChannel)) { var httpRequestProperty = new HttpRequestMessageProperty(); httpRequestProperty.Headers["X-EBAY-API-APP-ID"] = "MY_APP_ID"; httpRequestProperty.Headers["X-EBAY-API-CALL-NAME"] = "GetSingleItem"; httpRequestProperty.Headers["X-EBAY-API-VERSION"] = "897"; httpRequestProperty.Headers["X-EBAY-API-SITE-ID"] = "0"; httpRequestProperty.Headers["X-EBAY-API-RESPONSE-ENCODING"] = "SOAP"; OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty; var request = new GetSingleItemRequestType { ItemID = itemId, IncludeSelector = "Details" }; try { var response = await client.GetSingleItemAsync(request); var item = response.GetSingleItemResponse1.Item; } catch (Exception ex) { } } } i am using the http://developer.ebay.com/webservices/latest/ShoppingService.wsdl service (and also tried version 897). ItemId = "231803211840" please assist why Item is always returns null ?
c#shopping-api
· 2
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.

itemId = "231803211840"
0 Likes 0 · ·
Did you find resolution for this issue?
0 Likes 0 · ·
sree_developersupport avatar image
0 Likes"
sree_developersupport answered ·
Hi @danmc1313, Thanks for your post. Can you please let us know if you are receiving any exception while calling GetSingleItem or just that the Item doesn't display? Can you please provide more details on the same? Best Regards, eBay Developer Support
· Share
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.

danmc1313 avatar image
0 Likes"
danmc1313 answered ·
I'm having the same issue, pity help does't seem to be that forth coming around here.
· Share
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.