System Services (SYS.SVC)
Introduction
This is the system interface service and provides the following services:
- Ping: Returns current date and time.
- Login: Authenticates user and returns authorization token.
- Logoff: Logs off current session.
Example Service: http://newsletter.ie/wcf/Sys.svc
LOGIN
Login must be executed before any other service is executed. This establishes your identification for subsequent requests. The session will time out if the token is not used.
Parameters
| Parameter |
Description |
Type |
| Organization |
Organization Name |
String |
| User |
User Name |
String |
| Password |
Password |
String |
Sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<Login xmlns="http://wcf.spinnakerpro.net/1.0">
<Organization>IntDemo</Organization>
<User>Demo</User>
<Password>demo12345</Password>
</Login>
</s:Body>
</s:Envelope>
|
Output
LoginReponse (Object)
- Security token (this token is used on every subsequent call) (string)
- Result (object - determines the success or failure of a service call)
|
LOGOFF
Ends current session.
Parameters
| Parameter |
Description |
Type |
| Token |
Security Token |
String |
Sample
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<LogOff xmlns="http://wcf.spinnakerpro.net/1.0">
<Token>44272795-b4fa-44fe-9f3c-ebd1cc88f0d1</Token>
</LogOff>
</s:Body>
</s:Envelope>
|