Class: SOAP::MultiService::WSDL2Ruby
- Inherits:
-
Object
- Object
- SOAP::MultiService::WSDL2Ruby
- Defined in:
- lib/soapex/wsdl2ruby.rb
Constant Summary collapse
- Options =
[:classdef, :mapping_registry, :driver, :client_skelton, :servant_skelton, :standalone_server_stub, :cgi_stub]
Instance Attribute Summary collapse
-
#basedir ⇒ Object
readonly
Returns the value of attribute basedir.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(basedir, force = false, logger = nil) ⇒ WSDL2Ruby
constructor
A new instance of WSDL2Ruby.
- #run(location, options = {}) ⇒ Object
Constructor Details
#initialize(basedir, force = false, logger = nil) ⇒ WSDL2Ruby
Returns a new instance of WSDL2Ruby.
29 30 31 32 33 |
# File 'lib/soapex/wsdl2ruby.rb', line 29 def initialize(basedir, force=false, logger=nil) @basedir = basedir @force = force @logger ||= Logger.new(STDERR) end |
Instance Attribute Details
#basedir ⇒ Object (readonly)
Returns the value of attribute basedir.
24 25 26 |
# File 'lib/soapex/wsdl2ruby.rb', line 24 def basedir @basedir end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
24 25 26 |
# File 'lib/soapex/wsdl2ruby.rb', line 24 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
24 25 26 |
# File 'lib/soapex/wsdl2ruby.rb', line 24 def @options end |
Instance Method Details
#run(location, options = {}) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/soapex/wsdl2ruby.rb', line 35 def run(location, ={}) @modulepath = ([:modulepath] || "") @wsdl = import(location) @servicename = @wsdl.services[0].name.name Options.each do |optname| if .key?(optname) servicename = ([optname] || @servicename) method("create_#{optname.to_s}".to_sym).call(servicename) end end end |