Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 44230 invoked from network); 7 May 2009 14:13:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 14:13:02 -0000 Received: (qmail 55444 invoked by uid 500); 7 May 2009 14:13:02 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 55406 invoked by uid 500); 7 May 2009 14:13:02 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 55396 invoked by uid 99); 7 May 2009 14:13:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:13:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:12:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 689AB234C041 for ; Thu, 7 May 2009 07:12:30 -0700 (PDT) Message-ID: <469512796.1241705550423.JavaMail.jira@brutus> Date: Thu, 7 May 2009 07:12:30 -0700 (PDT) From: "Willem Jiang (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2207) JMS Transport send MTOM message as a TextMessage. The attachment becomes wrong. In-Reply-To: <1838834838.1241639670516.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706915#action_12706915 ] Willem Jiang commented on CXF-2207: ----------------------------------- We can add a check point in the JMSConduit.sendExchange() to show some warning or throw the exception if the user forget to add the messageType configuration or set the wrong messageType. Add the link of the mail thread[1] which discusses this issue. [1] http://www.nabble.com/How-to-determine-whether-a-soap-message-have-an-attachment-tt23381010.html > JMS Transport send MTOM message as a TextMessage. The attachment becomes wrong. > ------------------------------------------------------------------------------- > > Key: CXF-2207 > URL: https://issues.apache.org/jira/browse/CXF-2207 > Project: CXF > Issue Type: Bug > Components: Transports > Affects Versions: 2.2.2 > Environment: Windowns XP2, JDK1.6.0_11 > Reporter: Liu Cong > Assignee: Willem Jiang > Attachments: patches.rar > > > MTOM over SOAP/JMS doesn't work. > Thought the client send attachement information and the server get the attachment information, the attachment which is got by the server is not the same with the attachment information which is sent by the client. > 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 text message. > The current implementation send all the messages as TextMessage because jmsConfig variable in JMSConduit is not initialized according to the MessageType of SOAPMessage. jmsConfig is just configed in wsdl. If the wsdl doesn't have messagetype information, it goes wrong. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.