axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimuthu <>
Subject [Axis2]Problem in OMNode build method
Date Wed, 29 Aug 2007 11:18:12 GMT

We have a "small problem" when the following conditions are

1) Client is not code generated. It is a simple client written by hand.
2) We have a OMText node to the SOAP body, where isBinary()  and
isOptimized() are both true. MTOM is enabled.
3) We call the build() method of the SOAP Envelop, before sending the
SOAPEnvelope down the line.

MTOM serialization does not happen. 

I think this is a bug in the OMNode build() method. This method does not
use OMStaxWrapper, instead it uses a ValidatingStreamReader , which
returns false on the following conditions. 

Quoting from the StAXBuilder class.
"if (isDataHandlerAware(parser) &&

This results in a plain old OMText being created without the isBinary
and isOptimize properties set, when we call the build() method in
Envelope. So these properties are lost forever.

Does anybody know the solution to the problem? 



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message