Discussions
SuiteTalk WebServices Platform Guide fails right out the box
The code snippet on page 22 under "Getting started" doesn't even compile.
Passport passport = new Passport();
passport.account = "TSTDRV96";
passport.email = "username@netsuite.com";
RecordRef role = new RecordRef();
role.id = "3";
passport.role = role;
passport.password = "mypassword";
Status status = service.login( passport ).status;
On line#5, it isn't role.id. It's "role.internalId"
Then when I run it, I get "<html><head><title>302 Moved Temporarily</title></head>"
Come on, Netsuite. What a way to make your first impression! Is the rest of the "Guide" full of inaccuracies and outdated information? For crying out loud, it's an online PDF document which would take you very little time to update and reupload.