Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

WSDL, GetProxy()

Anonymous
2010-08-09
2013-06-06

  • 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/ )