Anonymous - 2010-08-09

When param string have "-", nuSoap throw errors. Problem is that it cannot eval string with $text-text named variables.
How to fix it?
Very Simple:
In nusoap.php find _getProxyClassCode($r) and change

$paramStr .= "\$$name, ";
$paramArrayStr .= "'$name' => \$$name, ";
$paramCommentStr .= "$type \$$name, ";

to

                        $name_fixed = str_replace("-","_",$name);
                        $paramStr .= "\$$name_fixed, ";
$paramArrayStr .= "'$name' => \$$name_fixed, ";
$paramCommentStr .= "$type \$$name_fixed, ";

That fixe form me problems with Allegro WebApi  ( http://allegro.pl/webapi/ )