# Table of contents:
# Introduction
UpdateReadState is one of the SOAP actions the RSI provides.
Changes the read state for a message on the offline message server.
# Client/Request
The template used in this action is described on the RSI main page.
# UpdateReadStateThis element has only one attribute:
xmlns: This is always set tohttp://www.hotmail.msn.com/ws/2004/09/oim/rsi.
This element has two children:
<messageId>: The message ID to change the read state of.<readState>: Iftrue, this message will be marked as read.falsemarks the message as unread.
# Server/Response
The template used in this action is described on the RSI main page.
# UpdateReadStateResponseThis element has only one attribute:
xmlns: This is always set tohttp://www.hotmail.msn.com/ws/2004/09/oim/rsi.
# Examples
# Client/Request
POST /rsi/rsi.asmx HTTP/1.1
SOAPAction: http://www.hotmail.msn.com/ws/2004/09/oim/rsi/UpdateReadState
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 584
<?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:Header>
<PassportCookie xmlns="http://www.hotmail.msn.com/ws/2004/09/oim/rsi">
<t>ticket</t>
<p>profile</p>
</PassportCookie>
</soap:Header>
<soap:Body>
<UpdateReadState xmlns="http://www.hotmail.msn.com/ws/2004/09/oim/rsi">
<messageId>MSG1784881639.24</messageId>
<readState>true</readState>
</UpdateReadState>
</soap:Body>
</soap:Envelope>
# Server/Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 340
<?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>
<UpdateReadStateResponse xmlns="http://www.hotmail.msn.com/ws/2004/09/oim/rsi" />
</soap:Body>
</soap:Envelope>