EWS Autodiscovery Checker

I have written a sample which can be used by developers and Exchange Admins for handling issues with their custom code doing Autodiscovery.  I have and several others have used this sample as a base-line for testing and for code harvesting for a while.  I wanted to share this with you so that you might…

0

Microsoft Developer Support does not write or maintain customer production code.

Microsoft Developer Support does not write or maintain customer production code. If you want Microsoft to do the changes and implement production code, then MCS would be the more appropriate Microsoft organization. Also, you could engage a Microsoft Partner, or any other third party developer entity to assist. Microsoft Developer Support can assist with going…

1

How to tell which authentication protocols can be used with WebDAV.

When you do an anonymous POST to the “exchange” virtual folder, you will get back a response which will tell you about which authentication protocols are supported.  Each “WWW-Authenticate:” header in the response tells you which type of authentication method is supported.  If you get back a 440 Login Timeout with no “WWW-Authenticate:” headers and…

5

New to Exchange ActiveSync Development?

One area I do developer support for is EAS development with those who have an EAS client development license and have a specific support agreement in their Premier contract for EAS developer support – these are needed to get any EAS developer support from Microsoft.  Developers who do not have these should consult the online…

3

Howto: Using EWS, get the original body type of a message without getting the best body of the message.

The PidTagNativeBody property (Property ID, 0x1016; Data Type 0x0003 (PtypInteger32)) should reflect the format of the body when a normal email message arrives in the inbox (not counting calendar messages such as meeting requests, etc.). If the message is signed, you would need to dig into it to figure out what it is. 2.2.1.22.2 PidTagNativeBody…

0

Howto: Set the organizer of a meeting on the calendar of an attendee using EWS.

I would like to say that this is something which is easily possible – however, I cannot. Setting the organizer directly in code is not supported. Historically, having the organizer over-writable has caused some pretty bad situations for customers. When a meeting is created, the organizer property is automatically hard-stamped and cannot be specified during meeting…

2

Use Exchange PowerShell to get statistical information for Exchange Server ActiveSync

Background: To get information on EAS activity on an Exchange server, you will need to call Exchange PowerShell cmdlets.     PowerShell is used for doing administrative work against Exchange.  Each administrative task is done through an Exchange cmllet (command-let).   Exchange PowerShell cmdlets can be called via .NET code through PowerShell automation.  .NET PowerShell Automation refers…

0

Howto: Example to retrieve the body property of a message using the Exchange Managed API.

          public string GetItemMime(ItemId oItemId)         {             string sReturn = string.Empty;             PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);             Item oItem = Item.Bind(_ExchangeService, oItemId, oMimePropertySet);             return   oItem.MimeContent.ToString() ;                      }           public string GetItemMime(Item oItem)         {             PropertySet oMimePropertySet = new PropertySet(ItemSchema.MimeContent);             oItem.Load(oMimePropertySet);             return oItem.MimeContent.ToString();           }

2

Howto: Example to retrieve the html body property of a message using the Exchange Managed API.

        public string GetMessageBodyAsHtml(Item oItem)         {             string sRet = string.Empty;               PropertySet oPropSet = new PropertySet(PropertySet.FirstClassProperties);             oItem.Load(PropertySet.FirstClassProperties);               PropertySet oPropSetForBodyText = new PropertySet(PropertySet.FirstClassProperties);             oPropSetForBodyText.RequestedBodyType = BodyType.HTML;             oPropSetForBodyText.Add(ItemSchema.Body);             Item oItemForBodyText = Item.Bind((ExchangeService)oItem.Service, oItem.Id, (PropertySet)oPropSetForBodyText);             oItem.Load(oPropSetForBodyText);             sRet = oItem.Body.Text;             return sRet;         }

1

Howto: Example to retrieve the body property of a message using the Exchange Managed API.

        public string GetMessageBody(Item oItem, BodyType oBodyType)         {             string sRet = string.Empty;               PropertySet oPropSet = new PropertySet(PropertySet.FirstClassProperties);             oItem.Load(PropertySet.FirstClassProperties);               PropertySet oPropSetForBodyText = new PropertySet(PropertySet.FirstClassProperties);             oPropSetForBodyText.RequestedBodyType = oBodyType;             oPropSetForBodyText.Add(ItemSchema.Body);             Item oItemForBodyText = Item.Bind((ExchangeService)oItem.Service, oItem.Id, (PropertySet)oPropSetForBodyText);             oItem.Load(oPropSetForBodyText);             sRet = oItem.Body.Text;                         return sRet;         }

0