I use the following code in my console application:
NetSuiteService service = new NetSuiteService();
Passport passport = new Passport();
passport.account = "TSTDRV976513";
passport.email = "[email protected]";
passport.password = "*******";
RecordRef role = new RecordRef();
role.internalId = "3";
passport.role = role;
Status status = service.login(passport).status;
I get the following error:
The request failed with the error message:
<html><head><title>302 Moved Temporarily</title></head>
--
--
</html>
Am I missing something?
Quick fix change the URL to webservices.na1.netsuite.com
Permanent Fix http://dreamxtream.wordpress.com/2012/11/23/new-data-centers-for-netsuite-accounts/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With