Ebay Finding Api - Deploy WSDL

This weekend i decided to do a little application to interact with Ebay. In its source it will use the Ebay Findig Api.

My solution is based in Java(V1.6) though Ebay lets you use PHP, JSON etc. Besides Java i'm using.
  • Ubunto Karmic 9.10
  • Eclipse Helios
  • Tomcat 5.5
  • Apache
To interact with Ebay one has to their WSDL and with it generate the classes. First, open a shell and execute :
  • wsimport
just to check if you already have that app, if not, download the java JDK package by writing on the console :
  • sudo apt-get install sun-java6-jdk
then, generate the classes by executing in a shell :
  • wsimport -extension http://developer.ebay.com/webservices/finding/latest/FindingService.wsdl
and as result you will get all the classes generated in :
  • ebay.wsdl.com.ebay.marketplace.search.v1.services

Then we have to import this classes to Eclipse project, to do so:

Import the new .class to the project
  • Use any aplication to generate a jar file, the "archiver" might do the trick
  • Right click on the project name
  • Properties
  • Libraries
  • "Add external jar..."

It's all for know, fell free to make any suggestions.

Comments

Popular posts from this blog

Hibernate - HibernateException: createQuery is not valid without active transaction