String url = "https://myserver/exchdav/"; //This is the URL used to fetch the contact info, without problems. [...] public string updateContact(Contact c) { String query = "<?xml version=\"1.0\"?>" + "<a:propertyupdate xmlns:a=\"DAV:\" xmlns:b=\"http://schemas.microsoft.com/exchange/\" xmlns:c=\"urn:schemas:contacts:\" xmlns:mapi=\"http://schemas.microsoft.com/mapi/\">" + "<a:set>" + "<a:prop>" + "<a:contentclass>urn:content-classes:person</a:contentclass>" + "<b:outlookmessageclass>IPM.Contact</b:outlookmessageclass>" + "<c:homepostaladdress>" + c.address + "</c:homepostaladdress>" + "</a:prop>" + "</a:set>" + "</a:propertyupdate>"; //c.href holds the url directly to the contact, i.e. https://myserver/exchdav/myuser/contacts/mycontact.EML return this.sendRequest(c.href, query, "PROPPATCH"); ; }
https://myserver/exchdav/myuser/Contacts/mycontact.EML HTTP/1.1 403 Forbidden