Class: Bio::SOAPWSDL

Inherits:
Object show all
Defined in:
lib/bio/io/soapwsdl.rb

Overview

Examples

class API < Bio::SOAPWSDL

def initialize
  @wsdl = 'http://example.com/example.wsdl'
  @log = File.new("soap_log", 'w')
  create_driver
end

end

Use HTTP proxy

You need to set following two environmental variables (case might be insensitive) as required by SOAP4R.

β€” soap_use_proxy

Set the value of this variable to β€˜on’.

β€” http_proxy

Set the URL of your proxy server (myproxy.com:8080 etc.).

Example to use HTTP proxy

% export soap_use_proxy=on % export http_proxy=localhost:8080

Direct Known Subclasses

DDBJ::XML, EBI::SOAP, HGC::HiGet, KEGG::API, NCBI::SOAP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wsdl = nil) ⇒ SOAPWSDL

Returns a new instance of SOAPWSDL.



54
55
56
57
58
# File 'lib/bio/io/soapwsdl.rb', line 54

def initialize(wsdl = nil)
  @wsdl = wsdl
  @log = nil
  create_driver
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*arg) ⇒ Object (private)



111
112
113
# File 'lib/bio/io/soapwsdl.rb', line 111

def method_missing(*arg)
  @driver.send(*arg)
end

Instance Attribute Details

#logObject

Returns current logging IO.



51
52
53
# File 'lib/bio/io/soapwsdl.rb', line 51

def log
  @log
end

#wsdlObject

Returns URL of the current WSDL file.



48
49
50
# File 'lib/bio/io/soapwsdl.rb', line 48

def wsdl
  @wsdl
end

Instance Method Details

#list_methodsObject

List of methods defined by WSDL



106
107
108
# File 'lib/bio/io/soapwsdl.rb', line 106

def list_methods
  @driver.methods(false)
end