Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Getting Started
OK, slightly frustrated here.
A week ago I had a very basic web services client running where I was able to instantiate the Netsuite service and login.
I've since lost that code, and am starting fresh with the Getting Started guide.
Here's my code:
<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="NSWSClient._default" %>
<%
NetSuiteService service = new NetSuiteService();
service.CookieContainer = new CookieContainer(2);
//invoking the login operation.
Passport passport = new Passport();
passport.account = "MYACTNUMBER";
passport.email = "myemail@netsuite.com";
RecordRef role = new RecordRef();
role.id = "3";
passport.role = role;
passport.password = "mypassword";
Status status = service.login( passport ).status;