Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 98308 invoked from network); 18 Oct 2004 05:56:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Oct 2004 05:56:35 -0000 Received: (qmail 45425 invoked by uid 500); 18 Oct 2004 05:56:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 45385 invoked by uid 500); 18 Oct 2004 05:56:31 -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 45372 invoked by uid 99); 18 Oct 2004 05:56:30 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 17 Oct 2004 22:56:30 -0700 Received: (qmail 98253 invoked by uid 1852); 18 Oct 2004 05:56:29 -0000 Date: 18 Oct 2004 05:56:29 -0000 Message-ID: <20041018055629.98252.qmail@minotaur.apache.org> From: samisa@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/src/wsdd WSDDDocument.cpp X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N samisa 2004/10/17 22:56:29 Modified: c/src/wsdd WSDDDocument.cpp Log: Fix to deal with the trailing space requirement problem. Now it works even if there is no trailing space. Fix for AXISCPP-38. Revision Changes Path 1.38 +3 -1 ws-axis/c/src/wsdd/WSDDDocument.cpp Index: WSDDDocument.cpp =================================================================== RCS file: /home/cvs/ws-axis/c/src/wsdd/WSDDDocument.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- WSDDDocument.cpp 24 Sep 2004 09:49:55 -0000 1.37 +++ WSDDDocument.cpp 18 Oct 2004 05:56:29 -0000 1.38 @@ -527,7 +527,9 @@ do { pos = sValue.find(METHODNAME_SEPARATOR, prepos); - if (AxisString::npos == pos) break; + if (AxisString::npos == pos) // Handle the case of no trailing space in AllowedMethods + pos = sValue.size(); + if (pos <= prepos) break; m_pService->addAllowedMethod(sValue.substr(prepos, pos-prepos).c_str()); prepos = pos + 1;