Zend framework SoapFault异常:[SOAP-ENV:Client]错误在/var/www/html/hutch alco/application中找不到参数/
////////////////////////////////////////////////////////////////////////////// SoapFault异常:[SOAP-ENV:Client]错误在/var/www/html/hutch alco/application/controllers/TestController.php:65堆栈跟踪:#0/var/www/html/hutch alco/application/controllers/TestController.php(65):SoapClient->u调用('offerActivation…',Array)php(65):SoapClient->offerActivationByOfferID(Object(SoapVar))#2/var/www/html/hutch alco/library/Zend/Controller/Action.php(513):TestController->sujithAction()#3/var/www/html/hutch alco/library/Zend/Controller/Dispatcher/Standard.php(295):Zend\u Controller\u Action->调度('sujithAction')#4/var/www/html/hutch alco/library/Zend/Controller/Front.php(954):Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http)、Object(Zend_Controller_Response_Http))#5/var/www/html/hutch alco/application/bootstrap.php(51):Zend_Controller_Front->dispatch().6/var/www/html/hutch alco/public/index.php(8):require('/var/www/html/h…)#7 我犯了这个错误Zend framework SoapFault异常:[SOAP-ENV:Client]错误在/var/www/html/hutch alco/application中找不到参数/,zend-framework,soap,soap-client,zend-soap,Zend Framework,Soap,Soap Client,Zend Soap,////////////////////////////////////////////////////////////////////////////// SoapFault异常:[SOAP-ENV:Client]错误在/var/www/html/hutch alco/application/controllers/TestController.php:65堆栈跟踪:#0/var/www/html/hutch alco/application/controllers/TestControlle
有人能帮我吗………在代码中添加这个,因为不使用wsdl缓存
$ns = "auth";
$wsdl = "(http://example.com/api?wsdl)";
//Create our Auth Object to pass to the SOAP service with our values
$rand = rand(11111111,99999999);
$srt = 'ABCD';
$auth->username = 'hopp_api_user';
$auth->digestkey = sha1($srt);
$auth->nonce = $rand;
$auth->request_time = date('Y-m-d H:i:s');
$login = new SoapVar($auth, SOAP_ENC_OBJECT);
$authenticate = new SoapHeader($ns,'userauthentication',$login, false);
$client = new SoapClient($wsdl,array('cache_wsdl' => 0,'trace'=>1));
$client->__setSoapHeaders(array($authenticate));
$aaass ->offer_id ='322';
$aaass ->username ='user';
$obje = new SoapVar($aaass, SOAP_ENC_OBJECT);
$aaa = $client->offerActivationByOfferID($obje);
我有同样的问题…一整天都在试图解决它…你找到解决方案了吗?我遵循了这个例子…当得到与你相同的错误时。嗨,我改变了我的std类,如下/n$std=new stdClass();$std->login=$string;还添加了soap版本,如$client=new SoapClient($wsdl,array)('cache\u wsdl'=>0,'trace'=>1,'soap\u version'=>soap\u 1\u 2));之后,我将我的webservice身份验证类输入参数类型更改为string。然后它工作正常。请尝试此操作。
ini_set("soap.wsdl_cache_enabled", "0");
ini_set('soap.wsdl_cache_ttl', '0');