Essentially, proxy objects are programmable objects that act as an interface to a service; in this case, Exchange Web Services. The proxy objects provide access to all the possible types that are exposed by Exchange Web Services. They also provide the code that is used to form the Simple Object Access Protocol (SOAP) messages, send the messages to the computer that is running Microsoft Exchange, and receive the corresponding responses.
The proxy types that define the proxy objects are created by using the WSDL and schema files. The WSDL and schema files define the contract between the client and server; the proxy types are an abstraction of that contract. They handle all the dirty work that is required to create and send the Web service requests that conform to the contract in the WSDL and schema files.
The proxy objects that are created from the WSDL and schema files provide the following functionality:
-
They serve as convenient containers for the information that describes the Microsoft Exchange data.
-
They handle the XML serialization of the requests to be sent.
-
They handle the XML deserialization of the responses returned from the server.