Jump to content

Error al crear nuevo grupo: HTTP status of 400. That means: Bad Request


Recommended Posts

Hola a todos,

 

el problema es el siguiente: He utilizado los archivos de ejemplo de los web services (0-CustomerList, 1-Retrieve, 2-Update ,3-Create y 4-Delete) y he echo los minimos cambios para poder ver, actualizar y crear nuevos Grupos.

 

El echo es que al crear un nuevo grupo me salta el siguiente error:

 

'This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request.'

 

HTTP REQUEST HEADER:

 

GET /prestashop/api/groups?schema=blank HTTP/1.1

Authorization: Basic WUw5QkQ0RWUTlUOVpHSFkxOxxERVlTWVdRWUw5QkQpHTM6

Host: www.myshop.es

Accept: */*

 

HTPP RESPONSE HEADER:

HTTP/1.1 200 OK

Date: Fri, 16 Dec 2011 07:36:30 GMT

Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.17

X-Powered-By: PrestaShop Webservice

Access-Time: 1324020990

PSWS-Version: 1.4.6.2

Execution-Time: 0.008

Content-Sha1: 85c26c1e28db4458a1e28db441e28db448d53143b

Content-Length: 252

Content-Type: text/xml;charset=utf-8

 

 

RETURN HTTP BODY:

<?xml version="1.0" encoding="UTF-8"?>

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

<group>

<id></id>

<reduction></reduction>

<price_display_method></price_display_method>

<name><language id="3"></language></name>

</group>

</prestashop>

 

HTTP REQUEST HEADER:

POST /prestashop/api/groups HTTP/1.1

Authorization: Basic VllTlUOVpHSFOVpHSFkxOTlETlUOVpHSFWUTlUOVpHSFTM6

Host: www.myshop.es

Accept: */*

Content-Length: 243

Content-Type: application/x-www-form-urlencoded

 

HTTP RESPONSE HEADER:

HTTP/1.1 400 Bad Request

Date: Fri, 16 Dec 2011 07:36:30 GMT

Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.17

X-Powered-By: PrestaShop Webservice

Access-Time: 1324020990

PSWS-Version: 1.4.6.2

Execution-Time: 0.008

Content-Length: 241

Connection: close

Content-Type: text/xml;charset=utf-8

 

XML SENT:

xml=<?xml version="1.0" encoding="UTF-8"?>

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

<group>

<id>25</id>

<reduction>5.00</reduction>

<price_display_method>0</price_display_method>

<name>New_Group</name>

</group>

</prestashop>

 

 

RETURN HTTP BODY:

 

<?xml version="1.0" encoding="UTF-8"?>

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

<errors>

<error>

<message><![CDATA[internal error. To see this error please display the PHP errors.]]></message>

</error>

</errors>

</prestashop>

Other error

This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request.

 

¿Alguien sabe que es lo que hago mal? ¿Alguna sugerencia?

 

Gracias de antemano.

3-Creategroup.php

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...