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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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