Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Web Service with Java doesn't work
try { NetSuiteServiceLocator service = new NetSuiteServiceLocator(); service.setMaintainSession( true ); NetSuitePortType port = service.getNetSuitePort(); RecordRef role = new RecordRef(); Passport passport = new Passport(); passport.setEmail( "**************" ); passport.setPassword( "************" ); role.setInternalId("3"); passport.setRole( role ); passport.setAccount( "**************" ); StatusDetail[] status = port.login( passport ).getStatus(); Customer cust = new Customer(); cust.setEntityId("Webservice Company"); cust.setCompanyName("Bla Bla"); cust.setInternalId("9000"); // Tried without this as well cust.setPhone("111111111111"); WriteResponse response = port.add( cust ); port.logout(); } catch (Exception e) { e.getMessage(); } I get no exceptions, and it must be logging in because if I change the username, password or account it will give me error messages. It runs without any warnings or errors, but it doesn't add a customer. Any ideas?
0