The Source for Java Technology Collaboration
User: Password:



Bhakti Mehta

Bhakti Mehta's Blog

JAXB 2.0 and JAX-WS 2.0 are a part of Mustang (JDK 6.0)

Posted by bhaktimehta on August 08, 2005 at 04:18 PM | Comments (2)

Delivering Web Services is one of the primary themes for Mustang (Java SE 6). Our goal is that JSE will provide reasonable support for ease of development for the web services stack. This will primarily be client-side focused with a lightweight server to support callbacks. The main specifications are the Java Architecture for XML-Web Services (JAX-WS) 2.0 (formerly known as JAX-RPC) and Java Architecture for XML Binding (JAXB) 2.0.

JSR 224 is defining JAX-WS 2.0. This is a major update since the JAX-RPC 1.0 specification incorporating new specifications and updates to existing standards. JAX-WS 2.0 now delegates the databinding related tasks to JAXB 2.0.

JSR 222 is defining JAXB 2.0. It adds significantly to JAXB 1.0, including 100% XML schema support, the binding of Java classes to XML schema, the meeting of data binding requirements for JAX-WS 2.0, and schema evolution support. A flexible binding allows an application to bind only parts of an XML document (relevant to the application) to Java.

Mustang has the webservices features integrated as of b40. You can try the latest snapshot from https://mustang.dev.java.net/

We are fixing and integrating bugs on a regular basis. Please let us know about your bugs, you can file them at
http://bugs.sun.com/bugdatabase/index.jsp

There are 4 new scripts added in the jdk6.0/bin which are as follows xjc, schemagen , wsimport and wsgen
To run the JAXB schema compiler you can invoke the xjc as

/path/to/jdk6.0/bin/xjc foo.xsd -p test.foo

Similarly to invoke the schema generator to generate schemas from Java sources

/path/to/jdk6.0/bin/schemagen Foo.java

To generate portable artifacts from wsdls and external jaxws or jaxb binding files you can use wsimport

/path/to/jdk6.0/bin/wsimport stock.wsdl -b stock.xml -b stock.xjb

To generate portable artifacts from Java sources you can use wsgen

/path/to/jdk6.0/bin/wsgen example.Stock

Javadocs for jdk6.0
The javadocs are located at
http://www.java.net/download/jdk6/doc/api/

Forums
http://forums.java.net/jive/forum.jspa?forumID=25

List of Committed bugs in the latest snapshot release
https://mustang.dev.java.net/MustangCommittedBugs.html

More information on JAXB and JAXWS

* JAXB
* JAXWS


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Sigh, more bloat and duplication of functionality.
    Why include something in the SE which already exists and works well in the EE?
    Or are you planning to include all of the EE into the SE within the next few releases and make the SE into a single 500MB install?

    Posted by: jwenting on August 10, 2005 at 12:19 AM

  • jwenting :
    Well, of course it hurts to see the growing JRE size with every release,
    and until recently i was thinking like you, but hate it or love it, those webservices will be used for quite some time. And i think core Java should give good support to it (only client side libraries if possible). i do not think it is fair to expect everybody to use - or depend on open source libraries which lacks quality on this area IMHO.

    Posted by: ahmetaa on August 10, 2005 at 01:25 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds