【发布时间】:2014-03-19 13:30:57
【问题描述】:
我正在尝试使用 nusoap 联系远程网络服务。 我真的很失望,因为使用soapUI 它可以工作。 url,因为我可以看到建议的功能
这是我的做法
$this->_client = new SoapClient("urlwebservice?wsdl);
//at this line i can see all the method that i can use
echo '<pre>';print_r($this->_client->__getFunctions());echo '</pre>';
//this line doesn't work
$this->client->call('UpdateTest',array($myxml));
我可以通过 __getFunction 的 print_r 看到这一点 [1] => UpdateLeadResponse UpdateTest(UpdateTest $parameters) 这是堆栈跟踪
#0 C:\WebSrv\htdocs\www.fgab.be\CallCenter\protected\modules\frontend\controllers\LeadController.php(192): GSoapClient->call('UpdateLead', Array)
1【内部函数】:LeadController->actionUpdate('IT1234')
2 C:\WebSrv\htdocs\yii\framework\web\actions\CAction.php(108): ReflectionMethod->invokeArgs(Object(LeadController), Array)
3 C:\WebSrv\htdocs\yii\framework\web\actions\CInlineAction.php(47): CAction->runWithParamsInternal(Object(LeadController), Object(ReflectionMethod), Array)
4 C:\WebSrv\htdocs\yii\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
5 C:\WebSrv\htdocs\yii\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
6 C:\WebSrv\htdocs\yii\framework\web\filters\CFilter.php(40): CFilterChain->run()
7 C:\WebSrv\htdocs\yii\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
8 C:\WebSrv\htdocs\yii\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
9 C:\WebSrv\htdocs\yii\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
10 C:\WebSrv\htdocs\yii\framework\web\CController.php(291): CFilterChain->run()
11 C:\WebSrv\htdocs\yii\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
12 C:\WebSrv\htdocs\yii\framework\web\CWebApplication.php(282): CController->run('update')
13 C:\WebSrv\htdocs\yii\framework\web\CWebApplication.php(141): CWebApplication->runController('frontend/lead/u...')
14 C:\WebSrv\htdocs\yii\framework\base\CApplication.php(180): CWebApplication->processRequest()
15 C:\WebSrv\htdocs\www.fgab.be\CallCenter\index.php(13): CApplication->run()
16 {主}
感谢您的帮助,因为我转身了
【问题讨论】:
-
我已经对此进行了测试,但结果相同:$rep = $this->client->UpdateTest(array('UpdateTest'=>$leadupd));