# Table of contents:
# Introduction
CreateProfile is one of the SOAP actions the Schematized Storage Service provides.
Creates a profile.
Seen when responding to a GetProfile request without a <ExpressionProfile> in the response.
The client will then request a ShareItem action with the new profile resource ID.
# Client/Request
The template used in this action is described on the Schematized Storage Service main page.
# CreateProfileThis 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 only one child:
<ExpressionProfile>: Described below.
This element has two children:
<PersonalStatus>: This element usually only contains an empty string. If it doesn't, it likely contains the current personal status message to save.<RoleDefinitionName>: This element always contains the valueExpressionProfileDefault.
# Server/Response
The template used in this action is described on the Schematized Storage Service main page.
# CreateProfileResponseThis 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 only one child:
<CreateProfileResult>: The resource ID of the created profile.
# Examples
# Schema version w10
# Expression profile
# Client/Request
POST /storageservice/SchematizedStore.asmx HTTP/1.1
SOAPAction: http://www.msn.com/webservices/storage/w10/CreateProfile
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 982
<?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.0</ApplicationID>
<Scenario>Timer</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>
<CreateProfile xmlns="http://www.msn.com/webservices/storage/w10">
<profile>
<ExpressionProfile>
<PersonalStatus></PersonalStatus>
<RoleDefinitionName>ExpressionProfileDefault</RoleDefinitionName>
</ExpressionProfile>
</profile>
</CreateProfile>
</soap:Body>
</soap:Envelope>
# Server/Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 847
<?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>
<CreateProfileResponse xmlns="http://www.msn.com/webservices/storage/w10">
<CreateProfileResult>cid_4294967298!expressionprofile</CreateProfileResult>
</CreateProfileResponse>
</soap:Body>
</soap:Envelope>