TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 142

Professional in C# and Visual Basic Part 142. 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 is WSHttpBinding_ICalculator which is a reference to the binding element contained within the wsHttpBinding element As demonstrated the Visual Studio 2008 enhancements for WCF do make the consumption of these services fairly trivial. The next step is to code the consumption of the service interface to the GUI that was created as one of the first steps. Writ i ngthe Consumption Code The code to consume the interface is quite minimal. The end user places a number in each of the two text boxes provided and clicks the button to call the service to perform the designated operation on the provided numbers. Listing 29-31 is the code from the button click event Listing 29-31 The button click event to call the service VB Protected Sub Button1_Click ByVal sender As Object ByVal e As Handles Dim ws As New Dim result As Integer result End Sub C protected void Button1_Click object sender EventArgs e ws new int result result This is quite similar to what is done when working with Web references from the XML Web services world. First is an instantiation of the proxy class as shown with the creation of the svc object Dim ws As New Working with the ws object now the IntelliSense options provide you with the appropriate Add Sub-tract Multiply and Divide methods. As before the requests and responses are sent over HTTP as SOAP . This concludes the short tutorial demonstrating how to build your own WCF service using the HTTP protocol and consume this service directly into an application. 1373 Chapter 29 Building and Consuming Services Working with Data Contracts Thus far when building the WCF services the defined data

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.