Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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;