oidnus Posted May 24, 2013 Share Posted May 24, 2013 I have a problem with update product via webservice on presta 1.5.4.1. In AdminWebservice i have all permission full access. I used function from http://www.prestashop.com/forums/...-update/ add product work correctly but update no. HTTP REQUEST HEADER PUT /api/products/12 HTTP/1.1 Authorization: Basic RlhLVDBVMUZCR1BDMkVET1Q4VEJOSlAxOUNFTUhQM0k6 Host: karsanit.pl Accept: */* Content-Length: 4092 Content-Type: application/x-www-form-urlencoded HTTP RESPONSE HEADER XML SENT <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <product> <id><![CDATA[12]]></id> <id_manufacturer xlink:href="http://karsanit.pl/api/manufacturers/1">2</id_manufacturer> <id_supplier xlink:href="http://karsanit.pl/api/suppliers/1">2</id_supplier> <id_category_default xlink:href="http://karsanit.pl/api/categories/7">7</id_category_default> <new>0</new> <cache_default_attribute><![CDATA[0]]></cache_default_attribute> <id_default_image not_filterable="true"/> <id_default_combination not_filterable="true">0</id_default_combination> <id_tax_rules_group xlink:href="http://karsanit.pl/api/tax_rules_group/1">0</id_tax_rules_group> <type not_filterable="true"><![CDATA[simple]]></type> <id_shop_default><![CDATA[1]]></id_shop_default> <reference/> <supplier_reference/> <location/> <width><![CDATA[0.000000]]></width> <height><![CDATA[0.000000]]></height> <depth><![CDATA[0.000000]]></depth> <weight><![CDATA[0.000000]]></weight> <quantity_discount><![CDATA[0]]></quantity_discount> <ean13/> <upc/> <cache_is_pack><![CDATA[0]]></cache_is_pack> <cache_has_attachments><![CDATA[0]]></cache_has_attachments> <is_virtual><![CDATA[0]]></is_virtual> <on_sale><![CDATA[0]]></on_sale> <online_only><![CDATA[0]]></online_only> <ecotax><![CDATA[0.000000]]></ecotax> <minimal_quantity>1</minimal_quantity> <price>144.65</price> <wholesale_price><![CDATA[0.000000]]></wholesale_price> <unity/> <unit_price_ratio><![CDATA[0.000000]]></unit_price_ratio> <additional_shipping_cost><![CDATA[0.00]]></additional_shipping_cost> <customizable><![CDATA[0]]></customizable> <text_fields><![CDATA[0]]></text_fields> <uploadable_files><![CDATA[0]]></uploadable_files> <active>1</active> <redirect_type/> <id_product_redirected><![CDATA[0]]></id_product_redirected> <available_for_order>1</available_for_order> <available_date><![CDATA[0000-00-00]]></available_date> <condition><![CDATA[new]]></condition> <show_price>1</show_price> <indexed>1</indexed> <visibility>both</visibility> <advanced_stock_management>0</advanced_stock_management> <date_add><![CDATA[2013-05-24 20:24:30]]></date_add> <date_upd><![CDATA[2013-05-24 20:24:30]]></date_upd> <meta_description><language id="1" xlink:href="http://karsanit.pl/api/languages/1">meta desc</language></meta_description> <meta_keywords><language id="1" xlink:href="http://karsanit.pl/api/languages/1">some,one,keywords</language></meta_keywords> <meta_title><language id="1" xlink:href="http://karsanit.pl/api/languages/1">meta-title</language></meta_title> <link_rewrite><language id="1" xlink:href="http://karsanit.pl/api/languages/1">someone_rewrite</language></link_rewrite> <name><language id="1" xlink:href="http://karsanit.pl/api/languages/1">New product namrwerwerwe3</language></name> <description><language id="1" xlink:href="http://karsanit.pl/api/languages/1">New product description LONG</language></description> <description_short><language id="1" xlink:href="http://karsanit.pl/api/languages/1">New product description SHORT</language></description_short> <available_now><language id="1" xlink:href="http://karsanit.pl/api/languages/1">Available for order</language></available_now> <available_later><language id="1" xlink:href="http://karsanit.pl/api/languages/1">Available from gg/mm/yy</language></available_later> <associations> <categories node_type="category"> <category xlink:href="http://karsanit.pl/api/categories/7"> <id><![CDATA[7]]></id> </category> </categories> <images node_type="image"/> <combinations node_type="combinations"/> <product_option_values node_type="product_options_values"/> <product_features node_type="product_feature"/> <tags node_type="tag"/> <stock_availables node_type="stock_available"> <stock_available xlink:href="http://karsanit.pl/api/stock_availables/43"> <id><![CDATA[43]]></id> <id_product_attribute><![CDATA[0]]></id_product_attribute> </stock_available> </stock_availables> <accessories node_type="product"/> <product_bundle node_type="products"/> </associations> </product> </prestashop> RETURN HTTP BODY <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /api/products/12 on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> sry for my weak english Link to comment Share on other sites More sharing options...
Recommended Posts