# Table of contents:

# Introduction

ShareItem is one of the SOAP actions the Schematized Storage Service provides.

Shares an item.
Seen after responding to a CreateProfile or GetProfile request with a new profile resource ID.

# Client/Request

The template used in this action is described on the Schematized Storage Service main page.

# ShareItem

This element has only one attribute:

This element has two children:

# Server/Response

The template used in this action is described on the Schematized Storage Service main page.

# ShareItemResponse

This element has only one attribute:

This element has only one child:

# Examples

# Schema version w10

# Client/Request

POST /storageservice/SchematizedStore.asmx HTTP/1.1
SOAPAction: http://www.msn.com/webservices/storage/w10/ShareItem
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 896

<?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&amp;p=profile</TicketToken>
		</StorageUserHeader>
	</soap:Header>
	<soap:Body>
		<ShareItem xmlns="http://www.msn.com/webservices/storage/w10">
			<resourceID>cid_4294967298!profile</resourceID>
			<displayName>Messenger Roaming Identity</displayName>
		</ShareItem>
	</soap:Body>
</soap:Envelope>

# Server/Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 805

<?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&amp;p=profile</TicketToken>
			<IsAdmin>false</IsAdmin>
		</StorageUserHeader>
	</soap:Header>
	<soap:Body>
		<ShareItemResponse xmlns="http://www.msn.com/webservices/storage/w10">
			<ShareItemResult>shared</ShareItemResult>
		</ShareItemResponse>
	</soap:Body>
</soap:Envelope>