Versions Compared

Key

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

Status
colourGreen
titlePOST
 
Anchor
topy
topy

Service URLauth.asmx

 

Authentication

web servisine ait aşağıdaki metodlar bulunmaktadır.

Methods for Web Services

 

MethodDescription
Login

Webservis isteği yapılması için öncelikle Login metodu ile To make Web Service requests, you need to create a 

Status
subtletrue
colourRed
title Service Ticket
 alınmalıdır using the Login method.

Logout

Herhangi bir web servis isteği yapılmayacaksa, sistemden çıkış için If no Web Service request will be done, you need to 

Status
subtletrue
colourRed
titleLOGOUT
 kullanılmalıdır from the system.

Warning

Geliştiricinin her hangi bir web servis ile etkileşime geçebilmesi için, öncelikle Login metodunu kullanarak bir 

Status
subtletrue
colourRed
title Service Ticket
 alması gerekir. Diğer web servis ve metodlarına yaratmış olduğu bu değer ile istekte bulunabilir.

 


Login 
Anchor
login
login

Back to Top ^ 

<login>

Web servis istekleri yapabilmek için, önceIn order to make Web Service requests, you first need to

Status
subtletrue
colourRed
titleLogin
 olunup bir  and create a  
Status
subtletrue
colourRed
titleServiceTicket
 alınır. BuThis
Status
subtletrue
colourRed
titleServiceTicket
, her web servis isteğinde kullanılır is used on every Web Service request.

Parameters

 

ParameterValue 
UsernameWeb service Service user name provided by RMC

Status
colourGreen
titlemandatory

PasswordWeb service 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://ws.euromsg.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://ws.euromsg.com/auth">
            <LoginResult>
                <Code>00</Code>
                <Message />
                <DetailedMessage />
                <ServiceTicket>3C860EC9BFF1B14BBF801</ServiceTicket>
            </LoginResult>
        </LoginResponse>
    </soap:Body>
</soap:Envelope>
 

 

Tip
Başarılı istek durumunda If the request was successful, the
Status
subtletrue
colourRed
title<Code>
 parametresi parameter will return
Status
subtletrue
colourRed
title00
 olarak cevap döner as a response.
Warning
Status
subtletrue
colourRed
title<ServiceTicket>
 değeri, yanlızca giriş başarılı olduğu durumda döner value is granted only after a successful login. Bu değer saklanılmalı ve diğer web servis ve web servis metodları için istek yapılmak istenildiğinde kullanılmalıdır.

Error Parameters

 

CodeError MessageDescription
99Invalip IPWeb servis isteği gönderilen IP’nin web servis kullanıcısında tanımlı olmadığını ifade eder.
99No such user/password!Kullanıcı bilgileri yada login olunmaya çalışılan servis URL’i hatalı olabilirLogin information or the Service URL is incorrect.

 


Logout 
Anchor
logout
logout

Back to Top ^ 

<logout>
Web servis isteği yapılmayacaksa, 
Status
subtletrue
colourRed
titleLogin
 ile açılmış oturumu sonlandırır. 
Status
subtletrue
colourRed
titleServiceTicket
 sona erdirilir.

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://ws.euromsg.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://ws.euromsg.com/auth">
            <LogoutResult>
                <Code>00</Code>
                <Message />
                <DetailedMessage />
            </LogoutResult>
        </LogoutResponse>
    </soap:Body>
</soap:Envelope>
Tip
Başarılı istek durumunda If the request was successful, the 
Status
subtletrue
colourRed
title<Code>
 parametresi  parameter will return 
Status
subtletrue
colourRed
title00
 olarak cevap döner as a response.

Error Parameters

 

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

Logout failed. Invalid

<ServiceTicket>

Status
subtletrue
colourRed
titleServiceTicket
.