# Table of contents:
# Introduction
AddDynamicItem is one of the SOAP actions the Address Book Service provides.
Add one or more dynamic items to the Address Book.
Seen when responding to a UpdateDynamicItem request with a DynamicItemDoesNotExist error.
# Client/Request
The template used in this action is described on the Address Book Service main page.
# AddDynamicItemThis element has only one attribute:
xmlns: Is always set tohttp://www.msn.com/webservices/AddressBook.
This element contains your Address Book Service GUID.
# dynamicItemsThis element contains one or more <DynamicItem> elements.
This element has only one attribute:
xsi:type: The type of this<DynamicItem>:PassportDynamicItem
This element has two children:
<Type>: The type of this<DynamicItem>:Passport
<PassportName>: The user handle associated with this<DynamicItem>.
# Server/Response
The template used in this action is described on the Address Book Service main page.
# AddDynamicItemResponseThis empty element has only one attribute:
xmlns: Is always set tohttp://www.msn.com/webservices/AddressBook.
# Examples
# Client/Request
POST /abservice/abservice.asmx HTTP/1.1
SOAPAction: http://www.msn.com/webservices/AddressBook/AddDynamicItem
Cache-Control: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 1134
<?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>
<ABApplicationHeader xmlns="http://www.msn.com/webservices/AddressBook">
<ApplicationId>AAD9B99B-58E6-4F23-B975-D9EC1F9EC24A</ApplicationId>
<IsMigration>false</IsMigration>
<PartnerScenario>RoamingIdentityChanged</PartnerScenario>
</ABApplicationHeader>
<ABAuthHeader xmlns="http://www.msn.com/webservices/AddressBook">
<ManagedGroupRequest>false</ManagedGroupRequest>
<TicketToken>t=ticket&p=profile</TicketToken>
</ABAuthHeader>
</soap:Header>
<soap:Body>
<AddDynamicItem xmlns="http://www.msn.com/webservices/AddressBook">
<abId>00000000-0000-0000-0000-000000000000</abId>
<dynamicItems>
<DynamicItem xsi:type="PassportDynamicItem">
<Type>Passport</Type>
<PassportName>example@hotmail.com</PassportName>
</DynamicItem>
</dynamicItems>
</AddDynamicItem>
</soap:Body>
</soap:Envelope>
# Server/Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 724
<?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>
<ServiceHeader xmlns="http://www.msn.com/webservices/AddressBook">
<Version>12.01.1111.0000</Version>
<CacheKey>12r1;MjAyNi0wMi0wOFQxODoxMzozNS41MTFa</CacheKey>
<CacheKeyChanged>true</CacheKeyChanged>
<PreferredHostName>contacts.example.com</PreferredHostName>
<SessionId>ecfaf8c7-e388-4571-8641-b061a0ac4bdc</SessionId>
</ServiceHeader>
</soap:Header>
<soap:Body>
<AddDynamicItemResponse xmlns="http://www.msn.com/webservices/AddressBook" />
</soap:Body>
</soap:Envelope>