Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 90279 invoked from network); 22 Feb 2005 14:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Feb 2005 14:54:41 -0000 Received: (qmail 30219 invoked by uid 500); 22 Feb 2005 14:54:41 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 30197 invoked by uid 500); 22 Feb 2005 14:54:40 -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 30179 invoked by uid 99); 22 Feb 2005 14:54:40 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.opensource.lk (HELO squid.cmb.ac.lk) (202.51.147.3) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 22 Feb 2005 06:54:39 -0800 Received: from 192.168.101.20 (121.247.adsl.sltnet.lk [220.247.247.121] (may be forged)) by squid.cmb.ac.lk (8.12.9/8.12.9) with ESMTP id j1MExkDl036908 for ; Tue, 22 Feb 2005 20:59:48 +0600 (LKT) (envelope-from roshan@opensource.lk) Subject: Re: cvs commit: ws-axis/c/src/soap SoapAttachment.hpp SoapAttachment.cpp SoapAttachementHeaders.cpp From: Roshan Weerasuriya To: Apache AXIS C Developers List In-Reply-To: References: Content-Type: text/plain Date: Tue, 22 Feb 2005 21:02:11 +0600 Message-Id: <1109084531.3328.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi, Rangika has forgotten to commit a file which has this change. Now it is building. Roshan On Tue, 2005-02-22 at 10:20 +0000, Adrian Dick wrote: > Hi, > > The following changes fail to compile on Windows: > + iEncodingStyle = AXIS_BASE64; > + iEncodingStyle = AXIS_BINARY; > > [cc] SoapAttachment.cpp > [cc] C:\development\build\src\ws-axis\c\src\soap\SoapAttachment.cpp(66) : > error C2065: 'AXIS_BASE64' : undeclared identifier > [cc] C:\development\build\src\ws-axis\c\src\soap\SoapAttachment.cpp(72) : > error C2065: 'AXIS_BINARY' : undeclared identifier > > Should these have been defined somewhere, or is there another file that > also needs committing? > > Adrian > _______________________________________ > Adrian Dick (adrian.dick@uk.ibm.com) > > rangika@apache.org wrote on 22/02/2005 08:56:34: > > > rangika 2005/02/22 00:56:34 > > > > Modified: c/src/soap SoapAttachment.hpp SoapAttachment.cpp > > SoapAttachementHeaders.cpp > > Log: > > Modified to support Binary attachments. > > > > Revision Changes Path > > 1.5 +4 -1 ws-axis/c/src/soap/SoapAttachment.hpp > > > > Index: SoapAttachment.hpp > > =================================================================== > > RCS file: /home/cvs/ws-axis/c/src/soap/SoapAttachment.hpp,v > > retrieving revision 1.4 > > retrieving revision 1.5 > > diff -u -r1.4 -r1.5 > > --- SoapAttachment.hpp 28 Jan 2005 11:47:09 -0000 1.4 > > +++ SoapAttachment.hpp 22 Feb 2005 08:56:34 -0000 1.5 > > @@ -54,12 +54,15 @@ > > private: > > SoapAttachementHeaders* m_AttachementHeaders; > > xsd__base64Binary* m_AttachementBody; > > - > > + char *m_binaryBody; > > + int iEncodingStyle; > > + > > public: > > const char* getHeader(const char* pchName); > > xsd__base64Binary* getBody(); > > void serialize(SoapSerializer& pSZ); > > void addBody(xsd__base64Binary* objBody); > > + void addBody(char* pchBinaryBody); > > void addHeader(const char* pchName, const char* pchValue); > > SoapAttachment(); > > virtual ~SoapAttachment(); > > > > > > > > 1.6 +22 -4 ws-axis/c/src/soap/SoapAttachment.cpp > > > > Index: SoapAttachment.cpp > > =================================================================== > > RCS file: /home/cvs/ws-axis/c/src/soap/SoapAttachment.cpp,v > > retrieving revision 1.5 > > retrieving revision 1.6 > > diff -u -r1.5 -r1.6 > > --- SoapAttachment.cpp 31 Jan 2005 04:37:38 -0000 1.5 > > +++ SoapAttachment.cpp 22 Feb 2005 08:56:34 -0000 1.6 > > @@ -63,9 +63,18 @@ > > > > void SoapAttachment::addBody(xsd__base64Binary* objBody) > > { > > + iEncodingStyle = AXIS_BASE64; > > m_AttachementBody = objBody; > > } > > > > +void SoapAttachment::addBody(char* pchBinaryBody) > > +{ > > + iEncodingStyle = AXIS_BINARY; > > + m_binaryBody = new char[strlen(pchBinaryBody) + 1]; > > + strcpy(m_binaryBody,pchBinaryBody); > > + > > +} > > + > > void SoapAttachment::serialize(SoapSerializer &pSZ) > > { > > /* Serialize the Attachment Headers */ > > @@ -73,10 +82,19 @@ > > m_AttachementHeaders->serialize(pSZ); > > > > /* Serialize the Attachment Body */ > > - if (m_AttachementBody) { > > - pSZ.serialize("\n", NULL); > > - pSZ.serializeAsChardata(m_AttachementBody, XSD_BASE64BINARY); > > - } > > + if (iEncodingStyle == AXIS_BASE64) > > + { > > + if (m_AttachementBody) { > > + pSZ.serialize("\n", NULL); > > + pSZ.serializeAsChardata(m_AttachementBody, > XSD_BASE64BINARY); > > + } > > + } > > + else if (iEncodingStyle == AXIS_BINARY) > > + { > > + pSZ.serialize("\n", NULL); > > + pSZ.serialize(m_binaryBody, NULL); > > + } > > + > > pSZ.serialize("\n", NULL); > > } > > > > > > > > > > 1.7 +1 -1 ws-axis/c/src/soap/SoapAttachementHeaders.cpp > > > > Index: SoapAttachementHeaders.cpp > > =================================================================== > > RCS file: /home/cvs/ws-axis/c/src/soap/SoapAttachementHeaders.cpp,v > > retrieving revision 1.6 > > retrieving revision 1.7 > > diff -u -r1.6 -r1.7 > > --- SoapAttachementHeaders.cpp 31 Jan 2005 13:00:53 -0000 1.6 > > +++ SoapAttachementHeaders.cpp 22 Feb 2005 08:56:34 -0000 1.7 > > @@ -81,4 +81,4 @@ > > return ""; > > } > > > > -AXIS_CPP_NAMESPACE_END > > +AXIS_CPP_NAMESPACE_END > > \ No newline at end of file > > > > > > > >