playmono Posted January 17, 2014 Share Posted January 17, 2014 Hi all,Recently I was using the official guide for make webservices and I noticed an error in this URL: http://doc.prestashop.com/display/PS14/Chapter+5+-+Modification+-+Update+clientThe URL says that to edit a resource, you must give as a parameter: $opt[ 'xml' ] = $xml->asXML(); //XML file definition This is incorrect. Searching through the code (file: PSWebServiceLibrary.php - line 331) says that this should be: $opt[ 'putXml' ] = $xml->asXML(); //XML file definition Link to comment Share on other sites More sharing options...
parsifal Posted February 7, 2014 Share Posted February 7, 2014 Hello playmono, are you working on PrestaShop 1.4.x or 1.5.x? The link you gave was from the PS1.4 docs though, that's why I'm asking. In the PS1.5 documentation, it seems to have been updated, exactly as you are proposing: http://doc.prestashop.com/display/PS15/Chapter+5+-+Modification+-+Update+client Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now