Hi All, I am using SOAP web service for one of the...
# integrations
r
Hi All, I am using SOAP web service for one of the integration requirement. I am getting invalid login atempt. And in the Login audit trail I am not finding any data related to the request I made. Can anyone help me in finding out what may be the problem. Post: https://1111111-sb1.suitetalk.api.netsuite.com/services/NetSuitePort_2021_2 <soapenv:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:platformCore='urn:core_2021_2.platform.webservices.netsuite.com' xmlns:tranEmp='urn:employees_2021_2.transactions.webservices.netsuite.com' xmlns:platformMsgs='urn:messages_2021_2.platform.webservices.netsuite.com'> <soapenv:Header> <tokenPassport xsi:type='platformCore:TokenPassport'> <account xsi:type='xsd:string'>111111-av3</account> <consumerKey xsi:type='xsd:string'>22222222222</consumerKey> <token xsi:type='xsd:string'>222222222222222222</token> <nonce xsi:type='xsd:string'>wwwwwwwwwwww</nonce> <timestamp xsi:type='xsd:long'>wwwwwwwwwww</timestamp> <signature algorithm='HMAC_SHA256' xsi:type='platformCore:TokenPassportSignature'>wwwwwwwwwwwwwwwwwwwwwwwwwwww</signature> </tokenPassport> </soapenv:Header> <soapenv:Body> <add xsi:type='platformMsgs:AddRequest'> <record xsi:type='tranEmp:TimeBill'> <employee xsi:type='platformCore:RecordRef' externalId='222222'/> <tranDate xsi:type='xsd:dateTime'>2024-03-05T072556.880Z</tranDate> <customer xsi:type='platformCore:RecordRef' externalId='222222'/> <hours xsi:type='platformCore:Duration'> <timeSpan xsi:type='xsd:double'>8</timeSpan> <unit xsi:type='xsd:string'>hour</unit> </hours> </record> </add> </soapenv:Body> </soapenv:Envelope> Response: <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>Invalid login attempt.</faultstring> <detail> <platformFaults:invalidCredentialsFault xmlns:platformFaults="urn:faults_2021_2.platform.webservices.netsuite.com"> <platformFaultscode&gt;USER ERROR&lt;/platformFaultscode> <platformFaults:message>Invalid login attempt.</platformFaults:message> </platformFaults:invalidCredentialsFault> </detail> </soapenv:Fault>
b
you want to make extra sure that that you know how to use the login audit trail
🙌 1
essentially the only way this request wouldn't get there is if you messed up the url or account id
you masked that data here so you need to understand how to find the suitetalk web servcices domain and the account id
they are not the same for sandbox accounts
s
Update: Me and @RAHUL PATIL Have successfully sent the request using SOAP. Please let us know if anyone facing the same issue!
TLDR: It was related to invalid signature
@battk thank you so much for suggestions. it was useful in debugging the issue.