This text file contains example code from: Chapter 11 - Service-Orientation with .NET Part III: Reusability and Agnostic Service Models Book - SOA with .NET & Windows Azure: Realizing Service-Orientation with the Microsoft Platform Series - Prentice Hall Service-Oriented Computing Series from Thomas Erl (www.soabooks.com/community) Certification - These examples are used as part of the Certified SOA .NET Developer curriculum (www.soaschool.com) <programlisting linenumbering="unnumbered">public void UpdateCustomer (EntityService.Models.Customer customer) { try { bool updated = DB.UpdateCustomer(customer); <?docpage num="367"?> if (updated) WebOperationContext.Current. OutgoingResponse.StatusCode = System.Net.HttpStatusCode.OK; else WebOperationContext.Current. OutgoingResponse.StatusCode = System.Net.HttpStatusCode.Conflict; } catch { ... exception handling code ... WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.InternalServerError; } }</programlisting> </example>