【发布时间】:2017-04-17 05:02:39
【问题描述】:
我正在使用以下 php 代码通过以下链接连接 odoo Web 服务 https://www.odoo.com/documentation/9.0/api_integration.html
$url = "http://188.166.242.45:8069/";
$db = "test_db";
$username = "admin";
$password = "admin";
require_once('ripcord-master/ripcord.php');
$info = ripcord::client('http://188.166.242.45:8069/')->start();
list($url, $db, $username, $password) =
array($info['host'], $info['database'], $info['user'], $info['password']);
但这显示了以下错误。
Fatal error: Uncaught exception 'Ripcord_TransportException' with message 'Could not access http://188.166.242.43:8069/' in D:\xampp\htdocs\web_services\ripcord-master\ripcord_client.php:488 Stack trace: #0 D:\xampp\htdocs\web_services\ripcord-master\ripcord_client.php(228): Ripcord_Transport_Stream->post('http://188.166....', '<?xml version="...') #1 D:\xampp\htdocs\web_services\index.php(10): Ripcord_Client->__call('start', Array) #2 D:\xampp\htdocs\web_services\index.php(10): Ripcord_Client->start() #3 {main} thrown in D:\xampp\htdocs\web_services\ripcord-master\ripcord_client.php on line 488
我该如何解决这个问题???
【问题讨论】:
-
你解决了吗?