zend2控制台调用soap失败

roundman 2014-02-25 05:10:26
最近在用zend framework2做个项目,但是调用第三方soap时遇见个问题:
通过页面运行action,能够正常调用soap方法,但是如果通过console方式调用action的时,就会产生错误,请各位帮帮忙分析下到底什么地方导致没弄好.

错误信息:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://xxxxx?wsdl' : Extra content at the end of the document

出错语句为:

$client = new \SoapClient($wsdl, array(
'trace' => 1,
'encoding' => 'UTF-8',
'soap_version' => SOAP_1_1
));


module.config相关语句:

'console' => array(
'router' => array(
'routes' => array(
'updaterepair' => array(
'options' => array(
'route' => 'updaterepair',
'defaults' => array(
'controller' => 'Bat\Controller\Bat01',
'action' => 'updaterepair'
)
)
)
)
)
)


控制台执行语句:
C:\php5\php.exe C:\Apache2.4\htdocs\xxx\public\index.php updaterepair
...全文
131 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
roundman 2014-02-28
  • 打赏
  • 举报
回复
现在csdn人气真低…… 查下来估计和私钥有关。实验中

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧