Microsoft Exchange Server 2010. Visual Studio 2005 or Visual Studio 2008. Creating an Exchange Web Services client application involves the following steps: Setting up the Visual Studio 2005 or Visual Studio 2008 project on the client application. The following code example shows a Web service client that creates an e-mail item. Microsoft Exchange Web Services (EWS) is an interface by which you can programmatically manage Exchange items such as calendar, contact, and email. With EWS, you can store or retrieve any data on your Exchange account, providing wide flexibility in managing and manipulating email data on an Exchange.
Last modified: September 30, 2010
Applies to: Exchange Server 2007 | Exchange Server 2010
In this article
Procedure Remarks Example
You can use MicrosoftVisual Studio 2005 or Microsoft Visual Studio 2008 to create a simple Exchange Web Services client application. This walkthrough describes how to create a draft e-mail, how to set up different parts of the application, and how to handle the response. Use this walkthrough to become familiar with the object model that is created by using the Visual Studio 2005 or Visual Studio 2008 proxy generator.
Prerequisites
Procedure
Creating an Exchange Web Services client application involves the following steps:
To set up the client application project
To add X509 certificate validation code
Note
The Autodiscover sample includes an example that shows how to implement the certificate validation. For more information, see Navigating the Autodiscover Sample Application Source Code.
Microsoft Exchange Web Services Vb Net Codes 2016To create the service binding
Important
Exchange Web Services clients should call the Autodiscover service to get the URL of the Client Access server that is used for a particular mailbox account.
To create the CreateItem request
To send the request and get the responseTo check the status of each responseMicrosoft Exchange Web Services
To check and cast the response type and access the high-level objects
Important
The ArrayOfRealItemsType object is null in the response if the MessageDisposition property of the CreateItemType is set to SendAndSaveCopy or SendOnly. Essentially, any disposition that causes the e-mail to be sent will return an ArrayOfRealItemsType object set to null.
Remarks
The ExchangeWebServices namespace is created when the Web service proxy assembly is created. This namespace is not included in any assembly that ships with Exchange Server 2010. The name of the namespace that is generated by the proxy generator is arbitrary. The name ExchangeWebServices is used in this example for readability and conformity.
![]() ExampleDescription
The following code example shows a Web service client that creates an e-mail item in the Sent Items default folder.
CodeSee AlsoCreate Windows Service Vb NetOther ResourcesComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |