Home
%3CLINGO-SUB%20id%3D%22lingo-sub-601338%22%20slang%3D%22en-US%22%3EIntroducing%20the%20Exchange%20Web%20Services%20Managed%20API%201.0%20Beta%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601338%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EIf%20you%20haven't%20heard%20the%20buzz%20yet%20about%20what%20is%20new%20with%20our%20Exchange%202010%20developer%20story%20then%20head%20over%20to%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fexchange%2Fdefault.aspx%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EExchange%20Developer%20Center%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3E%20and%20start%20digging%20in%20to%20the%20Exchange%20Web%20Services%20Managed%20API%20Beta%20and%20our%20other%20new%20features.%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3FFamilyID%3Da8c9d043-c66c-4971-9459-8d1df1608c8b%26amp%3Bdisplaylang%3Den%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EDownload%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3E%20the%20first%20fully%20managed%20API%20from%20the%20Exchange%20team%20that%20enables%20easy%20access%20to%20mailbox%20data%20leveraging%20the%20powerful%20Exchange%20Web%20Services.%20This%20API%20opens%20up%20the%20world%20of%20Exchange%20development%20like%20never%20before.%20Retrieving%20all%20of%20the%20calendar%20items%20on%20my%20calendar%20for%20this%20week%20is%20as%20simple%20as%3A%3C%2FSPAN%3E%3C%2FP%3E%3CBLOCKQUOTE%3E%3CSPAN%20style%3D%22font-family%3A%20Courier%20New%3Bfont-size%3A%20small%22%3E%3CSPAN%20style%3D%22color%3A%20%23008000%22%3E%2F%2FInstantiate%20the%20service%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EExchangeService%3C%2FSPAN%3E%20testService%20%3D%20%3CSPAN%20style%3D%22color%3A%20%23000080%22%3Enew%3C%2FSPAN%3E%20ExchangeService()%3B%20%3CSPAN%20style%3D%22color%3A%20%23008000%22%3E%2F%2FAutoDiscover%20the%20correct%20EWS%20endpoint%20for%20this%20user%20to%20use%3C%2FSPAN%3E%20testService.AutodiscoverUrl(%3CSPAN%20style%3D%22color%3A%20%23800000%22%3E%22testuser%40contoso.com%22%3C%2FSPAN%3E)%3B%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20Courier%20New%3Bfont-size%3A%20small%22%3E%3CSPAN%20style%3D%22color%3A%20%23008000%22%3E%2F%2FBind%20to%20the%20logged%20on%20user's%20calendar%20folder%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3ECalendarFolder%3C%2FSPAN%3E%20myCalendar%20%3D%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3ECalendarFolder%3C%2FSPAN%3E.Bind(testService%2C%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EWellKnownFolderName%3C%2FSPAN%3E.Calendar)%3B%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20Courier%20New%3Bfont-size%3A%20small%22%3E%3CSPAN%20style%3D%22color%3A%20%23008000%22%3E%2F%2FQuery%20for%20items%20for%20the%20upcoming%20week%20-%20Expanding%20all%20recurrences%20%2F%2Fusing%20CalendarView%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EFindItemsResults%3C%2FSPAN%3E%26lt%3B%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EAppointment%3C%2FSPAN%3E%26gt%3B%20myAppointments%20%3D%20myCalendar.FindAppointments(%3CSPAN%20style%3D%22color%3A%20%23000080%22%3Enew%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3ECalendarView%3C%2FSPAN%3E(%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EDateTime%3C%2FSPAN%3E.Now%2C%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EDateTime%3C%2FSPAN%3E.Now.AddDays(7)))%3B%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20Courier%20New%3Bfont-size%3A%20small%22%3E%3CSPAN%20style%3D%22color%3A%20%23008000%22%3E%2F%2FWrite%20out%20the%20subject%20of%20each%20appointment%20I%20have%20this%20week%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%23000080%22%3Eforeach%3C%2FSPAN%3E(%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EAppointment%3C%2FSPAN%3E%20appointment%20%3CSPAN%20style%3D%22color%3A%20%23000080%22%3Ein%3C%2FSPAN%3E%20myAppointments)%20%3CSPAN%20style%3D%22color%3A%20%230000ff%22%3EConsole%3C%2FSPAN%3E.WriteLine(appointment.Subject)%3B%3C%2FSPAN%3E%3C%2FBLOCKQUOTE%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EAnd%20great%20news%20for%20Exchange%202007%20application%20developers%20the%20EWS%20Managed%20API%20Beta%20will%20work%20with%20Exchange%202007%20SP1%20servers%20as%20well%20as%20Exchange%202010%20servers.%20Of%20course%20you'll%20need%20to%20upgrade%20to%20Exchange%202010%20to%20get%20access%20to%20new%20Exchange%202010%20specific%20web%20services%20features%20like%20contact%20Group%20creation%2C%20associated%20item%20access%2C%20user%20configuration%20object%20access%2C%20conference%20room%20retrievals%2C%20and%20expanded%20unified%20messaging%20functionality.%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%20small%22%3EWe've%20also%20added%20features%20for%20the%20IT%20Administrators%20out%20there%20that%20help%20protect%20your%20servers%20from%20resource%20hungry%20applications.%20Client%20Access%20throttling%20enables%20administrators%20to%20regulate%20the%20amount%20of%20resources%20available%20to%20a%20user%20or%20account%20accessing%20the%20Client%20Access%20Server%20through%20OWA%2C%20EWS%2C%20EAS%2C%20PowerShell%20and%20other%20protocols.%20One%20of%20our%20very%20popular%20features%20from%20Exchange%202007%2C%20Exchange%20Web%20Services%20Application%20Impersonation%2C%20is%20now%20much%20simpler%20to%20deploy%20and%20administrate%20with%20an%20RBAC%20role.%20Remember%20to%20check%20out%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fsocial.technet.microsoft.com%2Fforums%2Fen-US%2Fexchangesvrdevelopment%2Fthreads%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EExchange%20Developer%20Forums%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3E%2C%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fexchange%2Fdefault.aspx%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EExchange%20Developer%20Center%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3E%2C%20and%20%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fblogs.msdn.com%2Fexchangedev%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3EExchange%20Developer%20Blog%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20style%3D%22font-size%3A%20small%22%3E%20for%20more%20details.%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%20small%22%3E-%20Jason%20Henderson%3C%2FSPAN%3E%3C%2FLINGO-BODY%3E

If you haven't heard the buzz yet about what is new with our Exchange 2010 developer story then head over to the Exchange Developer Center and start digging in to the Exchange Web Services Managed API Beta and our other new features. Download the first fully managed API from the Exchange team that enables easy access to mailbox data leveraging the powerful Exchange Web Services. This API opens up the world of Exchange development like never before. Retrieving all of the calendar items on my calendar for this week is as simple as:

//Instantiate the service ExchangeService testService = new ExchangeService(); //AutoDiscover the correct EWS endpoint for this user to use testService.AutodiscoverUrl("testuser@contoso.com"); //Bind to the logged on user's calendar folder CalendarFolder myCalendar = CalendarFolder.Bind(testService,WellKnownFolderName.Calendar); //Query for items for the upcoming week - Expanding all recurrences //using CalendarView FindItemsResults<Appointment> myAppointments = myCalendar.FindAppointments(new CalendarView(DateTime.Now,DateTime.Now.AddDays(7))); //Write out the subject of each appointment I have this week foreach(Appointment appointment in myAppointments) Console.WriteLine(appointment.Subject);
And great news for Exchange 2007 application developers the EWS Managed API Beta will work with Exchange 2007 SP1 servers as well as Exchange 2010 servers. Of course you'll need to upgrade to Exchange 2010 to get access to new Exchange 2010 specific web services features like contact Group creation, associated item access, user configuration object access, conference room retrievals, and expanded unified messaging functionality. We've also added features for the IT Administrators out there that help protect your servers from resource hungry applications. Client Access throttling enables administrators to regulate the amount of resources available to a user or account accessing the Client Access Server through OWA, EWS, EAS, PowerShell and other protocols. One of our very popular features from Exchange 2007, Exchange Web Services Application Impersonation, is now much simpler to deploy and administrate with an RBAC role. Remember to check out the Exchange Developer Forums, Exchange Developer Center, and Exchange Developer Blog for more details. - Jason Henderson
5 Comments
Not applicable
And, as with any .NET library, the API can be accessed from PowerShell. Wee-ha!



$dllpath = “C:Program FilesMicrosoftExchangeWeb Services1.0Microsoft.Exchange.WebServices.dll”


[void][Reflection.Assembly]::LoadFile($dllpath)

$service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)


$uri=[system.URI] ”

https://YOUR.EWS.FQDN/ews/exchange.asmx”

$service.Url = $uri

$inbox= [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,[Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox)


$perms = $inbox.permissions

# and so on, and so forth....

Not applicable
Really cool, can't wait to dig into this!
Not applicable
I have started looking into the new API and I must say the APIs are super easy to work against.
 I have a following situation:

1. Using AddDelegate method I have given"superuser" as Editor permission on calendar folder of 2 users: user1, user2.

2. Now using superuser's credentials I want to be able to create calendar items in those user's calendar folder. Appointment constructor takes ExchangeService object as a parameter, however, it will take only superuser's credentials to connect.

Kindly let me know your feedback.

Thanks,
Furqan
Not applicable
It does look neat, but what would be the performance impact against using something like MAPI?

Jason
Not applicable
Thanks u r  information