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

Last change on this file since 1436 was 1436, checked in by Nicklas Nordborg, 10 years ago

Preparing 'Web services examples 3.0' release.

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

Requirements

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

Introduction

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 'build.properties' 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`

Compiling

Type ant to compile the code.

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

directory.

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