diff --git a/README.md b/README.md index a6332fbe4..91323ba4a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ NetSuite.configure do api_version '2012_1' # optionally specify full wsdl URL (to switch to sandbox, for example) - wsdl "https://webservices.sandbox.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" + wsdl "https://system.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" # if your datacenter is being switched, you'll have to manually set your wsdl location wsdl "https://webservices.na2.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" @@ -570,4 +570,4 @@ states.to_array.first[:get_all_response][:get_all_result][:record_list][:record] # About SuiteSync -[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance. \ No newline at end of file +[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance. diff --git a/lib/netsuite/configuration.rb b/lib/netsuite/configuration.rb index ac6e3aa88..7254a9002 100644 --- a/lib/netsuite/configuration.rb +++ b/lib/netsuite/configuration.rb @@ -124,7 +124,7 @@ def wsdl(wsdl = nil) else attributes[:wsdl] ||= begin if sandbox - "https://webservices.sandbox.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" + "https://system.netsuite.com/wsdl/v#{api_version}_0/netsuite.wsdl" else "https://#{wsdl_domain}/wsdl/v#{api_version}_0/netsuite.wsdl" end @@ -138,7 +138,7 @@ def wsdl_domain(wsdl_domain = nil) else # if sandbox, this parameter is ignored if sandbox - 'webservices.sandbox.netsuite.com' + 'system.netsuite.com' else attributes[:wsdl_domain] ||= 'webservices.netsuite.com' end diff --git a/lib/netsuite/namespaces/list_emp.rb b/lib/netsuite/namespaces/list_emp.rb index 0063eedaa..657c6cbb4 100644 --- a/lib/netsuite/namespaces/list_emp.rb +++ b/lib/netsuite/namespaces/list_emp.rb @@ -2,7 +2,7 @@ module NetSuite module Namespaces module ListEmp - # https://webservices.sandbox.netsuite.com/xsd/lists/v2013_2_0/employees.xsd + # https://system.netsuite.com/xsd/lists/v2013_2_0/employees.xsd def record_namespace 'listEmp' end diff --git a/lib/netsuite/namespaces/list_mkt.rb b/lib/netsuite/namespaces/list_mkt.rb index 4e04c952b..e640fc177 100644 --- a/lib/netsuite/namespaces/list_mkt.rb +++ b/lib/netsuite/namespaces/list_mkt.rb @@ -2,7 +2,7 @@ module NetSuite module Namespaces module ListMkt - # https://webservices.sandbox.netsuite.com/xsd/lists/v2013_2_0/marketing.xsd + # https://system.netsuite.com/xsd/lists/v2013_2_0/marketing.xsd def record_namespace 'listMkt' end diff --git a/spec/netsuite/configuration_spec.rb b/spec/netsuite/configuration_spec.rb index e3eaf7669..a826c6e34 100644 --- a/spec/netsuite/configuration_spec.rb +++ b/spec/netsuite/configuration_spec.rb @@ -355,8 +355,8 @@ expect(config.wsdl).to include('custom.domain.com') config.sandbox = true - expect(config.wsdl_domain).to eq('webservices.sandbox.netsuite.com') - expect(config.wsdl).to include('webservices.sandbox.netsuite.com') + expect(config.wsdl_domain).to eq('system.netsuite.com') + expect(config.wsdl).to include('system.netsuite.com') end describe '#logger=' do