Jump to content

Problems sending new orders


amelie13
 Share

Recommended Posts

Hi,

I'm using the PSWebServiceLibrairy for Prestashop API.

I've modified the code to add orders instead of customers.

Listing is OK but when adding I got this error :

 

HTTP XML response is not parsable : array ( 0 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 64, 'message' => 'Input is not proper UTF-8, indicate encoding ! Bytes: 0xE3 0xF7 0xB7 0x6D ', 'file' => '', 'line' => 733, )), 1 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 68, 'message' => 'PCDATA invalid Char value 3 ', 'file' => '', 'line' => 733, )), 2 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 68, 'column' => 76, 'message' => 'StartTag: invalid element name ', 'file' => '', 'line' => 733, )), 3 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 77, 'message' => 'PCDATA invalid Char value 30 ', 'file' => '', 'line' => 733, )), 4 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 9, 'column' => 78, 'message' => 'PCDATA invalid Char value 16 ', 'file' => '', 'line' => 733, )), 5 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 9088, )), 6 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 11746, )), 7 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 51, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 14403, )), 8 => LibXMLError::__set_state(array( 'level' => 3, 'code' => 64, 'column' => 33, 'message' => 'XML declaration allowed only at the start of the document ', 'file' => '', 'line' => 14980, )), )

 

What is wrong ?

 

Thank you.

Edited by amelie13 (see edit history)

Share this post


Link to post
Share on other sites

Seeing the first error, it seems a text encoding problem. It expects UTF-8. (Do you feed it plain ASCII, other languages?) You need to indicate (somehow, no XML knowledge myself) what encoding is used, and it expects UTF-8.

 

My 2 cents,

Pascal

Edited by PascalVG (see edit history)

Share this post


Link to post
Share on other sites

  • 5 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
 Share

×
×
  • Create New...

Important Information

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