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/09/24 11:49:55 UTC
cvs commit: ws-axis/c/src/wsdd WSDDService.cpp WSDDDocument.cpp
sanjaya 2004/09/24 02:49:55
Modified: c/src/wsdd WSDDService.cpp WSDDDocument.cpp
Log:
Modifications to allow * to be used as a value in the allowedmethods attribute
in the server.wsdd so that all methods of a cetain service is allowed to be
invoked
Revision Changes Path
1.25 +7 -0 ws-axis/c/src/wsdd/WSDDService.cpp
Index: WSDDService.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdd/WSDDService.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- WSDDService.cpp 7 Sep 2004 08:57:42 -0000 1.24
+++ WSDDService.cpp 24 Sep 2004 09:49:55 -0000 1.25
@@ -101,6 +101,13 @@
bool WSDDService::isAllowedMethod(const AxisChar* sServiceName) const
{
list<AxisString>::const_iterator iter;
+ iter = m_AllowedMethods.begin();
+
+ if ((*iter) == "*")
+ {
+ return true;
+ }
+
for(iter = m_AllowedMethods.begin();iter != m_AllowedMethods.end();iter++)
{
if((*iter) == sServiceName)
1.37 +4 -0 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.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- WSDDDocument.cpp 6 Aug 2004 14:44:41 -0000 1.36
+++ WSDDDocument.cpp 24 Sep 2004 09:49:55 -0000 1.37
@@ -533,6 +533,10 @@
prepos = pos + 1;
} while (true);
}
+ else
+ {
+ m_pService->addAllowedMethod("*");
+ }
}