Expert VB 2005 Business Objects Second Edition phần 10

Với phương pháp web đơn giản, hiển thị này bao gồm khả năng để gọi phương thức từ bên trong trình duyệt. Ví dụ, Hình 11-10 cho thấy các kết quả của cách nhấn vào nút Gọi để thực hiện GetResourceList () phương pháp quả của bạn có thể thay đổi, tất nhiên, tùy thuộc vào các dữ liệu trong cơ sở dữ liệu của bạn. | 598 CHAPTER 11 WEB SERVICES INTERFACE Figure 11-9. WSDL for the GetResourceList web method With simple web methods this display includes the ability to invoke the method from within the browser. For example Figure 11-10 shows the result of clicking the Invoke button to execute the GetResourceList web method. CHAPTER 11 WEB SERVICES INTERFACE 599 Figure 11-10. Results of invoking the GetResourceList method Your results may vary of course depending on the data in your database. A Simple Smart Client To further illustrate how to call PTWebService and in particular to show how to deal with the custom SOAP header for authentication the ProjectTracker solution contains a PTServiceClient project. This is a bare-bones smart client application that acts as a consumer for PTWebService. Figure 11-11 shows what the application looks like when running. 600 CHAPTER 11 WEB SERVICES INTERFACE Figure 11-11. The PTWebService client application My goal with this application isn t to create a complete consumer. I want to use this application to show how to consume a basic web service and how to set up and pass credentials through the custom SOAP header. As shown in Figure 11-12 PTServiceClient has a web reference to PTService. Figure 11-12. Web reference to .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.