Class: Bio::SOAPWSDL
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
Instance Attribute Summary (collapse)
-
- (Object) log
Returns current logging IO.
-
- (Object) wsdl
Returns URL of the current WSDL file.
Instance Method Summary (collapse)
-
- (SOAPWSDL) initialize(wsdl = nil)
constructor
A new instance of SOAPWSDL.
-
- (Object) list_methods
List of methods defined by WSDL.
Constructor Details
- (SOAPWSDL) initialize(wsdl = nil)
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
- (Object) method_missing(*arg) (private)
111 112 113 |
# File 'lib/bio/io/soapwsdl.rb', line 111 def method_missing(*arg) @driver.send(*arg) end |
Instance Attribute Details
- (Object) log
Returns current logging IO.
51 52 53 |
# File 'lib/bio/io/soapwsdl.rb', line 51 def log @log end |
- (Object) wsdl
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
- (Object) list_methods
List of methods defined by WSDL
106 107 108 |
# File 'lib/bio/io/soapwsdl.rb', line 106 def list_methods @driver.methods(false) end |