c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37253
Re: [Bug 889573] Re: Error when compilation active into Magento
Hello,
Thanks Guewen for answer. You're right for the xmlrpc call :-).
i try it in ruby with and without compilation :
with : could not initialize a session (errot on token receiving)
without : receive the token.
But i try it with php, using soap call with compilation active, and it's
wroks.
$proxy = new SoapClient('http://myurl/api/soap/?wsdl');
$sessionId = $proxy->login('myuser', 'mykey');
$attributeSets = $proxy->call($sessionId, 'product_attribute_set.list');
var_dump($attributeSets);
$set = current($attributeSets);
$attributes = $proxy->call($sessionId, 'product_attribute.list',
$set['set_id']);
var_dump($attributes);
So there is something on the XMLRPC version of the API....
Guewen Baconnier @ Camptocamp a écrit :
> require "xmlrpc/client"
> require 'pp'
> XMLRPC::Config::ENABLE_NIL_PARSER = true
>
> api_url = 'http://magento-urlcom/index.php/api/xmlrpc'
> api_user = 'api_user'
> api_key = 'api_key'
>
> # Make an object to represent the XML-RPC server.
> client = XMLRPC::Client.new2(api_url)
>
> # Login
> session_id = client.call("login", api_user, api_key)
>
> sku = 'SKU_PRODUCT'
>
> # Call the remote server and get our result
> attributes = client.call('call',
> session_id,
> 'product.info',
> [sku]
> )
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/889573
Title:
Error when compilation active into Magento
Status in Magento OpenERP Connector:
New
Bug description:
Hello,
Note that when compilation is activate into magento (for performance issue), the connector doesn't work.
We get various message :
1/ From synchronize referentials Setting
Error when try to connect to magento, are your sure that your login is right? Did openerp can access to your magento?
2/ from Export catalog
it talk about mismatch signature.
Thanks for your great works. Hope it could help to improve.
Regards,
Thierry
magento 1.6.1
openerp 6.0.3
backport connector.
To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/889573/+subscriptions
References