In order to login and
create a session , you need to do something like this
//create
an object of Netsuite service
NetSuiteService
session = new NetSuiteService();
//add
a cookie container to it
session.CookieContainer = new
System.Net.CookieContainer();
//adding login credentials
Passport passport = new
Passport();
passport.account = your account id
passport.email = your email id
RecordRef role = new
RecordRef();
role.internalId = your role(write 3 if administrator account)
passport.role = role;
passport.password = your password
//logging in
Status status =
session.login(passport).status;
//returning status
return status.isSuccess;
In order to logout of the
session, run the following code.
Status status =
session.logout().status;
return status.isSuccess;
This comment has been removed by the author.
ReplyDeleteGet more information from http://www.netsuiteexpert.in/
ReplyDelete