Unsuccessful results are provided the same format successful ones are.
If the authentication fails, you will still receive a JSON/XML but with the result message giving you the error explanation, an example can be seen below.
{ "Envelope": { "Success": "0", "Message": "Invalid credentials", "Info": { "Version": "1.0.0", "Run_Date": "20211005090802", "Executed_ms": "1" }, "Result": "" } }
<?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"> <soap:Body> <GetTokenResponse xmlns="http://tempuri.org/"> <GetTokenResult> <Envelope xmlns=""> <Success>0</Success> <Message>Invalid credentials</Message> <Info> <Version>1.0.0</Version> <Run_Date>20211005091100</Run_Date> <Executed_ms>1</Executed_ms> </Info> <Result></Result> </Envelope> </GetTokenResult> </GetTokenResponse> </soap:Body> </soap:Envelope>
Last updated 3 years ago