Skip to content

Commit

Permalink
Updates sandbox url to new address
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mutter committed Jan 26, 2018
1 parent 5b9f8de commit a39e9f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance.
4 changes: 2 additions & 2 deletions lib/netsuite/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/netsuite/namespaces/list_emp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/netsuite/namespaces/list_mkt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/netsuite/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a39e9f1

Please sign in to comment.