Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't login into my netsuite account in C#

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?

like image 586
Hamzeh Soboh Avatar asked Dec 12 '25 09:12

Hamzeh Soboh


1 Answers

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/

like image 80
Saqib Avatar answered Dec 13 '25 21:12

Saqib



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!