cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cong Liu <liucon...@gmail.com>
Subject Re: MTOM over SOAP/JMS
Date Mon, 27 Apr 2009 17:38:32 GMT
Hi,

    Maybe I have found the real reason.

    All the messages are sent as TextMessage because jmsConfig variable in
JMSConduit is not initialized according to the MessageType of SOAPMessage.
It just uses the 'text' for transferring.

Best regards,

Liu

2009/4/27 Willem Jiang <willem.jiang@gmail.com>

> Did you print out the message which is sent from Client side and the
> message which is received from server side?
>
> If not ,  you may need debug the code for the real reason.
>
> Willem
>
> liucong wrote:
> > Hi,
> >
> >     I have compared the two messages. And I have used several kinds of
> > attatchment for it.
> >     1) Text File. The result is right.
> >     2) WinRaR File. The file that is received by the server is larger
> > than the file that is sent by the client.
> >     3) BitMap file. The size of attachment that is sent by the client is
> > 163166, but the size of attachment that is received is 485947, which is
> > 167% more than the original binary data.
> > (http://www.w3.org/TR/2008/WD-soapjms-20081121/#binding-message-body)
> >
> >     According to the analysis above, reason may be as follows:
> >     1) In the client, the attachment is encoded as base64 encoding, and
> > transfer as TextMessage in JMS.
> >     2) The server doesn't know the encoding, and just get the message.
> >
> >     I'll try to find the reason in the codes.
> >
> > Best regards,
> > Liu
> >
> > Willem Jiang Writes:
> >> Hi,
> >>
> >> Did you compare the two messages ?
> >>
> >> Here are some useful links[1][2] for your debugging.
> >>
> >> [1] http://cwiki.apache.org/CXF/testing-debugging.html
> >> [2] http://cwiki.apache.org/CXF20DOC/debugging.html
> >>
> >> Please feel free to ask more specified question :)
> >>
> >> Willem
> >>
> >> liucong wrote:
> >>
> >>> Hi all,
> >>>
> >>> I'm working on SOAP over JMS as a GSoCer. I'm investigating the current
> >>> implementation of SOAP/JMS, and find a question about MTOM over
> SOAP/JMS.
> >>> I have modified the example jms_queue in CXF-2.2 and made the example
> >>> support MTOM. Throught the client send the attachement and the server
> >>> get the attachment, the size of the attachment which is got by the
> >>> server is not the same with the size of the attachment which is sent by
> >>> the client.
> >>> Is there something wrong with this?
> >>> I'll try to debug what's wrong. Is there some prompts or advice to do
> >>> this job?
> >>>
> >>> Thank you!
> >>>
> >>> Best regards,
> >>> Liu
> >>>
> >>>
> >>
> >>
> >>
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message