On 4/23/07, Sergey Beryozkin <[EMAIL PROTECTED]> wrote:
By the way, the issue Chris is trying to solve (finding out if the MTOM policy expression was set as optional or not) is the real issue for the client runtime. MTOM interceptor on the client side can check if it's required, if yes, then use MTOM, if not, then consider whether to use it or not anyway by checking the size of the outgoing message against the default or preconfigured value, etc... This is will be a no client configuration story (for MTOM)...
Its not possible to check the size of the outgoing message or even just the attachment. The DataHandler API doesn't expose it (and nor does the JAXB AttachmentMarhsaller APIs), so on the Client side, its all or nothing. - Dan -- Dan Diephouse Envoi Solutions http://envoisolutions.com | http://netzooid.com/blog
