私はどこでもGoogle検索しましたが、誰も解決策を投稿していませんでしたが、設定でタイムアウトを設定すると言いますが、XMLRPC Zend_Http_Client_Adapter_Exception 'with with message'読み取り時間が10秒後にタイムアウトしました
XMLRPCクライアントまたはサーバーからこの設定をリセットまたは上書きするにはどうすればよいですか?引数として渡すしようとすると
Fatal error: Uncaught exception 'Zend_XmlRpc_Client_FaultException'
with message 'Method "setConfig" does not exist'
in /usr/share/php/libzend-framework-php/Zend/XmlRpc/Client.php:370
:ここ
$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
$client = $server->getProxy();
// Increasing the timeout
$client->setConfig(array('timeout'=>30));
がエラーである:ここでは
$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc', array('timeout'=>30));
エラーです:ここでは
は私がしようとしているものですCatchable fatal error: Argument 2 passed to
Zend_XmlRpc_Client::__construct() must be an
instance of Zend_Http_Client
は解決策を見つけ、ここにある:
$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
// Get the HTTP Client used by the XMLRPC client
$http_client = $server->getHttpClient();
// Increasing the HTTP timeout
$http_client->setConfig(array('timeout'=>30));
$client = $server->getProxy();
1行だけでなく私の作品:
$server = new Zend_XmlRpc_Client('http://127.0.0.1/xmlrpc');
// Get the HTTP Client used by the XMLRPC client and increasing the HTTP timeout
$server->getHttpClient()->setConfig(array('timeout'=>30));
$client = $server->getProxy();
私はこのためにドキュメントをコーミングされている、あなたに大きな時間をありがとうございました!!!! –
私は銃を飛ばしたと思う。更新された質問 –
HTTPクライアントではなくXMLRPCクライアントを探しています –