# Table of contents:
# Introduction
UpdateProfile is one of the SOAP actions the Schematized Storage Service provides.
Update certain profile attributes.
# Client/Request
The template used in this action is described on the Schematized Storage Service main page.
# UpdateProfileThis element has only one attribute:
xmlns: This is always set tohttp://www.msn.com/webservices/storage/, followed by the version of the schema.
This element has one child and one optional child:
<profile>: Described below.<profileAttributesToDelete>: Optional. Described below.
This element contains two children:
<ResourceID>: The resource ID of the profile to modify.<ExpressionProfile>: Described below.
This element has four optional children:
<FreeText>: Unknown. This is always set toUpdate.<DisplayName>: The current or new display name.<PersonalStatus>: The current or new personal status message.<Flags>: The transaction flag. If there is an ongoing write operation, this is set to1. Otherwise, it is set to0.
This element has only one child:
<ExpressionProfileAttributes>: Described below.
This element has two optional children:
<DisplayName>: If this is set totrue, the display name will be deleted.<PersonalStatus>: If this is set totrue, the status message will be deleted.
# Server/Response
The template used in this action is described on the Schematized Storage Service main page.
# UpdateProfileResponseThis empty element has only one attribute:
xmlns: This is always set tohttp://www.msn.com/webservices/storage/, followed by the version of the schema.
# Examples
# Schema version w10
# Updating profile fields
# Client/Request
POST /storageservice/SchematizedStore.asmx HTTP/1.1
SOAPAction: http://www.msn.com/webservices/storage/w10/UpdateProfile
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 1080
<?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"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>
<soap:Header>
<StorageApplicationHeader xmlns="http://www.msn.com/webservices/storage/w10">
<ApplicationID>Messenger Client 8.5</ApplicationID>
<Scenario>RoamingIdentityChanged</Scenario>
</StorageApplicationHeader>
<StorageUserHeader xmlns="http://www.msn.com/webservices/storage/w10">
<Puid>0</Puid>
<TicketToken>t=ticket&p=profile</TicketToken>
</StorageUserHeader>
</soap:Header>
<soap:Body>
<UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
<profile>
<ResourceID>cid_4294967298!profile</ResourceID>
<ExpressionProfile>
<FreeText>Update</FreeText>
<DisplayName>example user</DisplayName>
<PersonalStatus>example status message</PersonalStatus>
</ExpressionProfile>
</profile>
</UpdateProfile>
</soap:Body>
</soap:Envelope>
# Server/Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 743
<?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>
<AffinityCacheHeader xmlns="http://www.msn.com/webservices/storage/w10">
<CacheKey>MjAyNi0wMi0wOFQxMDoxODozNi43MDVa</CacheKey>
</AffinityCacheHeader>
<StorageUserHeader xmlns="http://www.msn.com/webservices/storage/w10">
<Puid>0</Puid>
<Cid>4294967298</Cid>
<TicketToken>t=ticket&p=profile</TicketToken>
<IsAdmin>false</IsAdmin>
</StorageUserHeader>
</soap:Header>
<soap:Body>
<UpdateProfileResponse xmlns="http://www.msn.com/webservices/storage/w10" />
</soap:Body>
</soap:Envelope>
# Deleting profile fields
# Client/Request
POST /storageservice/SchematizedStore.asmx HTTP/1.1
SOAPAction: http://www.msn.com/webservices/storage/w10/UpdateProfile
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 1080
<?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"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>
<soap:Header>
<StorageApplicationHeader xmlns="http://www.msn.com/webservices/storage/w10">
<ApplicationID>Messenger Client 8.5</ApplicationID>
<Scenario>RoamingIdentityChanged</Scenario>
</StorageApplicationHeader>
<StorageUserHeader xmlns="http://www.msn.com/webservices/storage/w10">
<Puid>0</Puid>
<TicketToken>t=ticket&p=profile</TicketToken>
</StorageUserHeader>
</soap:Header>
<soap:Body>
<UpdateProfile xmlns="http://www.msn.com/webservices/storage/w10">
<profile>
<ResourceID>cid_4294967298!profile</ResourceID>
<ExpressionProfile>
<Flags>0</Flags>
</ExpressionProfile>
</profile>
<profileAttributesToDelete>
<ExpressionProfileAttributes>
<DisplayName>true</DisplayName>
<PersonalStatus>true</PersonalStatus>
</ExpressionProfileAttributes>
</profileAttributesToDelete>
</UpdateProfile>
</soap:Body>
</soap:Envelope>
# Server/Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 743
<?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>
<AffinityCacheHeader xmlns="http://www.msn.com/webservices/storage/w10">
<CacheKey>MjAyNi0wMi0wOFQxMDoxODozNi43MDVa</CacheKey>
</AffinityCacheHeader>
<StorageUserHeader xmlns="http://www.msn.com/webservices/storage/w10">
<Puid>0</Puid>
<Cid>4294967298</Cid>
<TicketToken>t=ticket&p=profile</TicketToken>
<IsAdmin>false</IsAdmin>
</StorageUserHeader>
</soap:Header>
<soap:Body>
<UpdateProfileResponse xmlns="http://www.msn.com/webservices/storage/w10" />
</soap:Body>
</soap:Envelope>