Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


General Information

Authentication Web Service includes necessary login and logout methods to execute Web Service requests. You must first  Login and get a  Service Ticket each time you would like to make a Web Service request or access other Web Service methods. 

Authentication Methods for Web Services



MethodDescription
Login

To make Web Service requests, you need to create a 

Status
subtletrue
colourRed
title Service Ticket
 using the Login method.

Logout

If no Web Service request will be done, you need to 

Status
subtletrue
colourRed
titleLOGOUT
 from the system.




Warning

To interact with any Web Services, developers must first use the Login method to create a

Status
subtletrue
colourRed
title Service Ticket
. Developers can send requests to other Web Service and methods using this
Status
subtletrue
colourRed
title Service Ticket
.


Login 
Anchor
login
login

Back to Top ^ 

<login>

In order to make Web Service requests, you first need to

Status
subtletrue
colourRed
titleLogin
 and create a  
Status
subtletrue
colourRed
titleServiceTicket
. This
Status
subtletrue
colourRed
titleServiceTicket
is used on every Web Service request.

Parameters


ParameterValue
UsernameWeb Service user name provided by RMC

Status
colourGreen
titlemandatory

PasswordWeb Service password provided by RMC

Status
colourGreen
titlemandatory




Code Block
languagexml
titleREQUEST EXAMPLE
linenumberstrue
<?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://api.relateddigital.com/auth"> 
			<Username>string</Username> <Password>string</Password> 
		</Login> 
	</soap:Body> 
</soap:Envelope>



Code Block
languagexml
titleRESPONSE EXAMPLE
<?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://api.relateddigital.com/auth">
            <LoginResult>
                <Code>00</Code>
                <Message />
                <DetailedMessage />
                <ServiceTicket>3C860EC9BFF1B14BBF801</ServiceTicket>
            </LoginResult>
        </LoginResponse>
    </soap:Body>
</soap:Envelope>
Tip
If the request was successful, the
Status
subtletrue
colourRed
title<Code>
 parameter will return
Status
subtletrue
colourRed
title00
 as a response.
Warning
Status
subtletrue
colourRed
title<ServiceTicket>
 value is granted only after a successful login. This value must be saved and used to make requests for other web service and web service methods.
Status
subtletrue
colourRed
title<ServiceTicket>
expire time is two hours. But IIS can be recycle before this periot. if you received "No session" error; you can re-login and continue the process.

Error Parameters


CodeError MessageDescription
99Invalip IPInvalid Source IP. Your Source IP should be whitelisted by RMC Technical Client Support.
99No such user/password!Login information or the Service URL is incorrect.



Logout 
Anchor
logout
logout

Back to Top ^ 

<logout>

Ends the session started with 

Status
subtletrue
colourRed
titleLogin
 . 
Status
subtletrue
colourRed
titleServiceTicket
is ended if no Web Service requests will be made.

Parameters


ParameterValue

Status
subtletrue
colourRed
titleServiceTicket

Session ID you want to end

Status
colourGreen
titlemandatory



Code Block
languagexml
titleREQUEST EXAMPLE
linenumberstrue
<?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://api.relateddigital.com/auth"> 
			<ServiceTicket>ABCDEFG</ServiceTicket> 
		</Logout> 
	</soap:Body> 
</soap:Envelope>



Code Block
languagexml
titleRESPONSE EXAMPLE
linenumberstrue
<?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://api.relateddigital.com/auth">
            <LogoutResult>
                <Code>00</Code>
                <Message />
                <DetailedMessage />
            </LogoutResult>
        </LogoutResponse>
    </soap:Body>
</soap:Envelope>
Tip
If the request was successful, the 
Status
subtletrue
colourRed
title<Code>
 parameter will return 
Status
subtletrue
colourRed
title00
 as a response.

Error Parameters


CodeError MessageDetailed MessageDescription
9998Unauthorized User!Object reference not set to an instance of an object.

Logout failed. Invalid

Status
subtletrue
colourRed
titleServiceTicket
.




Parent Topic: SOAP Web Service

<?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>