Programming Consistency
Programmers using a .NET language are comfortable with errors being reported by exceptions. Component Object Model (COM) and Win32 API programmers from yesteryear are comfortable with HRESULTs and response code values coming back from their calls. As you have seen in this chapter, Exchange Web Services programmers have to contend with a mixture of response values (response codes) and exceptions (SOAP faults). So now that you are here, is there anything that you can do to unify these two error-reporting mechanisms? That all depends on how much of an investment you want to put into extending the auto-generated proxy classes. For instance, if you are writing a simple component that needs to make one call using Exchange Web ...
Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.