Class: Bio::NCBI::SOAP

Inherits:
SOAPWSDL show all
Defined in:
lib/bio/io/ncbisoap.rb

Overview

References

Methods

All methods accept a hash as its argument and most of the keys can be ommited (values are string).

Note: Methods which name ends with _MS are designed for use with Microsoft Visual Studio and SOAP Toolkit 3.0

  • www.ncbi.nlm.nih.gov/entrez/query/static/esoap_ms_help.html

  • run_eFetch(_MS)

    • “db”, “id”, “WebEnv”, “query_key”, “tool”, “email”, “retstart”, “retmax”, “rettype”, “strand”, “seq_start”, “seq_stop”, “complexity”, “report”

  • run_eGquery(_MS)

    • “term”, “tool”, “email”

  • run_eInfo(_MS)

    • “db”, “tool”, “email”

  • run_eSpell(_MS)

    • “db”, “term”, “tool”, “email”

  • run_eLink(_MS)

    • “db”, “id”, “reldate”, “mindate”, “maxdate”, “datetype”, “term” “dbfrom”, “WebEnv”, “query_key”, “cmd”, “tool”, “email”

  • run_eSearch(_MS)

    • “db”, “term”, “WebEnv”, “QueryKey”, “usehistory”, “tool”, “email”, “field”, “reldate”, “mindate”, “maxdate”, “datetype”, “RetStart”, “RetMax”, “rettype”, “sort”

  • run_eSummary(_MS)

    • “db”, “id”, “WebEnv”, “query_key”, “retstart”, “retmax”, “tool”, “email”

Complex data types

Direct Known Subclasses

EFetch, EFetchLite, EUtils, EUtilsLite

Defined Under Namespace

Classes: EFetch, EFetchLite, EUtils, EUtilsLite

Constant Summary collapse

BASE_URI =
"http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/"
SERVER_URI =

set default to EUtils

BASE_URI + "eutils.wsdl"

Instance Attribute Summary

Attributes inherited from SOAPWSDL

#log, #wsdl

Instance Method Summary collapse

Methods inherited from SOAPWSDL

#list_methods

Constructor Details

#initialize(wsdl = nil) ⇒ SOAP

Returns a new instance of SOAP.



73
74
75
# File 'lib/bio/io/ncbisoap.rb', line 73

def initialize(wsdl = nil)
  super(wsdl || self.class::SERVER_URI)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*arg) ⇒ Object



77
78
79
80
# File 'lib/bio/io/ncbisoap.rb', line 77

def method_missing(*arg)
  sleep 3			# make sure to rest for 3 seconds per request
  @driver.send(*arg)
end