Page tree

Description

This is the first call into the Web services. The return value is used as the token in all other calls. 

Arguments

Required

Name

Data Type

Description

Yes

secid

string

Your security ID. To get a security ID, fill out the form on the API Website

Yes

siteid

int

Your site ID.

Note

If your site ID has any leading 0's or a W, do not pass the leading character in. For example, if your site ID is 012345, enter 12345.

Returns

Data Type

Name

Description

string

loginTokenResult

Your token ID needed to make other calls. The token will timeout after one hour of inactivity, and you will need to obtain another one.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. Placeholders are denoted by all caps and need to be replaced with actual values. For example, <token>STRING</token>.

 

Request
POST /acscfwsv2/wsca.asmx HTTP/1.1
Host: secure.accessacs.com
Content-Type: text/xml; charset=utf-8
Content-Length: LENGTH
SOAPAction: "http://acstechnologies.com/getLoginToken"

<?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>
   <getLoginToken xmlns="http://acstechnologies.com/">
     <secid>STRING</secid>
     <siteid>INT</siteid>
   </getLoginToken>
 </soap:Body>
</soap:Envelope>
Response
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>
   <getLoginTokenResponse xmlns="http://acstechnologies.com/">
     <getLoginTokenResult>STRING</getLoginTokenResult>
   </getLoginTokenResponse>
 </soap:Body>
</soap:Envelope>

 

SOAP 1.2

The following is a sample SOAP 1.2 request and response. Placeholders are denoted by all caps and need to be replaced with actual values. For example, <token>STRING</token>.

 

Request
POST /acscfwsv2/wsca.asmx HTTP/1.1
Host: secure.accessacs.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>
   <getLoginToken xmlns="http://acstechnologies.com/">
     <secid>STRING</secid>
     <siteid>INT</siteid>
   </getLoginToken>
 </soap12:Body>
</soap12:Envelope>
Response
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>
   <getLoginTokenResponse xmlns="http://acstechnologies.com/">
     <getLoginTokenResult>STRING</getLoginTokenResult>
   </getLoginTokenResponse>
 </soap12:Body>
</soap12:Envelope>