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
Direct Known Subclasses
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns current logging IO.
-
#wsdl ⇒ Object
Returns URL of the current WSDL file.
Instance Method Summary collapse
-
#initialize(wsdl = nil) ⇒ SOAPWSDL
constructor
A new instance of SOAPWSDL.
-
#list_methods ⇒ Object
List of methods defined by WSDL.
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
#log ⇒ Object
Returns current logging IO.
51 52 53 |
# File 'lib/bio/io/soapwsdl.rb', line 51 def log @log end |
#wsdl ⇒ Object
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_methods ⇒ Object
List of methods defined by WSDL
106 107 108 |
# File 'lib/bio/io/soapwsdl.rb', line 106 def list_methods @driver.methods(false) end |