TAILIEUCHUNG - Pro XML Development with Java Technology 2006 phần 10

Tại sao yêu cầu của bạn viết bằng Java? JAXP thích ứng với DOM, SAX và JDOM; nếu bạn đang viết mã bằng Java, bạn nên sử dụng JAXP để tách mã khỏi các chi tiết thực hiện của nhiều bộ kiểm mã khác nhau. Ứng dụng của bạn sẽ được triển khai bằng cách nào? Nếu ứng dụng của bạn được triển khai như một applet Java, và bạn muốn tối giản lượng mã tải về, hãy nhớ rằng các bộ kiểm ngữ SAX nhỏ hơn rất nhiều so với các bộ kiểm ngữ DOM. Cũng nên nhớ rằng khi. | 370 CHAPTER 14 BUILDING XML-BASED WEB SERVICES name lastUpdated 2006-06-28T20 51 00 createdOn 2006-06-28T20 51 00 document folder ns1 manifest soapenv Body soapenv Envelope ------- Content-Type application octet-stream Content-ID zip 38edc2fb-8e13-4a5d-b3cc-7452edd30ad6@ Content-transfer-encoding binary ------ If you examine the response message in Listing 14-5 you ll notice it is a MIME multipart-related message. The first part contains a SOAP message document and the second part contains binary content we have deleted the binary content from Listing 14-5 associated with downloaded ZIP file. The SOAP message part and the related parts form a SOAP message package. Within a SOAP message package a core part contains the SOAP message and one or more related parts contain attachments. In the Understanding WSDL section you will see how an abstract WSDL message definition is bound to a concrete MIME multipart-related message. Understanding WSDL Whenever you have to build a web service the first step you need to take is to formally describe the web service in a WSDL document. Although it is possible to reverse engineer a WSDL document from Java classes in our opinion such reverse engineering is adequate only for building trivial web services perhaps for quick prototyping. The reverse-engineering option seriously limits the flexibility you need to describe nontrivial real-world web services. So we will not discuss it any further in this chapter. We describe the overall structure of a WSDL document next. WSDL Document Structure A WSDL document is an XML document that conforms to the WSDL schema which is available at http wsdl . The WSDL schema location also defines the WSDL namespace. Assuming the wsdl prefix for the WSDL namespace the root element of a WSDL document is wsdl .

Đã 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.