Mobile SDK > Disconnected mobile application reference > Mobile Synchronization Web Service (MobileSyncWebService) reference > URL overview > /Logon URL
 
/Logon URL
Description
Obtains a session token for use in subsequent requests.
Get Request
The client needs to supply an UNICOM Intelligence Interviewer - Server Admin user name and password (select Basic authentication). The client must supply an Authorization header variable. The variable's value consists of the word Basic followed by a space and the Base64 encoded user name and password (in the form username:password). The client must also supply a Device-Id header variable that can be used to uniquely identify the device. The header variable can either be the ANDROID_ID or another application created GUID that is created the first time the application is installed and used. The header variable is used to track the number of unique devices that use the synchronization service. For more information regarding ANDROID_ID, see the Android developer Settings.Secure documentation:
http://developer.android.com/reference/a:ndroid/provider/Settings.Secure.html#ANDROID_ID
Get Response
When the user name and password are correct, the HTTP response is empty and produces a 200: OK status code. When the user name or password are not correct, a 401: Unauthorized status is returned. A successful response also contains a Session-Token header variable. The variable is a GUID that is generated by theSyncWebServiceV2 and tracked by the MobileSyncWebService. All subsequent requests to the web service require that the session token is included in the header.
See also
URL overview