Jump to content

Web services of prestashop are not work with prestashop

Recommended Posts

i created web service for my mobile app with latest prestashop each and every works fine except create order one, 
now i switched to prestashop to check if creating order is working with this version , but each web service request which use edit() method give me error , while they all works fine with latest version .
here is my customer password update request which give me this types error now


  •     // Filtering customer by email
        $xml = $this->webService->get(array('resource' => 'customers','display' => 'full','filter[email]' => '['.$this->input->post("email").']'));
        // Retriving customer id
        $id = (int) $xml->customers->customer->id;
        // Retrieve resource elements 
        $resource = $xml->customers;
        $resource->customer->passwd = $this->input->post("password");
        $opt_update['resource'] = 'customers';
        $opt_update['id'] = $id;
        $opt_update['putXml'] = $resource->asXML(); 
        $update = $this->webService->edit($opt_update);


**Note :-** 
**This request works very fine with prestashop for changing customer password. but not working with Prestashop :(**
please help me solve this issue. here is error code and details i face :
**Error :-**
Fatal error: Uncaught exception 'PrestaShopWebserviceException' with message 'This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error.'
**Debug Result:-**

<?xml version="1.0" encoding="UTF-8"?>
    <prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<![CDATA[[PHP Warning #2] SimpleXMLElement::__construct(): 
namespace error : Namespace prefix xlink for href on id_default_group is not defined (/opt/lampp/htdocs/prestashop/classes/webservice/WebserviceRequest.php, line 1374)]]>

Share this post

Link to post
Share on other sites

  • 8 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More