Skip to main content
Published: November 21 2008, 1:33:00 PMUpdated: November 28 2020, 5:00:13 PM

How do I use the LMS JAVA sample?


LMS Overview

eBay's Large Merchant Services make it possible for a Seller's application to send very large amounts of inventory to the eBay site, and to download order and transaction information. These services have been designed to make a large merchant's workflow more efficient by making large file transfers faster on the eBay servers.

Large Merchant Services consists of three separate APIs:

1. Merchant Data API (data file)

2. Bulk Data Exchange API (web service)

3. File Transfer API (web service)

Merchant Data API (data file) defines the data that can be passed to and from the eBay servers in files. This is the information about your inventory (to manage items and get report data about your inventory). The calls that are used in the data file cannot be used to make direct API calls (without a data file) to the eBay servers.

Bulk Data Exchange API (web service) describes how to manage the Large Merchant workflow, such as starting, stopping, and checking the status of data processing.

File Transfer API (web service) passes the data file to and from the eBay servers.

We've provided a sample application to demonstrate what the services do. The sample is provided as a runnable JAR file, LMSSample.jar. The JAR file also contains the Java source files that you can explore, build, and run yourself. The sample can be used to upload files to add or revise inventory. Use this application to test your data files and to see how the APIs work together.

Download and extract the sample application zip file, The zip file contains ReadMe.txt, which describes how to run the sample.

What do I need to run the Java Sample?

  1. file
  2. LMSSample.jar
  3. Setup the correct CLASSPATH and include Java 1.4 or higher
  4. A valid sandbox token

How do I run the Java Sample using commandline?

  1. Edit the file and save it with your sandbox token.
  2. Open up the command line console and navigate to the folder where the LMSSample.jar file exists.
  3. If you type "java -jar LMSSample.jar" without any command line parameters, it will show command samples and explanations. Use the appropriate commands and run the sample.

Additional Notes:

1. file

a. You can modify the HTTP Socket Timeout. It is an integer in milliseconds.

b. You can modify the getJobStatusQueryInterval. This property is used by the UploadJobEnd2End function to decide the invocation interval of the getJobStatus function.

2. Currently, this sample only uploads files to the US site (site id 0)


How well did this answer your question?
Answers others found helpful