dbittmann Posted June 18, 2014 Share Posted June 18, 2014 Hello, I use Mickael Cabanas "PrestaSoap" and it works fine. Except the create function. When I try to create a categorie via SOAP webservice, I get following error: <SOAP-ENV:Body> <SOAP-ENV:Fault><faultcode>400</faultcode><faultstring>Other error : This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request.</faultstring><faultactor>PrestaShoapWSFault</faultactor></SOAP-ENV:Fault></SOAP-ENV:Body> I tested this with Soap Ui. Except the create-function everthing works fine. This is my request in Soap-Ui: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cat="http://www.prestashop.com/Categories/"> <soapenv:Header/> <soapenv:Body> <cat:CreateCategoryRequest> <!--You may enter the following 2 items in any order--> <loginInfo> <key>?</key> </loginInfo> <category> <!--You may enter the following 15 items in any order--> <id_parent>2</id_parent> <level_depth>2</level_depth> <nb_products_recursive>0</nb_products_recursive> <active>1</active> <id_shop_default>1</id_shop_default> <is_root_category>0</is_root_category> <date_add>2014-06-18 14:46:13</date_add> <date_upd>2014-06-18 14:46:13</date_upd> <name> <language>Test</language> </name> <link_rewrite> <language>wusa234</language> </link_rewrite> <description> <language>Descrption</language> </description> <meta_title> <language>Metat</language> </meta_title> <meta_description> <language>Metatd</language> </meta_description> <meta_keywords> <language>test</language> </meta_keywords> <associations> <!--You may enter the following 2 items in any order--> <categories> <!--Zero or more repetitions:--> <category> <id>?</id> </category> </categories> <products> <!--Zero or more repetitions:--> <product> <id>?</id> </product> </products> </associations> </category> </cat:CreateCategoryRequest> </soapenv:Body> </soapenv:Envelope> I attached the categories.wsdl as an txt file. It would be so great if anyone could help me... caegories.txtFetching info... Link to comment Share on other sites More sharing options...
Recommended Posts