axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Braun <Thomas_Br...@hp.com>
Subject RPCProvider, wsdd, allowedMethods (bug? + fix??)
Date Wed, 19 Jun 2002 12:19:01 GMT
hi all,
the axis user's guide says about the wsdd's allowedMethods tag:
> restricted the SOAP-accessible methods by using a space or comma separated  
> list of available method names.

unfortunately, using a comma separated list doesn't work. i found, that 
this is due to the following lines from 
org.apache.axis.provides.java.RPCProvider.

> // allowedMethods may be a comma-delimited string of method names.
> // If so, look for the one matching methodName.
> if (allowedMethods != null && allowedMethods.indexOf(' ') != -1) {
>    StringTokenizer tok = new StringTokenizer(allowedMethods, " ");

i suggest this be changed to something like :

   if (allowedMethods != null && allowedMethods.length() > 1) {
      StringTokenizer tok = new StringTokenizer(allowedMethods, ", ");

this "patch" is untested and maybe one needs to trim "tok" before comparison.

b.r.
        tom



Mime
View raw message