Dan's WebDAV 101

This blog covers Messaging API development for Exchange and Outlook. My name is Daniel Bagley, I'm on the Messaging Developer Team.

Browse by Tags

Tagged Content List
  • Blog Post: Announcing EASTester

    The Exchange Server Interoperability Guidance documents have some really good sample code. I’ve leveraged some of its code to build a tool with capabilities which have been helpful in resolving EAS issues. This tool’s code an binaries are now published in Codeplex. The current functionality...
  • Blog Post: How to get OOF text from Exchange 2003 using WebDAV

    You may be able to get OOF text with WebDAV using a SEARCH. However, its not supported in any way and there is no guarentee that it will always work. The OOF text is stored inside of a hidden item in a mailbox. Below is a sample of the request which is for educational purposes only. Please note that...
  • Blog Post: Howto: Read OOF info using EWS and VBScript against an Exchange 2010 SP1

    ' Here is a code sample showing how to read OOF info using EWS from VBScript against an Exchange 2010 SP1 box. Const strUrl = " https://mail.mycompanyetc.com/ews/exchange.asmx " ' TODO: Change Const strUser = "myuserid" ' TODO: Change Const strPass = "mypassword" Const strDom = "myusersdomain...
  • Blog Post: EWS has "More Happy" now - EWS Managed API and EWSEditor.

    Want to make working with Exchange Web Services (EWS) much easier to work with? There is a new API and new tool which can help. No matter which way you are doing or going to be doing EWS calls, you should be familiar with both the Exchange Web Services Managed API and EWSEditor. Exchange Web Services...
  • Blog Post: HowTo: Create a mailbox for an existing user, Create a user in AD, List AD User info.

    //====================================================================================================== // CdoexmMailboxUtil - // Exchange Mailbox and user account creation sample. // // This sample demonstrates the following: // Creating a user account in AD // Mail Enable an existing...
  • Blog Post: Howto: Mail Enable, Mail Disable and view Mail settings for a Public Folder with CDOEX and CDOEXM

    If your living in a pre Exchange 2007 Powershell worlds and want to mail enable or disable public folders, you may come to the point where you will be needing to write some CDOEX and CDOEXM code to do what you want. Below is a C# sample console application which will allow you to mail enable, mail disable...
  • Blog Post: Howto: Set multiple extended properties on a folder using raw XML for EWS with a POST

    Hmmm, there are very few samples on setting multiple extended properties on folders using a POST to EWS... so, I thought I would blog one. This sample can be used with: http://blogs.msdn.com/webdav_101/archive/2009/02/27/howto-post-xml-to-ews-using-exchangeservicebinding-credentials.aspx ...
  • Blog Post: Howto: Post XML to EWS using ExchangeServiceBinding credentials.

    Here is a sample which shows how to use the connection of the Exchange Service Binding to do a POST to EWS using an XML string. // Sample calling code: private void cmdExecute_Click( object sender, EventArgs e) { string sRequest = string .Empty; bool bRet = false ; string...
  • Blog Post: Example: Populate a ListView with a list of attachments using EWS

    I thought it would be fun to blog another sample of getting a list of attachments using EWS. So, here is a handly method for populating a list of attachments. // ----------------------------------------------------------------------------------------- // GetFileAttachmentsListLv // Sets a...
  • Blog Post: What's covered by support? General questions and answers.

    Customers sometime have a misunderstanding of what is covered when supported is provided. So, I’ve put together a link covering common areas for all to read. I would suggest starting with the link below to get an understanding on what is supported to understand some of the basics of supportability. ...
  • Blog Post: Howto: Read Attachments - Webdav: System.Net.HttpWebRequest vs System.Net.WebClient

    I’ve run into issues with using a GET to read large attachments using HttpWebRequest. Because of this, I use System.Net.WebClient instead. Big attachments will have an error thrown back with HttpWebRequest, however it’s possible to GET the smaller ones. So, since System.Net.WebClient seems to work just...
  • Blog Post: Comparing strings - a few samples

    I thought I would share some simple sample code which is useful for finding problems in string content. Here are three methods I wrote which are useful to see whats in a string and differences between strings. I use these with a simple program which uses two text boxes for pasting text into and a third...
  • Blog Post: Howto: Get Free/Busy Information with WebDAV/HTTP

    CDO 1.21, CDOEX, etc can get Free/Busy information, however WebDAV cannot directly. You may use a GET against OWA to get this information. A GET against an OWA URL is really not a WebDAV call… it’s really just plain HTTP GET call – you just need to be sure that the URL is correctly formatted. Most OWA...
  • Blog Post: Howto Delete Attachments with WebDAV

    The DELETE verb only works on Exchange 2003 SP1 - it will not work on any earlier version/service pack. CDOEX, CDO 1.21, Extended MAPI, etc can do this on Exchange 2000 or 2003. One possible work-around is to read the message stream using a WebDAV GET, modify the stream to remove the attachment...
  • Blog Post: HOWTO: Send Email With Attachment Using VB and WebDAV

    To send an email with WebDAV, you will you will need to create/recreate the item with a WEBDAV PUT using the MIME of the message. It gets tricky when working with attachments. To get around the complexity of sending an email with an attachment, you may want to look at using CDOSYS to build the message...
  • Blog Post: Howto: WebDAV SEARCH using C#

    ' This example shows how to do a SEARCH using C# // C# Example to SEARCH a mailbox. // TODO: // Add a button and double click on it // Add a multi-line text box and make it big. // Add a project reference to System.Xml, an System.Net // Paste-in the code below // Do the TODO sections in the code....
  • Blog Post: Howto: WebDAV PROPFIND using VB.NET

    ' This example shows how to do a PROPFIND using VB.NET ‘ VB.NET PROPFIND ‘ TODO: Create a VB.NET winform with a button and a big multiline text box ‘ TODO: Add references to System.Web, System.XML and System.IO ‘ TODO: Add the code to the form. ‘ TODO: Do the TODO sections in the code. Imports...
  • Blog Post: Howto: WebDAV X-MS-ENUMATTS using VBScript to enumerate attachments

    ' This example shows how to enumerate attachments on a message. X-MS-ENUMATTS will ' return phantom urls to attachments on the message. These URLs can be used with GET ' and DELETE (starting with Exchange 2003 SP1). ' For listing and reading an attachment, you will first need to get a list of attachments...
  • Blog Post: Howto: WebDAV COPY using VBScript

    ' This example shows how to do a COPY of a message to a folder. 'NOTE: ' • Copying or Moving items across stores is not supported (that includes maiboxes) ' • You will get a 404 (Resource Not Found) if the source item does not exist. ' • A status of 204 (No Content) will be returned if the destination...
  • Blog Post: Howto: WebDAV MOVE using VBScript

    ' This example shows how to do a MOVE of a message to a folder. 'NOTE: ' • Copying or Moving items across stores is not supported (that includes maiboxes) ' • You will get a 404 (Resource Not Found) if the source item does not exist. ' • A status of 204 (No Content) will be returned if the destination...
  • Blog Post: Howto: WebDAV PUT using VBScript

    ' This example shows how to do a PUT of a message to a folder. What is being written with a PUT would ' be the MIME of a message and such MIME can also contain the MIME of the message. PUT works against ' messaging items directly such as mail messages. It cannot be used to add an attachment without ...
  • Blog Post: Howto: WebDAV GET using VBScript

    'The example below demonstrates how to do a WebDAV GET. ' GET works against items and attachments. When used against an item, it give you ' the mime stream of both the message and attachment. You cannot get the mime of only the message ' if there are attatchments on that message. Use X-MS-ENUMATTS to...
  • Blog Post: Howto: WebDAV PROPPATCH using VBScript

    'The example below demonstrates how to do a WebDAV PROPPATCH. 'The sample changes the subject of one message in the inbox. ' Note: You cannot specify a condition with a PROPPATCH; ' Note: Understand how the Depth header affects patching and you should understand how its used before using any other...
  • Blog Post: Howto: WebDAV SEARCH with range headers using VBScript

    'The example below demonstrates how to do a WebDAV SEARCH with range headers. Public Function GetItemListXML(sHREF, sUserName, sPassword, sDepth) Dim sQuery ' As String Dim sText 'As String sQuery = "<?xml version='1.0'?>" & _ "<g:searchrequest xmlns:g='DAV:'>" & _ "<g:sql>SELECT...
  • Blog Post: Howto: WebDAV SEARCH using VBScript

    'The example below demonstrates how to do a WebDAV SEARCH dim strExchangeURL dim strApptStartDate dim strUser dim strPassword strUser = "Administrator" strPassword = "test" strExchangeURL = " http://myexserver/exchange/Administrator/Calendar/ " strApptStartDate = "2004-04-09T15:00:00Z" Dim sRet ...
Page 1 of 2 (27 items) 12