tailieunhanh - Professional ASP.NET 3.5 in C# and Visual Basic Part 141

Professional in C# and Visual Basic Part 141. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 29 Building and Consuming Services Before we jump into building a WCF service first consider what makes up a service built upon the WCF framework. What Makes a WCFService When looking at a WCF service it is important to understand that it is made up of three parts the service one or more endpoints and an environment in which to host the service. A service is a class that is written in one of the .NET-compliant languages. The class can contain one or more methods that are exposed through the WCF service. A service can have one or more endpoints. An endpoint is used to communicate through the service to the client. Endpoints themselves are also made up of three parts. These parts are usually defined by Microsoft as the ABC of WCF. Each letter of WCF means something in particular in the WCF model including the following A is for address B is for binding C is for contract Basically you can think of this as follows A is the where B is the how and C is the what. Finally a hosting environment is where the service is contained. This constitutes an application domain and process. All three of these elements the service the endpoints and the hosting environment are put together to create a WCF service offering as depicted in Figure 29-19. Figure 29-19 The next step is to create a basic service using the WCF framework. 1363 Chapter 29 Building and Consuming Services Creating YourFirst WCF Service To build your service prior to hosting it you must perform two main steps. First you need to create a service contract. Second you must create a data contract. The service contract is really a class with the methods that you want to expose from the WCF service. The data contract is a class that specifies the structure you want to expose from the interface. Once you have a service class in place you can host it almost anywhere. When running this from Visual Studio 2008 you will be able to use the same built-in hosting mechanisms that are used by any standard .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.