![]() |
Table of Contents
WSDbfetch (SOAP)DescriptionWSDbfetch allows you to retrieve entries from various up-to-date biological databases using entry identifiers or accession numbers. This is equivalent to the CGI based dbfetch service. Like the CGI service a request can return a maximum of 200 entries. For more information see: Web services registry entries: ClientsSample clients are provided for a number of programming languages. For details of how to use these clients, download the client and run the program without any arguments. WSDbfetch document/literal SOAP
WSDbfetch RPC/encoded SOAP
For further details see WSDbfetch Clients. WorkflowsIn addition to these sample clients users have submitted workflows using these services to the myExperiment workflow repository. See workflows using the WSDbfetch Web Services for a list. WSDLThere are three interfaces to the WSDbfetch (SOAP) service, each with its own WSDL:
Service APIfetchBatch(db, ids, format, style)Fetch a set of entries in a defined format and style. Arguments:
Returns: The format of the response depends on the interface to the service used:
Throws:
fetchData(query, format, style)Fetch an entry in a defined format and style. Arguments:
Returns: The format of the response depends on the interface to the service used:
Throws:
getDatabaseInfo(db)Get details describing specific database, including the available data formats and result styles. Note: WSDBFetchDoclitServerService (document/literal) only. Arguments:
Returns: a data structure describing the database:
Throws:
getDatabaseInfoList()Get details of all available databases, includes details of the available data formats and result styles. Note: WSDBFetchDoclitServerService (document/literal) only. Arguments: none Returns: a list of data structures describing the databases. See getDatabaseInfo(db) for a description of the data structure. getDbFormats(db)Get a list of format names for a given database. Arguments:
Returns: an array of strings containing the format names. Throws:
getFormatStyles(db, format)Get a list of style names available for a given database and format. Arguments:
Returns: an array of strings containing the style names. Throws:
getSupportedDBs()Get a list of database names usable with WSDbfetch. Arguments: none Returns: an array of strings containing the database names. getSupportedFormats()Get a list of database and format names usable with WSDbfetch. Deprecated: use of getDbFormats(db), getDatabaseInfo(db) or getDatabaseInfoList() is recommended. Arguments: none Returns: an array of strings containing the database and format names. For example: uniprotkb default,fasta,uniprot,uniprotxml getSupportedStyles()Get a list of database and style names usable with WSDbfetch. Deprecated: use of getFormatStyles(db, format), getDatabaseInfo(db) or getDatabaseInfoList() is recommended. Arguments: none Returns: an array of strings containing the database and style names. For example: uniprotkb default,html,raw DbfExceptionGeneric exception used for errors thrown by the WSDbfetch service. Subclasses: DbfParamsExceptionException indicating that the input parameters failed to validate. The message contains specific information about the cause. For example:
Parent class: DbfException DbfConnExceptionException indicating that there was a problem contacting the database to retrieve the requested data. For example: uk.ac.ebi.jdbfetch.exceptions.DbfConnException: Unexpected error when opening stream on the URL, please contact support@ebi.ac.uk Parent class: DbfException DbfNoEntryFoundExceptionException indicating that no entries were found in the database which matches the request. For example: uk.ac.ebi.jdbfetch.exceptions.DbfNoEntryFoundException: No result found Common causes of the error include:
Parent class: DbfException InputExceptionException indicating that required parameters were not specified, or were in an incorrect format. For example:
ContactIf you have any questions, comments, if you plan to use this service as part of a course or for a high number of submissions, please contact us via EBI Support. ![]() |