Testing sample which uses HttpWebRequest to do a POST to EWS

There are sometimes issues encountered which are difficult to resolve. There are many things which can cause issues which would call an EWS call to fail. Having well written with extensive error trapping and extensive logging is one approach. I wrote the sample below so that it could be used from any type .NET application…

0

About: Exchange Web Services (EWS) – Getting started with EWS

API Type:  Mailbox Assessor API Interface: APIs which can send a POST.  Business Logic: Works with  mailbox and public folder content including items, folders and special settings. Development Languages: Anything which can send a post. So, you can write code for iOS, Droid, Windows forms, ASP.NET, JavaScript, PowerShell…  Property Access: Yes Product Versions: Exchange 2007,…

0

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    Note the following:                 The version is set.                 Each property being set is done under a separate SetFolderField node.   <?xml…

1

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 sResponse…

1

Example: How to use PS_INTERNET_HEADERS with cdo 1.21 for custom properties.

‘This example uses PS_INTERNET_HEADERS for setting a custom property const smbx=”mymailbox”  ‘ TODO: Changeconst ssrv=”myserver”      ‘ TODO: Changeconst mycdoInetPset = “8603020000000000C000000000000046″const myXheader = “X-SPAM”  ‘ TODO: Change to your property set oses=createobject(“mapi.session”)oses.logon “”, “”, false, true, 0, true, ssrv & vblf & smbxset omsg=oses.inbox.messages.getfirstsfrom=omsg.fields.item(myXheader,myCdoInetPset).valuewscript.echo sfromomsg.fields.add myXheader, vbString, “I Hate Spam!”, myCdoInetPsetomsg.update set omsg=nothingset oses=nothing

0