This is very much a new user question... I have been trying to follow through the getting started example, to at least add a customer. However, I am encountering the following error:
"An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll
Additional information: com.netledger.dto.v1_3.faults.InvalidCredentialsFault: You have entered an invalid e-mail address or account number. Please try again."
Can you make any suggestions to help troubleshoot? Sample code I am using is shown below (with email, password etc removed).
I have obtained my account number from Support > Customer Service > Contact Support by phone.
I have also enabled web services from Setup > Company > Enable Features.
From Setup > Integration > Web Services I have added myself with a Web Services default role. (Was this step necessary?)
Note that the line "role.internalId = "3" " is different to the getting started guide, but I assume the correct property is internalId not Id?
Any suggestions would be appreciated.
Regards,
Tim
Snippet of code (VB.Net) being used:
Imports NetSuiteSample.com.netsuite.webservices
Imports System.Net
Public Class NetSuiteSample
Inherits System.Windows.Forms.Form
' Windows Form Designer generated code removed
Private service As NetSuiteService = New NetSuiteService
Private thisPassport As Passport = New Passport
Private role As RecordRef = New RecordRef
Private status As status
'From FAQ:
Private thisUri As Uri = New Uri("https://webservices.netsuite.com")
'_service.CookieContainer = new CookieContainer();
'// accountId is the string value of the NetSuite account being logged into
'_service.CookieContainer.SetCookies(myUri,"ACCOUNT=" + accountId);
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
'MessageBox.Show("now loading")
service.CookieContainer = New CookieContainer(2)
thisPassport.account = "<accountnumber>"
thisPassport.email = "<email>"
role.internalId = "3" 'different to the docs!
thisPassport.role = role
thisPassport.password = "<password>"
'from FAQ
service.CookieContainer.SetCookies(thisUri, "ACCOUNT=" & thisPassport.account)
'Attempt login
status = service.login(thisPassport).status
lblResult.Text = "got thru login"
End Sub
End Class