question

doddsportingoods avatar image
0 Likes"
doddsportingoods asked

Has the Merchandising Service gone on Vacation, or what?

Hello. Stupid is as stupid does I suppose:, no matter what I do I keep getting a "The request failed with an empty response." error when I try to dial the Merchandising service. Would someone be so generous as to help me understand where I have erred? I've been so flustered by this I actually considered paying ebay $75/hour to help, but then self-control got the better of me. class Program { static void Main(string[] args) { //Use the custom class customMerchandisingService svc = new customMerchandisingService(); //Set the production URL svc.Url = " http://svcs.ebay.com/MerchandisingService?"; GetMostWatchedItemsRequest request = new GetMostWatchedItemsRequest(); request.categoryId = "617"; MerchandisingServiceItemResponse response = svc.getMostWatchedItems(request); foreach (Item item in response.itemRecommendations) { //process results string title = item.title; string itemID = item.itemId; } } class customMerchandisingService : MerchandisingAPI.MerchandisingService { protected override System.Net.WebRequest GetWebRequest(Uri uri) { HttpWebRequest req = (HttpWebRequest)base.GetWebRequest(uri); //Set the AppID, Operation, Service, Protocol and Version as HTTP Headers req.Headers.Add("EBAY-SOA-CONSUMER-ID", "Your AppID"); req.Headers.Add("X-EBAY-SOA-OPERATION-NAME", "getMostWatchedItems"); req.Headers.Add("X-EBAY-SOA-SERVICE-NAME", "MerchandisingService"); req.Headers.Add("X-EBAY-SOA-MESSAGE-PROTOCOL", "SOAP11"); req.Headers.Add("X-EBAY-SOA-SERVICE-VERSION", "1.1.0"); return req; } } } I have of course added a Web reference to the Merchandising service at : http://developer.ebay.com/webservices/merchandising/latest/MerchandisingService.wsdl and titled it MerchandisingAPI. I read the "What's different" at http://developer.ebay.com/Devzone/merchandising/docs/Concepts/MerchandisingAPIGuide.html#whatsdiff But nothing jumps out at me. I grabbed the example above from: https://ebaydts.com/eBayKBDetails?KBid=1507 their other examples seem to always work great. Thanks
merchandising api
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.

doddsportingoods avatar image
0 Likes"
doddsportingoods answered
I also tried both http, https and it didn't seem to make a difference, I always came up short.
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.

helios825 avatar image
1 Like"
helios825 answered
Hmmm... I don't speak SOAP (or the programming language you're using), so I'm not of much help here. But I did convert your API call to REST to test in my browser and it works there: http://svcs.ebay.com/MerchandisingService?SERVICE-NAME=MerchandisingService&OPERATION-NAME=getMostWatchedItems&SERVICE-VERSION=1.1.0&CONSUMER-ID=______&RESPONSE-DATA-FORMAT=XML&categoryId=617 Sometimes developers post here in the forums about misc bugginess with SOAP requests. The Merchandising API also has some weirdness that shows up from time to time, so you might be experiencing the compounding of those.
· 1
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.

Well I appreciate your effort. Let's me know it's me, not big brother. I gather soap Is antiquated way of doing things anyways but I was trying to hit the ground running by copying some examples using c#, which I have the easiest time reading. I'm just an amateur pretending to be a professional. Anyways yes must be bugginess. I just got introduced to fiddler and apparently I'm getting 302 temporarily moved in the response, but no location. Maybe I'll ditch the soap tomorrow and try another protocol. Thanks again for looking.
0 Likes 0 ·
walkin_willie avatar image
0 Likes"
walkin_willie answered
@doddsportingoods - I am experiencing the same problems. I have a ticket in with eBay API Support since 12/29/2015 - we've gone back and forth and they said they would send a .Net code snippet that they say works. Will let you know when I get it and if it works - if it works, will be glad to post.
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.