The Source for Java Technology Collaboration
User: Password:



Doug Kohlert's Blog

November 2005 Archives


JAX-WS: wsimport tip

Posted by kohlert on November 09, 2005 at 12:59 PM | Permalink | Comments (3)

The wsimport tool of JAX-WS has added a -p option. This option is used to specify the package that the generated artifacts should be generated into. This option eliminates the need to write a customization to do the same task. For example, two customization files to specify that the package for a WSDL would be similar to the following:
custSchema - customizes the package that generated artifacts from schema use. 
<bindings 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    wsdlLocation="http://localhost:8080/jaxws-external-customize/addnumbers?wsdl"
    xmlns="http://java.sun.com/xml/ns/jaxws">
    <package name="external_customize.client"/>
</binding>

custWsdl - customizes the package that artifacts generated from the WSDL use.
<bindings 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://java.sun.com/xml/ns/jaxb"
    version="1.0">
    <bindings schemaLocation="http://localhost:8080/jaxws-external-customize/addnumbers?xsd=1" node="/xsd:schema">
        <schemaBindings>
            <package name="external_customize.client"/>
        </schemaBindings>
    </bindings>
</bindings>
This would be passed to wsimport using the -b option: For example:
wsimport -b custSchema -b custWsdl http://localhost:8080/jaxws-external-customize/addnumbers?wsdl"

With the new -p option, the same thing can be accomplished with: wsimport -p externa_customize.client http://localhost:8080/jaxws-external-customize/addnumbers?wsdl"

You can see a working sample code using both of these approaches in the external-customize and wsimport_catalog samples included in the nightly build of JAX-WS available here.

JAX-WS and .Net interoperability

Posted by kohlert on November 07, 2005 at 02:46 PM | Permalink | Comments (0)

Sun plans to implement the WS-* specifications that will greatly improve interoperability with .Net and the Windows Communication Framework (WCF/Indigo). The implementation of these specifications will be built on top of JAX-WS. You can read the press release from Sun about this at: http://www.sun.com/smi/Press/sunflash/2005-11/sunflash.20051104.1.html.

JAX-WS has been feature complete for a couple of months now and is becoming very stable. You can download the specification, APIs and JavaDocs for JAX-WS here. You can download the nightly builds of the JAX-WS RI here.

JAX-WS Project Created on Java.net

Posted by kohlert on November 03, 2005 at 09:15 AM | Permalink | Comments (0)

A new JAX-WS project has been created on Java.net. This project is for the reference implementation of JSR 224 that Java API for XML Web Services.

Originally JAX-WS 2.0 was named JAX-RPC 2.0 and was part of the JAX-RPC Java.net project. Even after JAX-RPC 2.0 was renamed to JAX-WS 2.0 (see my blog) the two projects continued to share the JAX-RPC project. To clarify that these are in fact two seperate projects and to remove some confusion about them, we have created a JAX-WS project to focus solely on JAX-WS.

JAX-WS is the next generation standard for Java Web Services. It has significant advantages and improvements over JAX-RPC. One of the biggest wins for developers is that JAX-WS will be included in Mustang (Java SE 6). This means that writing JAX-WS clients will not add additional libraries to the client application. In addition to the features I mentioned in my JAX-WS 2.0 EA blog a number of other features are also included in the new feature complete implemenation. These features include:

  • MTOM
  • SOAP 1.2
  • XML/HTTP
  • XML centric apis Dispatch and Provider
  • Java SE based Endpoints (no need for a servlet container for lightweight endpoints)


  • All of this and JAX-WS produces significantly smaller applications than JAX-RPC.

    The JAX-WS project can be found at http://jax-ws.dev.java.net. The users@jax-ws.dev.java.net mailing list will be used to discuss issues related to JAX-WS. To subscribe to the list, send a message to:<users-subscribe@jax-ws.dev.java.net>
    JAX-WS is an open source project with the CVS repository accessible from the JAX-WS project along with the API documentation, source and nightly builds of the JAX-WS source.



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