Hoover's API Forums

Report a bug or request a feature

RSS Feed

findCompanyByKeyword problem with Java sample code

  1. Hi,

    I am testing API with Java sample code.
    I am working on FindCompanyByKeyword method, and tried to search for some companies by name.
    It works fine with some keyword, such as: Apple (the default one in the sample code), Hoover, Cisco,...
    But it doesn't return any result with some keywords, such as: IBM, Microsoft, ... (which have result when I tested from hoover webpage search)

    I use Eclipse 3.4.1, Hoover API version 2, wsdl: http://hapi-dev.hoovers.com/axis2/HooversAPI-20/Hapi.wsdl

    And the sample code:
    FindCompanyByKeywordRequestDocument requestDoc = FindCompanyByKeywordRequestDocument.Factory.newInstance();
    FindCompanyByKeywordRequest request = requestDoc.addNewFindCompanyByKeywordRequest();
    request.setKeyword("IBM");
    request.setMaxRecords(20);
    request.addSearchBy(SearchByFields.COMPANY_NAME);
    FindCompanyByKeywordResponse response = null;
    try {
    response = getStub().FindCompanyByKeyword(requestDoc, getAPIKeyDoc()).getFindCompanyByKeywordResponse();
    } catch (Exception e) {
    e.printStackTrace();
    }

    So where does the problem come from?

    Thanks,
    Quyen

  2. ojas2 months ago

    Hello Quyen,

    Your code is fine. The development API includes a representative sample of Hoover's records - a subset of what's available in our production API. You've found examples of companies that are not included in the development API database (they are in our production API database). Please see this blog post for more information: http://developer.hoovers.com/blog/read/Development_Environment_Change

    Thanks,
    Ojas

  3. QuyenNguyen2 months ago

    Hi Ojas,

    Thank you so much for your answer. In order to test fully the features and speed of our program, we need to access to the production API database. So is there any solutions to use development key to access production API database or do you have any other suggestion?

    Thanks,
    Quyen

  4. ojas2 months ago

    Hi Quyen,

    The development key only allows access to the development API database. If you'd like to discuss access to the production API, would you please contact Business Development (jgleason@hoovers.com)?

    Thanks!
    Ojas