views:

68

answers:

2

I need to sync MS Exchange's contacts with my Ruby on Rails application.

Which is the best way? Would you recommend any existing gems for it?

A: 

perhaps using win32ole?

rogerdpack
+2  A: 

One place to start would be the Exchange Developer Center, where Microsoft links to downloads of the different SDKs, documentation, etc. Understandably, most of the docs and examples will be using Microsoft's .NET Framework and languages.

If you want to connect with Exchange 2007 or 2010, you'll probably find it easiest to use some form of Exchange Web Services (EWS) which you may be able to connect to using Ruby web services frameworks like SOAP4R, WSO2, etc.

For Exchange 2003 and earlier, you're much more limited; and programming CDO through Ruby's win32ole is not going to be pretty or fun.

ewall
Thanks, man! That helps a lot as a starting point.Do you know if contacts are accessible through WebDAV as well?
micho
WebDAV I believe is only available on Exchange 2000 here's a [page with some examples](http://weblogs.asp.net/whaggard/archive/2007/01/30/how-do-i-access-my-outlook-contacts-from-my-web-application.aspx) (including both WebDAV for older and EWS for newer servers).
ewall