dev@jax-ws.java.net

Re: new jax-ws-commons plug-in?

From: Oliver Treichel <oliver.treichel_at_gmx.de>
Date: Wed, 20 Feb 2008 19:31:21 +0100

Jitendra Kotamraju wrote:
> Did you use only com.sun.xml.ws.api classes or any implementation classes?

Well ... almost. I tried to stick to the API classes wherever possible.
However, I do use some implementation classes to do the magic.

My DimeCodec uses com.sun.xml.ws.encoding.StreamSOAPCodec behind the
scenes to encode and decode the SOAP message part in the DIME message.
The codec also uses com.sun.xml.ws.util.ByteArrayDataSource internally.

My DimeStreamReader extends
com.sun.xml.ws.util.xml.XMLStreamReaderFilter and implements
org.jvnet.staxex.XMLStreamReaderEx. It also uses Base64Data and
NameSpaceContextEx from the org.jvnet.staxex package.

Likewise, the DimeStreamWriter extends
com.sun.xml.ws.util.xml.XMLStreamWriterFilter and implements
org.jvnet.staxex.XMLStreamWriterEx. It also uses Base64Data and
NameSpaceContextEx from the org.jvnet.staxex package.


The key point is that I didn't want to re-invent the wheel for the
processing of the SOAP 1.1 message inside DIME. If there's a better way
to hook into the standard SOAP processing, I'm happy to change the code.

Thanks!
Oliver