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

Extra function before Invoke

Help
Anonymous
2010-07-29
2013-06-06

  • Anonymous
    2010-07-29

    register('multiply',                       $in_param=array('a'=>'xsd:int', 'b'=>'xsd:int'),                       $out_param=array('return'=>'xsd:int')                       ); //^----- This is how we normally do, //but the issue its start here, //when i need to add md5hash check before 'multiply' called //Any ideas how to invoke/hack this really appreciated, //without breaking/hardcode the $soapServer codes function checkmd5hash() { $string = ''; foreach($all_in_params as $paramName => $param_values) if ($paramName != 'md5hash') $string .= $param_values; if (md5($string.'mySuperSecretString') == $all_in_params['md5hash']) return true;  //md5 validation passed else return false; //md5 validation failed! } ?>