TAILIEUCHUNG - Oracle XSQL combining sql oracle text xslt and java to publish dynamic web content phần 9

Tham khảo tài liệu 'oracle xsql combining sql oracle text xslt and java to publish dynamic web content phần 9', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 460 Chapter 16 There is only one method left to document the writeError. This is a simple utility method for writing out any errors. Since it is the last method this code snippet also contains the closing brace for the class void writeError String mesg An error occurred mesg Now you can put this code to use. In Chapter 7 you used a table called newsletter to study the XML handling actions. In this example you use the command line tool to input some rows into the table. Here is the XSQL that will exist on the Web server side the filename is xml version page connection momnpup xmlns xsql urn oracle-xsql xsql insert-request table newsletter page As discussed in Chapter 7 the xsql insert-request action assumes that there is an XML document in the canonical rowset schema contained in the HTTP request. Our SimpleServicesApp will load a file and embed the XML in the request. Here is what the file looks like which we ll call xml version ROWSET ROW num 1 NAME test name2 NAME EMAIL test1@ EMAIL ROW ROW num 2 NAME test name2 NAME EMAIL test2@ EMAIL ROW ROWSET You invoke the SimpleServicesApp as follows prompt java SimpleServicesApp http localhost xsql momnpup When the request arrives at the HTTP server it looks like this POST xsql momnpup HTTP Content-Type text xml User-Agent Host localhost Accept text html image gif image jpeg q .2 q .2 Connection keep-alive Web Services with XSQL 461 Content-length 226 xml version ROWSET ROW num 1 NAME test name2 NAME EMAIL test1@ EMAIL ROW ROW num 2 NAME test name2 NAME EMAIL test2@ EMAIL ROW ROWSET There are two differences between this and a standard post. First the Content -Type is set to text xml. The second difference is more obvious. Instead of having a list of name-value pairs in the body of the request you have the XML .

TÀI LIỆU LIÊN QUAN
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.