Using the code and the examples shown thus far, it should be fairly simple to further enhance or streamline the SOAP interface. Some areas that can be addressed include combining the AddBook and RemoveBook methods in a manner similar to what we saw in the last section. Alternately, a client that turns a wish list into an RSS feed can be easily developed, using Example 6-5 as a guide to the RSS module. Experimentation with different approaches to configuring the service under Apache would prove valuable should a future project appear in which the pros and cons of using objects by reference versus the performance of Apache is an issue. Here are some ideas to consider that aren't directly related to the SOAP services themselves :
This all comes back to the principles that have been stressed from the outset: good design practice early on can make all the difference. Choosing to subclass the main wish-list functionality rather than modifying the original class can explore any of the previous ideas without impacting any other users of the interface. The subclass of the server class can be extended to build on other features of the request lifecycle, as needed. As Chapter 8 will show, it can also allow easy substitution of other transport protocols. |