Sunday, April 14, 2019

Web Services (ssoLogin) > Getting invalidCredentialsFault

Web Services (ssoLogin) > Getting invalidCredentialsFault
  • This happens when either the authenticationToken or partnerId is not correct.
  • Solution is just to make sure that the authenticationToken or partnerId is correct.

Example SOAP Request (Incorrect authenticationToken):

correct authenticationToken = 7EFC14CABE826CF5F224A886F7C0350E8EFCB3B665701C0F0E946E543C944D020A2FC86C9E639FAD813E835745B7FABE6E09A8A9394D58BD67C6CE6978B298821C5D69FE9C2E5645783B5FA97D0A1F7B4F05D4376EB4624B9C304DE6FFDEA798C608B9FDDE44954D1CBB5157AE7A6AF44E1862465788F44240ED374BA3C3F201

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2013_1.platform.webservices.netsuite.com">

<soap:Header>
<platformMsgs:applicationInfo/>
<platformMsgs:partnerInfo/>
</soap:Header>
<soap:Body>
<platformMsgs:ssoLogin>
<platformMsgs:ssoPassport>
<platformCore:authenticationToken>EFC14CABE826CF5F224A886F7C0350E8EFCB3B665701C0F0E946E543C944D020A2FC86C9E639FAD813E835745B7FABE6E09A8A9394D58BD67C6CE6978B298821C5D69FE9C2E5645783B5FA97D0A1F7B4F05D4376EB4624B9C304DE6FFDEA798C608B9FDDE44954D1CBB5157AE7A6AF44E1862465788F44240ED374BA3C3F201</platformCore:authenticationToken>
<platformCore:partnerId>195863</platformCore:partnerId>
</platformMsgs:ssoPassport>
</platformMsgs:ssoLogin>
</soap:Body>
</
soap:Envelope>

SOAP Response:

<?xml version="1.0" encoding="utf-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>An unexpected error occurred.</faultstring>
<detail>
<platformFaults:invalidCredentialsFault xmlns:platformFaults="urn:faults_2013_1.platform.webservices.netsuite.com">
<platformFaults:code>UNEXPECTED_ERROR</platformFaults:code>
<platformFaults:message>An unexpected error occurred.</platformFaults:message>
</platformFaults:invalidCredentialsFault>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners-java10001.bos.netledger.com</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</
soapenv:Envelope>

 

 

No comments:

Post a Comment