UserService


Click here for a complete list of operations.

SignIn

Create auth. ticket for temporary use with other api calls

Params:
  • login - user login
  • password - user password
Result: AuthTicket
  • ticket - contains temporarry ticket (currently for 2 days use)
  • expirationTime - time of ticket expiration
Soap client fault messages:
  • AccessDenied - access to api is denied. Also coused by wrong user billing package
  • IncorrectLoginOrPassword - login or password is incorrect

Test

The test form is only available for requests from the local machine.

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 /api/soap/v1/user.asmx HTTP/1.1
Host: www.host-tracker.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.host-tracker.com/Services/SignIn"

<?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>
    <SignIn xmlns="http://www.host-tracker.com/Services">
      <login>string</login>
      <password>string</password>
    </SignIn>
  </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>
    <SignInResponse xmlns="http://www.host-tracker.com/Services">
      <SignInResult>
        <ticket>string</ticket>
        <expirationTime>dateTime</expirationTime>
        <expirationUnixTime>int</expirationUnixTime>
      </SignInResult>
    </SignInResponse>
  </soap:Body>
</soap:Envelope>