Putting It All Together: Quote Client Sample Application

We have introduced many different concepts in this chapter. In the following sections, we will show how to create a sample application that illustrates the concepts that we have discussed in this chapter. This sample consists of a service and a client. The service called QuickReturnQuoteService is quite straightforward and exposes two operations called GetPortfolio and GetQuote. The data contract for the service is exposed via a class called StockQuote. The first operation, GetPortfolio, accepts an array of stock tickers, which makes up the portfolio and returns an array of type StockQuote, which contains the details of each f the stocks in the portfolio. Similarly, GetQuote accepts one ...

Get Pro WCF: Practical Microsoft SOA Implementation 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.