Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 94848 invoked from network); 12 Mar 2007 10:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 10:03:31 -0000 Received: (qmail 8066 invoked by uid 500); 12 Mar 2007 10:03:39 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 8043 invoked by uid 500); 12 Mar 2007 10:03:39 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 8012 invoked by uid 99); 12 Mar 2007 10:03:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 03:03:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 03:03:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96253714072 for ; Mon, 12 Mar 2007 03:03:09 -0700 (PDT) Message-ID: <24528531.1173693789612.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 03:03:09 -0700 (PDT) From: "Supun Kamburugamuva (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXIS2C-452) Attachment problem In-Reply-To: <30319778.1165500141052.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480036 ] Supun Kamburugamuva commented on AXIS2C-452: -------------------------------------------- I have fixed the problem with empty attachments. The problem was in the axiom/src/attachments/data_handler.c file. When an empty file is given axiom_data_handler_read_from function's while loop ran without stopping. I have corrected this problem so that when a empty file is given it returns a empty stream. > Attachment problem > ------------------ > > Key: AXIS2C-452 > URL: https://issues.apache.org/jira/browse/AXIS2C-452 > Project: Axis2-C > Issue Type: Bug > Affects Versions: 0.95 > Environment: Linux > Reporter: yong yang > Assigned To: Dinesh Premalal > Fix For: 1.0.0 > > Attachments: axis2.c, axis2.h, client.c, test.c > > > 1)send attachment > for example, the client will attach three files to the web service. > a) The first file exists and is not empty > b) The second file doesn't exist or it is empty. > c) The third file exists and is not empty > when the server receives the SOAP message, it will try to detach > these files. But the server only can detach the first file and can > not detach the third file. When I used the TCP MONITOR to trace the > SOAP message, the first MIME contains the content of the first file; > the second MIME is empty; the third MIME contains the content of the > third file. I also check what is the content in corresponding binary > node, I found the binary node in both second and third attachment > node are NULL. > 2)send back attachment > If the server would like to send back the attachment to the client in case of SEND-AND-RECEIVE message pattern, it seems that the server can not attach these files. When I used the TCP monitor to trace the SOAP message, no any MIME in the SOAP reply even if I enable the MTOM options in the server program. When I read some doucments, it seems tha tthe OPTIONS only can associate with CLIENT. How can I associate the OPTIONS with the server as well? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org