Building a Custom eBay Watch List Using the SOAP API

Sign in to queue

The Discussion

  • User profile image
    Clint

    Looks like from the error you're attempting to subtract 2 date objects.

    Switch to a DateTime object and you'll be able to do that.  Something along the lines of

    DateTime.Now - start

  • User profile image
    daivagna

    i am getting "application name invalid"..error...i passed all four parameters i.e APPID,DEVID,CERTID and AUTHtOKEN...but it fires above error

  • User profile image
    Clint

    @daivagna and @haojian jin:  are you sure you have eBayAuthToken property using your ebay auth token?

    If you're still having problems contact us @ via the contact link at the top of the blog.  I'll email you from there.

  • User profile image
    haojian jin

    I am meeting with the same problem with daivagna .

    There is a error called "application name invalid".

  • User profile image
    Ranjit

    Very Good Sample. its working fine. But can any body will help me to get the order Details using the same process ? i have tried alot but... i am not getting any response.

    please help me. ...

  • User profile image
    haojian jin

    Hi. I have a question. How can i finish the search function like the one in ebayDesktop.Which api can lead me there? Waiting for response . i will very appreciate your help if u can contact me @ email.

  • User profile image
    Victor

    Does anybody tried this on Visual Studio 2008 ?  If I try to build it, the build hangs and takes 100% resources.

    On 2005 eveything is OK.

  • User profile image
    Clint

    @Victor:  This happened to me when I was adding the reference, but it built fine under VS 2008.  The ebay API takes a bit to download.  That could be it.  I think it took me about 15+ minutes when I did it.

  • User profile image
    Xavier

    1) Hi! I am confuse with the callName.

    string callName = "GetMyeBayBuying";

    Where can i find the call name?

    2) I had a "Application name invalid." Server error page.

  • User profile image
    simster

    System.NullReferenceException: Object reference not set to an instance of an object.

    ItemType items = buyingResponse.WatchList.ItemArray;

    i am having problem with this line..

    please help!!

    very urgent!!

    thanks

  • User profile image
    Barry

    The following line of code is giving me a hell of a time:

    eBayAPIInterfaceService service = new eBayAPIInterfaceService();

    Yields ->

    The type or namespace name 'eBayAPIInterfaceService' could not be found (are you missing a using directive or an assembly reference?)

    I can't find any resources to explain where/what the assembly is.

    I

  • User profile image
    Clint

    @Xavier: No clue why it does that, you may want to contact Alan who wrote the article.

    @simster:  You're watchlist may be null which may imply you got zero search results from a quick glance.

  • User profile image
    Clint

    @Barry:  Are you copying code or did you use the source we provided?  If you are just copying code, did you include the web service then at the top of the class include the using block to say You're using the ebay API?

  • User profile image
    Clint

    @Barry:

    This worked for me.

    using ebayTest.com.ebay.developer;

    ebayTest is my project name.  My web service name is com.ebay.developer too.

    This is from a fresh project too.

  • User profile image
    Barry

    @Coding4Fun

    I am copying the C# code from the blocks above.

    I add the Service Reference from http://developer.ebay.com/webservices/latest/eBaySvc.wsdl

    And as far as namespaces, the only 3 I can find are:

    using eBay.ServiceReference;

    using eBay.Properties;

    using eBay;

    However I might be missing something, I can't find the eBayAPIInterfaceService object in the entire eBay namespace

    I'm using VS 2008, .NET 3.5 if that would make a difference

  • User profile image
    Marty

    I just tried the C# version from the download link above.

    I am using VS 2008 Express.

    I created a New Web site, imported the WSDL file as above.

    Copied the source code from the download.

    Inserted my AUTHID etc.

    When compiling, I get one error on line 11

    Line 11 is in Default.aspx.cs

    using eBayWebServices;

    Error 1 The type or namespace name 'eBayWebServices' could not be found (are you missing a using directive or an assembly reference?)

  • User profile image
    Marty

    Hi

    I left a question a few days ago and it has not shown up.

    Any reason why?

  • User profile image
    Clint

    @Marty:  Sorry, I was at Mix 08 and am only now catching up.  When you created your web service, what did you name it?  That is what your using block for that should be.  The author of this article renamed his from the default generated to "eBayWebService"

    Do me a favor, type "using " then hit control-space.  I'll bet your'll see one of the items in the list be the item that you named your web service.

  • User profile image
    Marty

    HI,

    Figured you must have been away.

    I am new to all this so be gentle with me.

    When creating the Web service, is that when you are doing the

    Add Web Reference?

    Where do I type the using CRTL-space?

    Marty

  • User profile image
    Clint

    @Marty:  Email me by clicking the contact button up on the top and we'll take this offline from this thread.  I'll be able to respond quicker then I'll post a response on this thread on how we fixed the issue.

    I'll be able to do a screen cast possibly to help out and talk you through it.

  • User profile image
    Clint

    @Desperate Student TT:  Put in a break point, I bet your WatchList is null.

    You'll need to do more defensive coding and verify the buyingResponse.WatchList != null before moving foward

  • User profile image
    Desperate Student TT

    I have this error!!

    Object reference not set to an instance of an object.

    Line 51:        ItemType[] items = buyingResponse.WatchList.ItemArray;

    HELP PLS T.T

  • User profile image
    Bun

    solved this problem

    Line 51:        ItemType[] items = buyingResponse.WatchList.ItemArray

    replace it with this code

     if (buyingResponse.WatchList != null)

           {

               items = buyingResponse.WatchList.ItemArray;

           }

    and  if (items != null), put this 'if' loop to cover the entire 'add table raw' code

  • User profile image
    Clint

    @Hemanth one question is are you sure what you're querying has values getting returned?

    Does the source code download work?

  • User profile image
    Hemanth

    Getting null values in response then how could i get items, where i have given valid production appid, devid & certid with relative usertoken.

    Please guide me

Add Your 2 Cents