source: webservices/net.sf.basedb.examples/trunk/README @ 1407

Last change on this file since 1407 was 1407, checked in by Nicklas Nordborg, 12 years ago

Fixes #327: Update web service examples to BASE 3

  • Property svn:mime-type set to text/x-trac-wiki
File size: 1.5 KB


  1. Access to a BASE 3.0 server with web services
  2. Java 1.6 or later.
  3. Ant 1.6 or later.


This package contains some simple web services examples.

Installation and use

  1. Unpack the tar.gz file to a directory of your choice.
  2. Create a '' file and enter connection options as key=value pairs:
    • services.url The URL to the BASE web server. It should be the same URL as you use to login with the web interface with '/services' appended to it. For example: services.url=http://localhost:8080/base2/services

  • services.login The username for your account on the BASE web server.

  • services.password Your password for the BASE web server.

  • download.dir Set this option to a valid directory path to enable download of raw data from all raw bioassays. NOTE! Be careful with this option if you have a lot of data. All files from all raw bioassays will be downloaded!

  1. Run ant test to run the example code

You may also override the connection options on the command line. Use one or several -D options when starting Ant (on one line):

`ant -Dservices.url=http://localhost/base/services

-Dservices.login=mylogin -Dservices.password=mypassword -Ddownload.dir=./download test`


Type ant to compile the code.

Type ant package to create a download downloadable tar.gz package in the project


Note: See TracBrowser for help on using the repository browser.