axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: Axis 2: Creating SOAP body from SAX driver
Date Wed, 16 Aug 2006 20:31:23 GMT
See, the problem is *IF* you need to secure the soap message, this
will fail since with this hack, you are just writing it to the
outputstream.

-- dims

On 8/16/06, Jochen Wiedmann <jochen.wiedmann@gmail.com> wrote:
>
> Davanum Srinivas wrote:
>
>  > plz see the snippets in JaxmeDatabindingTemplate.xsl
>
> Are you referring to the toOM method? But that's not exactly streaming,
> isn't it? It simply converts the SAX drivers output into a (possibly
> large) OM tree?
>
> In the meantime, I've found a solution, which I personally do consider
> better:
>
>    return new OMElementImpl(qName, null, pCommands.getOMFactory()){
>      protected void internalSerialize(XMLStreamWriter pWriter,
>        boolean pCache) throws XMLStreamException {
>         if (pCache) {
>            throw new IllegalStateException("Caching isn't implemented.");
>          }
>          // Fire the SAX drivers output into pWriter here
>          ...
>      }
>    };
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message