Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 73405 invoked from network); 22 Feb 2005 14:31:18 -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:31:18 -0000 Received: (qmail 91324 invoked by uid 500); 22 Feb 2005 14:31:17 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 91271 invoked by uid 500); 22 Feb 2005 14:31:17 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 91258 invoked by uid 99); 22 Feb 2005 14:31:17 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 22 Feb 2005 06:31:16 -0800 Received: (qmail 73365 invoked by uid 1876); 22 Feb 2005 14:31:15 -0000 Date: 22 Feb 2005 14:31:15 -0000 Message-ID: <20050222143115.73363.qmail@minotaur.apache.org> From: hawkeye@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/include/axis IHeaderBlock.hpp X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hawkeye 2005/02/22 06:31:15 Modified: c/src/soap HeaderBlock.cpp c/include/axis IHeaderBlock.hpp Log: Changed docs on IHeaderBlock so that we absolve ourselves when the user uses createAttribute incorrectly. Also changed the implementation so that if the localname or prefix on getAttribute is NULL then we search for "" Revision Changes Path 1.50 +9 -0 ws-axis/c/src/soap/HeaderBlock.cpp Index: HeaderBlock.cpp =================================================================== RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- HeaderBlock.cpp 22 Feb 2005 12:02:30 -0000 1.49 +++ HeaderBlock.cpp 22 Feb 2005 14:31:15 -0000 1.50 @@ -702,6 +702,15 @@ const AxisChar* HeaderBlock::getAttributeValue(const AxisChar *localname, const AxisChar *prefix) { + if(!localname) + { + localname=""; + } + if(!prefix) + { + prefix=""; + } + list::iterator itAttr = m_attributes.begin(); while (itAttr != m_attributes.end()) { 1.11 +8 -1 ws-axis/c/include/axis/IHeaderBlock.hpp Index: IHeaderBlock.hpp =================================================================== RCS file: /home/cvs/ws-axis/c/include/axis/IHeaderBlock.hpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- IHeaderBlock.hpp 22 Feb 2005 12:02:30 -0000 1.10 +++ IHeaderBlock.hpp 22 Feb 2005 14:31:15 -0000 1.11 @@ -166,7 +166,11 @@ eStdAttrType, SOAP_VERSION eSOAP_VERSION) =0; /** - * Creates a Attribute and adds it to this Header Block. + * Creates a Attribute and adds it to this Header Block. + * NOTE: No checking is done to see if this attribute creation applies to the xsd rules. + * We expect that the server side will fail. + * e.g. If creating more than one attribute with the same name the outcome is undefined + * * * @param localname The local name of the attribute. * @param prefix The prefix of the attribute. @@ -181,6 +185,9 @@ /** * Creates a Attribute and adds it to this Header Block. + * NOTE: No checking is done to see if this attribute creation applies to the xsd rules. + * We expect that the server side will fail. + * e.g. If creating more than one attribute with the same name the outcome is undefined * * @param localname The local name of the attribute. * @param prefix The prefix of the attribute.