![]() |
This is an old revision of the document! Table of Contents
FAQAnswers to frequently asked questions (FAQs) about EBI's Web Services. If you have a question that is not answered here please contact EBI Support. How do I use these services?This largely depends on how you want to use the services. There are two main categories of usage:
Client DevelopmentIf you want to develop you own clients to the EBI Web Services, then you will need to set-up an appropriate development environment for your chosen programming language and select an appropriate SOAP library. A number of tutorials are provided covering most common programming languages: Existing ClientsIf you want to download a client and use the service right away then see the clients pages for the service of interest (list). The clients page (e.g. InterProScan Clients) provides a list of clients and details of the pre-requisites. For most services we provide command-line clients for Java and Perl. For a few selected services a number of other clients are also available (e.g. WSDbfetch). Which client you want to use depends on the platform. Currently we recommend using:
If you have other processes using specific programming languages then you may wish to look at the corresponding client, where available. What tools do I need?If you want to download a client and get running with a service quickly, then see the clients page for the service of interest (list) for details of any existing clients. If you want to develop you own clients, or services, you will need to choose a programming language and, if SOAP is not included with the language, a SOAP library. There are a wide selection of possibilities, some of the more common solutions are:
Tutorials on using a selection of these languages and libraries can be found in the tutorials pages. How can I analyse multiple sequences?The Web Services provided by EBI are limited to one sequence, or one set of sequences, per job. Thus if you wish to analyse multiple sequences you will have to submit multiple jobs. The simplest way to do this is to create a set of files containing one sequence per file, and then loop over the files submitting each one, and getting the result. To split a file containing multiple fasta formatted sequences use the following scripts:
These scripts require the To following scripts illustrate how to submit the jobs:
How do I specify a proxy?Depending on your environment you may need to specify an HTTP proxy to access the Internet. PerlPerl, and many other scripting languages, read a set of environment variables to get the details of the available HTTP proxy. For UNIX and UNIX-like environments it is simplest to set these in your shell's start-up scripts.
C-shell (csh or tcsh) in setenv http_proxy 'http://proxy.example.org:8080' setenv HTTP_proxy 'http://proxy.example.org:8080' # For proxies requiring a username/password use: #setenv http_proxy 'http://username:password@proxy.example.org:8080' #setenv HTTP_proxy 'http://proxy.example.org:8080' #setenv HTTP_proxy_user 'username' #setenv HTTP_proxy_pass 'password'
Bourne shell (sh or bash) in http_proxy='http://proxy.example.org:8080' HTTP_proxy='http://proxy.example.org:8080' export http_proxy HTTP_proxy # For proxies requiring a username/password use: #http_proxy='http://username:password@proxy.example.org:8080' #HTTP_proxy='http://proxy.example.org:8080' #HTTP_proxy_user='username' #HTTP_proxy_pass='password' #export http_proxy HTTP_proxy HTTP_proxy_user HTTP_proxy_pass For SOAP::Lite you can also set the HTTP proxy directly, see the Perl tutorial for details. If you cannot set the environment variables directly then you can set them from your Perl script. For example: $ENV{'http_proxy'} = 'http://proxy.example.org:8080'; $ENV{'HTTP_proxy'} = 'http://proxy.example.org:8080'; # For proxies requiring a username/password use: #$ENV{'http_proxy'} = 'http://username:password@proxy.example.org:8080'; #$ENV{'HTTP_proxy'} = 'http://proxy.example.org:8080'; #$ENV{'HTTP_proxy_user') = 'user'; # Proxy username (if required) #$ENV{'HTTP_proxy_pass'} = 'password'; # Proxy password (if required) See the documentation for the web tool kit being used for more details. JavaTo use a HTTP proxy from Java you can set appropriate variables in your command line: java -Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 If your proxy requires a username and password: java -Dhttp.proxyHost=proxy.example.org -Dhttp.proxyPort=8080 -DproxyUser=username -DproxyPassword=password Why do you need my e-mail address?We require a valid e-mail address so we can contact you in the event of problems with the service which affect your jobs. As described in our Terms of Use this information is not provided to anyone else, nor will we contact you except for the reasons stated above. If you use a fake e-mail address then we will not be able to contact you and will very likely result in your jobs being killed and your IP, Organisation or entire domain being black-listed. Staying InformedTo stay informed about changes to the EBI web services and scheduled maintenance we recommend:
Perl: Installing modules on MS Windows?The standard Perl module installation routine: perl Makefile.PL make make test make install
assumes that your environment includes a version of the
For details of how to install Perl: I installed SOAP::Lite, but I get an error?The latest version of SOAP::Lite (0.710.10) contains changes that affect compatibility with our services. Typical error messages indicating compatibility problems include:
Current workarounds for these problems are:
Java: Axis 1.2/1.3 does not work?The client stubs produced by Axis WSDL2Java are version specific. The supplied clients have been built using Axis 1.4, provided in lib-1.4.zip. If you want to use a different version of Axis you will have to regenerate the stubs and re-compile, see the Java tutorial for further details. Java: NoClassDefFoundError errorThis means that Java is not finding required classes. For example: > java WSEmbossClient Exception in thread "main" java.lang.NoClassDefFoundError: WSEmbossClient If the libraries and the current directory are not in the Java classpath use something like: java -Djava.ext.dirs=lib -cp . WSEmbossClient
If you are using the provided libraries from Taverna: How can I poll for my results?Taverna 1.xPolling is implemented using the retry mechanism and a nested workflow. See Taverna tutorial: Polling for Results. Example Taverna 1.x workflows for the EBI services can be found in myExperiment. Taverna 2.xIn Taverna 2 the polling loop is handled as a property of the processor, rather then as an external workflow. Example Taverna 2 workflows for the EBI services can be found in myExperiment. Which databases are available?For a list of the database names used by dbfetch and the sequence similarity search services (e.g. WSFasta, WSNCBIBlast and WSWUBlast) see: Available databases. Some of the services provide methods to get the details of the available databases at run time, see the page for the service for further details (list). How do I cite a service?Depending on the service there may be a specific publication for the service which should be used, see the service documentation for details (list). If the service does not have a specific publication then one of the generic publications detailing the EBI Web Services can be used, see references. ![]() |