Jump to content

Prestashop Localhost 1.7.7.4 WebService/ Web Api : [CDATA[XML error : String could not be parsed as XML XML length : 0


Recommended Posts

Localhost

Xampp server

version Prestashop 1.7.7.4

Server Apache (Unix)

for the request : postman Ubuntu

 

Hello,

I tried to transfert my new products to my web tools ERP. 

So I decided to use webservice.

So thanks to my key and postman, I tried so different request. 

And I can have result when I used GET :

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <products>
        <product id="1" xlink:href="https://localhost/my_prestashop/api/products/1"/>
        <product id="2" xlink:href="https://localhost/my_prestashop/api/products/2"/>
        <product id="3" xlink:href="https://localhost/my_prestashop/api/products/3"/>
        <product id="4" xlink:href="https://localhost/my_prestashop/api/products/4"/>
    </products>
</prestashop>

But when I used POST, this didn't work :

<b>Notice</b>: Undefined index: REMOTE_USER in

<b>/opt/lampp/htdocs/my_prestashop/webservice/dispatcher.php</b> on line

<b>52</b>
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.*****/xlink">
    <errors>
        <error>
            <code>
                <![CDATA[127]]>
            </code>
            <message>
                <![CDATA[XML error : String could not be parsed as XML
XML length : 0
Original XML : ]]>
            </message>
        </error>
    </errors>
</prestashop>

So, Did you have an idea about what can be the problem ?

 

Sincerelly

Futamiya

Link to comment
Share on other sites

  • 8 months later...
  • 1 month 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...