Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The client application can be a simple application to just send HTTP requests to the service and receive AtomPub or JSON responses. The first client application example is a WPF application that makes use of the HttpWebRequest class from the System.Net namespace.
Figure 32-2 shows the UI from the Visual Studio Designer. A TextBox named textUrl is used to enter the HTTP request with a default value of http://localhost:9000/Samples/Menus. The read-only TextBox named textReturn receives the answer from the service. You can also see a CheckBox checkJSON, where the response can be requested in the JSON format. The Button with the content Call Data Service has the Click event associated to the OnRequest() method.