Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > WebDAV address formatting
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 20th April 19:40
mcarroll
External User
 
Posts: 1
Default WebDAV address formatting


I am creating contacts using WebDAV successfully. However, I'm
running into an issue with the address formatting not matching the
format produced by MS Outlook.

For instance, when a US contact is created the country is not
displayed in the full address. However, whenever I create or update a
contact through WebDAV the country is included in the full address
(workaddress field).

Secondly I just tested an address for the United Kingdom and the
format is incorrect when the state field is used (the state field
would be used for the county for London addresses). The normal format
is as follows:
[Address]
[City]
[State/County]
[Postal Code]
[Country]

When using WebDAV to create an address for the United Kingdom the
following format is applied:
[Address]
[City]
[State/County] [Postal Code]
[Country]

Is there anyway to get the same address formatting as MS Outlook when
using WebDAV to create contacts?

Here is an example of the XML I am sending to the exchange server:

<?xml version='1.0'?>
<Dropertyupdate xmlns='DAV:'
xmlns:b='urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/'
xmlns:x='xml:'
xmlns:c='urn:schemas:contacts:'
xmlns:e='http://schemas.microsoft.com/exchange/'
xmlns:mapi='http://schemas.microsoft.com/mapi/'
xmlns:mail='urn:schemas:httpmail:'
xmlns:mailheader='urn:schemas:mailheader:'>
<D:set>
<Drop>
<c:content-class>urn:content-classeserson</c:content-class>
<eutlookmessageclass>IPM.Contact</eutlookmessageclass>
<c:givenName>#FirstName</c:givenName>
<c:sn>#LastName#</c:sn>
<c:cn>#FullName#</c:cn>
<mail:subject>#DisplayName</mail:subject>
<c:fileasid>1</c:fileasid>
<cersonaltitle>#Title#</cersonaltitle>
<c:namesuffix>#Suffix#</c:namesuffix>
<c>#CompanyName#</c>
<c:street>#StreetAddress#</c:street>
<c:l>#City#</c:l>
<c:st>#State#</c:st>
<costalcode>#PostalCode#</costalcode>
<c:telephoneNumber>#PhoneNumber#</c:telephoneNumber>
<c:facsimiletelephonenumber>#FaxNumber#</c:facsimiletelephonenumber>
<mapi:emaillisttype>1</mapi:emaillisttype>
<mapi:email1addrtype>SMTP</mapi:email1addrtype>
<mapi:email1emailaddress>#Email#</mapi:email1emailaddress>
<mapi:email1originaldisplayname>#DisplayName#
(#Email#)</mapi:email1originaldisplayname>
<c:email1>"#FullName#" &lt;#Email#&gt;</c:email1>
</Drop>
</D:set>
</Dropertyupdate>
  Reply With Quote


  sponsored links


2 30th April 05:27
tom rizzo [msft]
External User
 
Posts: 1
Default WebDAV address formatting


Outlook does some magically parsing when you do addresses. I bet it sets
some properties that you're not setting. One thing you can do is create a
contact in Outlook, then scan it via WebDAV to see what's different between
what you do and what Outlook does.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666