For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

LMS: Java Sample Project

  • Answer ID 1423
  • Published 07/27/2015 09:21 PM
  • Updated 07/27/2015 09:21 PM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1423

Summary

  This sample LMS Java application illustrates the use of JAX-WS framework to make the Bulk Data Exchange and File Transfer service calls and perform several end-to-end operations.

  Detailed Description

     SOFTWARE REQUIREMENTS

     INSTRUCTIONS

  •  Download and extract the attached compressed file LMSSample.zip which contains:
    • LMSSample.jar file, a sample AddFixedPriceItem.xml file and configruation.xml  file
    • a src folder which contains the java source files of this application
    • lib folder
    • README.txt file
    • WSDL folder contains both BulkDataExchangeService.wsdl and FileTransferService.wsdl files
    • build.xml, the ant script is used to build the LMSSample project
    • jaxws-codeGen.xml an ant script  which enables you to genereate and compile  the stub files against the wsdls saved in WSDL directory
  •   Go to the LMSSample installation folder and make sure both Configruation.xml file and lib directory are in the same folder as the LMSSample.jar
  •   Edit the Configruation.xml file and specify your user auth token
  •   To display usage information from the command line, go to the LMSSample installation folder  folder and type the following: 
    • > java -jar LMSSample.jar       
  •   To run an end to end UploadFile operation, type the following:
    • java -jar LMSSample.jar UploadJobEnd2End  AddFixedPriceItem.xml  downloadResponse.gz
  •   To run an end to end DownLoad operation, type the following:
    • > java -jar LMSSample.jar DownloadJobEnd2End SoldReport downloadResult.zip

    

     When need to synchronize the source with new version of WSDLs

  •   To  generate and compile Bulk Data Exchange Service and File Transfer Service client stub  files, do the following:
    • set the system variable JWSDP_HOME to point to your Java Web Services Developer Pack installation folder. 
    • download the latest Bulk Data Exchange WSDL and File Transfer Service WSDL and save it in the WSDL folder
    • go to LMSSample installation folder    
    • >  ant -f  jaxws-codeGen.xml 
File Attachments

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter