Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Getting error during logging in into webservice
string accountId ="12345";
Uri myUri = new Uri("https://webservices.netsuite.com");
serv.CookieContainer = new CookieContainer();
serv.CookieContainer.SetCookies(myUri, "ACCOUNT=" + accountId);
// accountId is the string value of the NetSuite account being logged
Passport passport = new Passport();
passport.email ="___@_______.com";
passport.password ="____";
passport.account="_____";;
Status status2 = (serv.login(passport)).status;
getting the following error:
com.netledger.dto.v2_5.faults.InvalidVersionFault: You must specify the ACCOUNT cookie in the http header in order to login through Web Services. Please see the FAQs on the WS portal for more information.