RE: Make Authentication to Net Suite Environment
Hi,
For establishing connection to NetSuite , the following code was used
var OriginalUri = new System.Uri(nsService.Url);
if (account == null || account.Length == 0)
account = “empty”;
DataCenterUrls urls = nsService.getDataCenterUrls(account).dataCenterUrls;
Uri dataCenterUri = new Uri(urls.webservicesDomain + OriginalUri.PathAndQuery);
nsService.Url = dataCenterUri.ToString();
in this part : DataCenterUrls urls = nsService.getDataCenterUrls(account).dataCenterUrls; we transfer NetSuite Account ID in variable account and it always has returned dataCenterUrls
But for one of our clients this code : nsService.getDataCenterUrls(account).dataCenterUrls; returned null
I checked account ID several times and still can not get what is the cause of the problem.
.
What should I check ? Thanks in advance !
Hi,
Could you inspect nsService.getDataCenterUrls(account), as opposed to nsService.getDataCenterUrls(account).dataCenterUrls.
Also, has this account definitely for web services turned on? Not sure if that would cause this but thinking out loud.
Thanks,
Chris

