Authentication Methods for Web Services
Method | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Login | To make Web Service requests, you need to create a
| ||||||||||
Logout | If no Web Service request will be done, you need to
|
Warning | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
To interact with any Web Services, developers must first use the Login method to create a
|
Login
Anchor | ||||
---|---|---|---|---|
|
<login> | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
In order to make Web Service requests, you first need to
|
Parameters
Parameter | Value | |||||||
---|---|---|---|---|---|---|---|---|
Username | Web Service user name provided by RMC |
| ||||||
Password | Web Service password provided by RMC |
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?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> <Login xmlns="http://ws.euromsg.com/auth"> <Username>string</Username> <Password>string</Password> </Login> </soap:Body> </soap:Envelope> |
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <LoginResponse xmlns="http://ws.euromsg.com/auth"> <LoginResult> <Code>00</Code> <Message /> <DetailedMessage /> <ServiceTicket>3C860EC9BFF1B14BBF801</ServiceTicket> </LoginResult> </LoginResponse> </soap:Body> </soap:Envelope> |
Tip | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
If the request was successful, the
|
Warning | ||||||||
---|---|---|---|---|---|---|---|---|
|
Error Parameters
Code | Error Message | Description |
---|---|---|
99 | Invalip IP | Web servis isteği gönderilen IP’nin web servis kullanıcısında tanımlı olmadığını ifade eder. |
99 | No such user/password! | Login information or the Service URL is incorrect. |
Logout
Anchor | ||||
---|---|---|---|---|
|
<logout> | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ends the session started with
|
Parameters
Parameter | Value | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Session ID you want to end |
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?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> <Logout xmlns="http://ws.euromsg.com/auth"> <ServiceTicket>ABCDEFG</ServiceTicket> </Logout> </soap:Body> </soap:Envelope> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <LogoutResponse xmlns="http://ws.euromsg.com/auth"> <LogoutResult> <Code>00</Code> <Message /> <DetailedMessage /> </LogoutResult> </LogoutResponse> </soap:Body> </soap:Envelope> |
Tip | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
If the request was successful, the
|
Error Parameters
Code | Error Message | Detailed Message | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
9998 | Unauthorized User! | Object reference not set to an instance of an object. | Logout failed. Invalid
|