cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liucong <>
Subject Re: How to determine whether a soap message have an attachment
Date Wed, 06 May 2009 19:24:52 GMT
It already supports MTOM. But there may be a bug for the MTOM.
The current implementation send all the messages as TextMessage because
jmsConfig variable in JMSConduit is not initialized according to the
MessageType of SOAPMessage. So it is wrong when the message has an

Sorry, I use the wrong word 'add MTOM support'. I just want to make the
'MTOM-support' work right.

Yes, I have followed some codes. I think it use a OutputStream to
generate the MTOM message. But before I send the message, I want to know
whether it is a MTOM message, because I should set ByteMessage or
TextMessage for JMS message depends on whether it is a MTOM message.
So far, I can't find a way to finish this.

Daniel Kulp 写道:
> Doesn't it already support MTOM?
> Basically, it provides a OutputSteam to the dispatching and if the runtime 
> needs to handle attachments and such, it will write it as mime stuff to the 
> stream. 
> Dan
> On Tue May 5 2009 12:53:48 am liucong wrote:
>> Hi all,
>> When I want to add MTOM support for SOAP/JMS, I should know whether a
>> soap message have an attachment. But I don't know the details how to
>> judge wheter the message have an attachment.
>> Is anyone give me any prompt about where the code is? Or some code example?
>> Thank you very much.
>> Best regards
>> Liu

View raw message