public function soap($path, $param)
{
try {
$client = new Zend_Soap_Client ( $this->_wsdl_url );
$options ['soap_version'] = 1;
$client->setOptions ( $options );
foreach ( $param as $k => $v ) {
$serviceParams ['request'] ['data'] ['entry'] [] = array ('key' => $k, 'value' => $v );
}
$serviceParams ['request'] ['servicePath'] = $path;
//My120_Mydebug::myjump($client);exit;
$resultWebservice = $client->service ( $serviceParams );
$arr = $this->objectToArray ( $resultWebservice );
$res['success'] = $arr['response']['success'];
foreach ($arr['response']['data'] as $k=>$v) {
$res[$v['key']] = $v['value'];
}
return $res;
} catch ( Exception $e ) {
return $e->getMessage ();
}
}\