TAILIEUCHUNG - C# .NET Web Developer's Guide phần 9

Nếu khách hàng của bạn đang chạy phần mềm Microsoft NET, bạn đang ở may mắn: khách hàng sẽ tự động lắp ráp lại các phản ứng SOAP vào một DataSet sau đó bạn có thể sử dụng để tiếp tục xử lý. Tuy nhiên, Khi bạn tạo ra một hình thức mới, cửa sổ Properties chứa một danh sách các tài sản trong một bảng | 634 Chapter 11 Web Services Figure Continued xsd choice xsd complexType xsd element xsd schema diffgr diffgram xmlns msdata urn schemas-microsoft-com xml-msdata xmlns diffgr urn schemas-microsoft-com xml-diffgram-v1 NewDataSet xmlns shippers diffgr id shippers1 msdata rowOrder 0 ShipperID 1 ShipperID CompanyName Speedy Express CompanyName Phone 503 555-9831 Phone shippers shippers diffgr id shippers2 msdata rowOrder 1 ShipperID 2 ShipperID CompanyName United Package CompanyName Phone 503 555-3199 Phone shippers shippers diffgr id shippers3 msdata rowOrder 2 ShipperID 3 ShipperID CompanyName Federal Shipping CompanyName Phone 503 555-9931 Phone shippers NewDataSet diffgr diffgram DataSet If your client is running Microsoft .NET software you re in luck The client will automatically reassemble the SOAP response into a DataSet that you can then use to continue processing. However there are potential business clients on the Internet who do not and never will run on a Microsoft platform. For those the XML in Figure is hard to this should be possible because the XML does contain the XML Schema definition needed to understand and reassemble the data but in practice few people would want to deal with such a monstrosity. Web Services Chapter 11 635 Our advice then is to shy away from passing data coming from a database as Microsoft DataSets unless you really really know that the only clients ever to consume your Web Services will be Microsoft clients running preferably on the .NET platform. Passing XML Documents So far we have focused on using Web Services as an RPC remote procedure call mechanism. Although the data being exchanged through SOAP has of course been in the form of XML documents all along it was the data being exchanged and not the XML document as such that we were interested in so far. There are cases however when you will just want to exchange XML documents between a client and a server these XML documents could

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.