
Professional VB 2005 - 2006 phần 9
Thông tin tài liệu:
Nội dung trích xuất từ tài liệu:
Professional VB 2005 - 2006 phần 9 Chapter 23 That’s pretty much all there is to Web Services from an implementation perspective in .NET. .NET deals with all of the plumbing that was discussed in the first part of this chapter (SOAP, WSDL, and so on), which means that all there is to do is add properly decorated methods to the service.impo PDF Merge and Split Unregistered Version - http://www.simpopdf.com A Realistic Example Although the previous example was very easy to implement, it doesn’t demonstrate a real-world applica- tion of Web Services. Let’s take a look at a more realistic example by building a Web Service that sends out a richer set of data from a database instead. For the sake of example, imagine that a third-party provider hosts the site. The SQL server is behind a firewall, and the IIS server is in a demilitarized zone — a safe, though exposed, network position. This is illustrated in Figure 23-6. To get the data from your site to the remote site, call a Web Service on the remote Web server from your intranet. Since the SOAP envelope is sent via HTTP, the firewall will allow it through, and ADO.NET on the IIS server will handle the actual database manipulation. The remote firewall will allow database calls only from the IIS server, and the data will be updated safely because of the security. In real life, the class file GetCustomers would be local to your intranet server, and the database file would be an SQL server on a second PC. Across the Internet, as shown in the diagram, the Web Service would be on an IIS server sitting outside the network firewall. The DLL that actually provides the data functions would be on an application server inside the firewall, and the database would again be on a separate machine. For this application, though, you will create a Web Service that will expose the Customers table from the sample Northwind database, across the intranet, that will then later be consumed by a Web application. Just remember that Web Services are not only about exposing simple values, but also about exposing a richer dataset of values such as entire tables from a data store (for example, SQL Server). Start this example by first creating a new Web Service project in Visual Studio called MyWebService. Using Visual Studio 2005 to Build Web Services The Visual Studio 2005 IDE shows a marked improvement from the add-ins provided for Visual Studio 6 in the SOAP Toolkit. For instance, Web Services are shown as references on a project, rather than in a separate dialog box. The discovery process, discussed later, is used to its fullest, providing much more information to the developer. In short, it is nearly as easy to consume a Web Service with Visual Basic as it is to use DLLs. 848 XML Web Services SQL DBimpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com 2. SP Returns 0. Get operation Recordset for retrieving data from Enterprise database 3. DLL provides Web ser vice with data Local Enterprise Ser ver Firewall 4. Web Ser vice makes call to ISP for update The Internet 5. Call routed to ISP via HTTP The DMZ 6. Web Ser vice Calls Update DLL Remote Internet Ser ver ...
Tìm kiếm theo từ khóa liên quan:
lập trình windows ứng dụng windows tìm hiểu windows lập trình ứng dụng lập trình phần mềm lập trình hệ thống lập trình dotNet lập trình Java lập trình PHPTài liệu có liên quan:
-
Mô tả công việc lập trình viên phần mềm
1 trang 230 0 0 -
Bài tập lập trình Windows dùng C# - Bài thực hành
13 trang 204 0 0 -
Bài giảng Công nghệ phần mềm - Chương 2: Quy trình xây dựng phần mềm
36 trang 185 0 0 -
Đề cương môn học Phân tích thiết kế phần mềm
143 trang 180 0 0 -
bảo mật mạng các phương thức giả mạo địa chỉ IP fake IP
13 trang 169 0 0 -
Luận văn : Xây dựng chương trình sắp xếp lịch trực bác sĩ
61 trang 162 0 0 -
Luận văn: Nghiên cứu kỹ thuật giấu tin trong ảnh Gif
33 trang 159 0 0 -
Đồ án tốt nghiệp: Bảng LED ma trận điều khiển bằng ứng dụng Android
102 trang 149 0 0 -
Giáo trình Lập trình Android cơ bản: Phần 1
190 trang 139 0 0 -
[Thảo luận] Học PHP như thế nào khi bạn chưa biết gì về lập trình?
5 trang 137 0 0 -
Excel add in development in c and c phần 9
0 trang 124 0 0 -
information technology outsourcing transactions process strategies and contracts 2nd ed phần 3
65 trang 116 0 0 -
LUẬN VĂN: Tìm hiểu kỹ thuật tạo bóng cứng trong đồ họa 3D
41 trang 115 0 0 -
Program C Ansi Programming Embedded Systems in C and C++ phần 4
12 trang 103 0 0 -
Giáo trình Lập trình Windows 1 - Trường CĐN Đà Lạt
117 trang 103 0 0 -
Giáo trình môn kỹ thuật vi điều khiển
0 trang 100 0 0 -
Bài thu hoạch cá nhân môn Quản trị dự án phần mềm
75 trang 97 0 0 -
265 trang 92 0 0
-
81 trang 92 0 0
-
Bài giảng Lập trình trên Windows: Chương 1 - Trần Minh Thái
68 trang 90 0 0