Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 54200 invoked from network); 14 Jul 2005 14:11:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2005 14:11:31 -0000 Received: (qmail 65918 invoked by uid 500); 14 Jul 2005 14:11:29 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 65670 invoked by uid 500); 14 Jul 2005 14:11:27 -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 65606 invoked by uid 99); 14 Jul 2005 14:11:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2005 07:11:14 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 9C4161B for ; Thu, 14 Jul 2005 16:11:11 +0200 (CEST) Message-ID: <1184850611.1121350271638.JavaMail.jira@ajax.apache.org> Date: Thu, 14 Jul 2005 16:11:11 +0200 (CEST) From: "Mark Whitlock (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-737) If same ISOAPAttachment object is passed as arguments to a service, Axis Engine creates an invalid SOAP Message In-Reply-To: <352997733.1120901411773.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-737?page=all ] Mark Whitlock closed AXISCPP-737: --------------------------------- Resolution: Fixed The fix to AXISCPP-732 also fixed this problem. > If same ISOAPAttachment object is passed as arguments to a service, Axis Engine creates an invalid SOAP Message > --------------------------------------------------------------------------------------------------------------- > > Key: AXISCPP-737 > URL: http://issues.apache.org/jira/browse/AXISCPP-737 > Project: Axis-C++ > Type: Bug > Components: Client - API > Reporter: James Jose > Assignee: Mark Whitlock > > ISoapAttachment *att1=ws.createSoapAttachment(); > ISoapAttachment *att2=ws.createSoapAttachment(); > char *text="This is a test message for attachment"; > xsd__base64Binary b64b1; > b64b1.__ptr = (xsd__unsignedByte*)text; > b64b1.__size = strlen(text); > att1->addBody(&b64b1); > att2->addBody(&b64b1); > //Calling webservice with multiple attachments. Here same object is passed as arguments > xsd__string_Array ret=ws.multiAttachment(att1,att1,att2,att1); > SOAP Message generated for the above code is invalid. > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap"/> > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap"/> > xsi:type="ns2:Image" > xmlns:ns2="http://xml.apache.org/xml-soap"/> > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap" > xsi:type="ns2:DataHandler" > xmlns:ns2="http://xml.apache.org/xml-soap"/> > > > > Here in each element for argument, xmlns:ns2="http://xml.apache.org/xml-soap"(Namespace declaration) occurs three times. ie If the same object of ISOAPAttachment is passed 'n' times as argument, then the resulted SOAP message contains namespace declaration 'n' times. > Testcase 'AttMultiSameAttachment ' adress this issue.. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira