Sun Java Solaris Communities My SDN Account Join SDN
 
Java Web Services

Java Web Services Developer Pack News

Java(TM) Web Services Developer Pack 1.2 News

JavaTM Web Services Developer Pack 1.4 News


This site is your source for news about the JavaTM Web Services Developer Pack (Java WSDP) 1.4.

JDBC RowSets

A JDBC RowSet object holds tabular data in a way that makes it more flexible and easier to use than a result set. Sun Microsystems has defined five RowSet interfaces for some of the more popular uses of a RowSet object. The Java Community Process has produced standard reference implementations for these five RowSet interfaces.

You can download the JDBC RowSet implementations from the JDBC Download page and use these with Java WSDP 1.4. The JDBC RowSet Tutorial explains how you can use these reference implementations.

Java WSDP users may be interested in WebRowSet objects, which can write themselves as XML documents and can also read those XML documents to convert themselves back to WebRowSet objects. A WebRowSet object fills a real need by making it easy for Web Services to send and receive data from a database in the form of an XML document.

In the last chapter in the tutorial, "WebRowSet," you can learn how to:

  • Create and populate a WebRowSet object
  • Write a WebRowSet object to an XML document
  • Read data, properties, and metadata into a WebRowSet object from an XML document
  • Make updates to a WebRowSet object
  • Synchronize data back to the data source

This tutorial uses the same Coffee Break scenario that is used in the J2EE Tutorial, but offers a new twist. In the original tutorial, the price list was sent in a message that was an XML document composed using the SAAJ API. In the "WebRowSet" chapter of the JDBC RowSet Tutorial, you will see how much easier it is to send the price data using a WebRowSet object, which can write itself as an XML document with a single method call.

Attachments Feature in JAX-RPC v1.1.2

Java API for XML-based RPC (JAX-RPC) v1.1.2 enables Java developers to develop SOAP-based portable Web services. JAX-RPC technology has support for the Web Services Interoperability Organization (WS-I) Basic Profile 1.1 with Attachments Profile 1.0. WS-I is an organization that aims at developing guidelines and tools to help developers in building interoperable Web services. The Basic Profile enables interoperability for your Web services, and the Attachments Profile compliments the Basic Profile 1.1 by adding support for conveying interoperable SOAP messages with attachments with SOAP messages.

Incorporating the WS-I Attachments Profile 1.0 into JAX-RPC technology provides the following benefits:

  1. Enables the efficient transfer of large amount of binary or XML data
  2. Provides an interoperable means of passing attachments via SOAP messages
  3. Provides a simplified programming model for passing attachments using standard WSDL and JAX-RPC 1.1
  4. Improves performance for large data transfers

See Vivek Pandey's Attachments Feature in JAX-RPC 1.1.2 article on java.net for more information.