title: Updating a Contact with EWS
body: <p>I have struggled to find out how to work with EWS and have managed to work out how to do just about everything I've wanted to. I am using EWS to manage contacts between a custom database and the Exchange server (2007). Adding and deleting works just fine, but I cannot update a contact. To workaround this, I deleted the contact and recreated it, but the problem comes in when the contact is edited via Outlook (or whatever else).</p>
  
  <p>I tried to follow what this link says:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/exchange/ee693002(v=exchg.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/exchange/ee693002(v=exchg.80).aspx</a></p>
  
  <p>but I get an error saying that only one property can be updated. Then I update each property one at a time, and as soon as I try to update a phone number I get an error which says: "The element 'Updates' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content."</p>
  
  <p>Here is the code, basically:</p>
  
  <pre class="lang-cs prettyprint-override"><code>ItemId itemId = contactToUpdate.Id;
  Contact updateContact = Contact.Bind(service, itemId);
  updateContact.PhoneNumbers[PhoneNumberKey.HomePhone] = customContact.HomeTelephone;
  updateContact.Update(ConflictResolutionMode.AlwaysOverwrite);
  </code></pre>
  
  <p>Does anyone know why I get this error? Can anyone answer how to actually update an item? Is there documentation I have missed?</p>
  
  <p>The version of the EWS dll's is 15.0.516.12.</p>