给梦一个奔跑的方向!
PDF Print E-mail
User Rating: / 0
PoorBest 
Written by xlingfairy
Saturday, 06 February 2010 10:52
 还是同样的代码在本地(windows)返回的是正常的. 但是在服务器上却返回:
Procedure 'xxx' not present
 
查了一下GOOGLE,在2007年的时候,有人报告过这个 BUG:
http://bugs.php.net/bug.php?id=42086
 
但是都快3年了,这个BUG应该早以修复了吧( windows 本地 执行没有这个错误).
 
最后找到一个解决办法:
http://www.anty.info/2008/09/01/soap-procedure-foo-not-present/
 
ini_set("soap.wsdl_cache_enabled", "0");
$soap = new Zend_Soap_Server ( URL . "/?wsdl"); // this current file here
$soap->setClass ( 'Joomla_User' );
$soap->handle ();
 
问题解决.
 

Add comment


Security code
Refresh

Popular Contents

Recommend

Site Info

Members : 1
Content : 100
Web Links : 7
Content View Hits : 56496

Links