Login


Click here for a complete list of operations.

tryLogin

Description: If there is equivalence of username and password sent to database via TryLogin
method ,userkey is produced as unique. And webservice saves that userkey on itself. After that to reach
other methods, this userkey will be used.

Parameters Sent
Db:
'TVWEB' fixed
Agency: Code of connecting agency (string)
User: User code of connecting user (string)
Pwd: Password of connecting user (string)

Returning Parameters
LoginResult (Struct) Content:
LoginOk: If Login is successful, true, else false (bool)
Message: Returning warning message
UserKey: If user is enlisted, returning unique userkey value (string)

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 /Login.asmx HTTP/1.1
Host: tvws.paximum.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.tourvisio.com/tryLogin"

<?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>
    <tryLogin xmlns="http://www.tourvisio.com/">
      <db>string</db>
      <agency>string</agency>
      <user>string</user>
      <pwd>string</pwd>
    </tryLogin>
  </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>
    <tryLoginResponse xmlns="http://www.tourvisio.com/">
      <tryLoginResult>
        <Authenticated>boolean</Authenticated>
        <Description>string</Description>
        <AuthKey>string</AuthKey>
        <Supervisor>boolean</Supervisor>
      </tryLoginResult>
    </tryLoginResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /Login.asmx HTTP/1.1
Host: tvws.paximum.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <tryLogin xmlns="http://www.tourvisio.com/">
      <db>string</db>
      <agency>string</agency>
      <user>string</user>
      <pwd>string</pwd>
    </tryLogin>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <tryLoginResponse xmlns="http://www.tourvisio.com/">
      <tryLoginResult>
        <Authenticated>boolean</Authenticated>
        <Description>string</Description>
        <AuthKey>string</AuthKey>
        <Supervisor>boolean</Supervisor>
      </tryLoginResult>
    </tryLoginResponse>
  </soap12:Body>
</soap12:Envelope>