Method: NetSuite::Configuration#wsdl
- Defined in:
- lib/netsuite/configuration.rb
#wsdl(wsdl = nil) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/netsuite/configuration.rb', line 58 def wsdl(wsdl = nil) if wsdl self.wsdl = wsdl else if sandbox wsdl_path = "https://webservices.sandbox.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" else wsdl_path = File.("../../../wsdl/#{api_version}.wsdl", __FILE__) unless File.exists? wsdl_path wsdl_path = "https://#{wsdl_domain}/wsdl/v#{api_version}_0/netsuite.wsdl" end end attributes[:wsdl] ||= wsdl_path end end |