Avatar · SOAP Services
Perishable Logistics AI Agent
0.01% Better each day

Authentication

← Back to Authentication  |  Service Description (WSDL)

authenticate

Authenticates an Avatar machine-to-machine client using its credentials (strLogIn / strPassword) and returns a bearer access token as a string in authenticateResult.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /authentication/auth.asmx HTTP/1.1
Host: clientsws.avatarflower.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "authenticate"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <authenticate xmlns="http://tempuri.org/">
      <strLogIn>authenticate_strLogInType</strLogIn>
      <strPassword>authenticate_strPasswordType</strPassword>
    </authenticate>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <authenticateResponse xmlns="http://tempuri.org/">
      <authenticateResult>string</authenticateResult>
    </authenticateResponse>
  </soap:Body>
</soap:Envelope>