You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2004/10/18 07:56:29 UTC
cvs commit: ws-axis/c/src/wsdd WSDDDocument.cpp
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;