O’Reilly Securing Ajax Applications phần 8

Các phong bì SOAP là cấu trúc XML ngoài cùng xác định ranh giới của một tài liệu SOAP. Nó được biểu diễn như các yếu tố gốc và thường tuyên bố với cácSOAP cơ thể có chứa thịt hoặc tin nhắn yêu cầu SOAP. Cơ thể có phương pháp hoặc chức năng để thực hiện, các thông số để | The SOAP message can be broken into four 4 major parts the envelope headers body and faults. Let s take a closer look at each one. SOAP envelope The SOAP envelope is the outermost XML structure that defines the boundaries of a SOAP document. It is represented as the root element and is usually declared with the namespace http soap envelope . SOAP-ENV Envelope xmlns SOAP-ENV SoapEnvelopeURI SOAP-ENV EncodingStyle SoapEncodingURI SOAP headers SOAP headers appear immediately after the SOAP envelope declaration starting with the first child element. Here additional functionality and metadata used for processing the request such as encoding styles can be declared. The SOAP header is one place where SOAP can be extended by adding features or defining high-level functionality. SOAP-ENV Header SOAP-ENV Header SOAP body The SOAP body contains the meat or message of the SOAP request. The body contains the method or function to execute parameters to use while processing and SOAP fault data for use when a request cannot be processed. SOAP-ENV Body m GetDefinition xmlns m http word Word circuitous Word m GetDefinition SOAP-ENV Body SOAP faults What if something breaks while the request is being made or what if you want to know the status of some nonfunctioning backend service Well the SOAP specification provide a mechanism for handling such situations. A SOAP fault is a specialized SOAP envelope that contains a fault code fault string and other optional details about what has generated the fault error . Clients can then trap errors gracefully and programmatically avoid printing stack trace information to users. Now that I have an idea of the SOAP document I want to send let s look at a possible implementation using Java. Creating a SOAP message SOAPMessage soapMessage SOAPBody soapBody Web Services Overview 161 Download at QName soapBodyName new QName http n .

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
125    176    1    02-07-2024
Đã 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.