Developing Web Services with Apache Axis 2 phần 6

Thiết lập một phần một và chỉ một yếu tố mới của XML. Theo mặc định, nó phải được loại xsd: string đó là những gì bạn muốn ở đây. Tạo lỗi thứ hai tương tự. Đặt tên cho tin nhắn queryInvalidQty, thiết lập các phần tử XML để có loại xsd: int. Cuối cùng, nó phải được như: | Chapter 6 Sending and receiving complex data structures 111 Choose the fault in the Properties window set its name to f01 Console I Problems Javadoc Declaration Search r I Properties 3 lB fault General ral Documentation Message query_faultMsg Choose to create a new message Enter the name for the message Set the one and only part to a new XML element invalidProductId . By default it should be of type xsd string which is what you want here. Create the second fault similarly. Set the message name to queryInvalidQty set the XML element to invalidQty whose type is xsd int. Finally it should be like 112 Chapter 6 Sending and receiving complex data structures o BizService query 0 input p parameters e productQuery 0 output p parameters e productQueryResult rn Í01 p parameters e invalidProductld QÍŨ2 p parameters ej invalidQty Next create the binding for the two faults. Choose the binding and click Generate Binding Content in the Properties window Choose it. It represents the binding o BizService query 0 input p parameters e productQuery Cl output p parameters e productQueryResult refill p parameters ej invalid Prod uc tl d Qffl2 p parameters l_ej invalidQty Design ị Source I E Console I jr Problems @ Javadoc tj Declaration I Search o Properties S . binding GftTiftral Name BizServiceSOAP Documentation PortType Biz Service Extensions Protocol SOAP 1 Generate Binding Content 1 1 Click here Check Overwrite existing binding information and then click Finish Chapter 6 Sending and receiving complex data structures 113 This will generate the binding portion wsdl binding name BizServiceSOAP type tns BizService soap binding style document transport http soap http wsdl operation name query soap operation soapAction http query wsdl input soap body use literal wsdl input wsdl output soap body use literal wsdl output wsdl fault name f01 soap fault use literal name f01 wsdl fault wsdl fault name f02 soap fault use literal name f02 wsdl fault wsdl operation .

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
7    89    1    17-06-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.