1c tries to parse XML on server error 500

This forum is intended for cases when a problem can not be solved due to restrictions of the platform: a bug or lack of functionality.

#1
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

If you try to use some WS which returns 500 (server error) 1c tries to parse returning XML message which does not exist. It is very confusing and makes more difficult to understand the problem.

Request: make error messages more accurate

Code
{DataProcessor.DataProcessor1.Form.Form.Form(11)}: Error calling context method (validarXML)
   Result = WS.validarXML(Base64String(FileData));
because:
Service operation call error:  {http://ats.ws.abaco.com.ec/}:ValidacionXMLImplService:validarXML()
because:
Unknown error. XML parsing error:  - [1,1]
Fatal error: 
Extra content at the end of the document

because:
XML parsing error:  - [1,1]
Fatal error: 
Extra content at the end of the document

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Alexey!

Which behavior do you think suits this case?

 
#3
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

I think the platform should return server error exactly like server does. If it is 404 - then 404, if it is 500 - then 500. Like so:

Code
{DataProcessor.DataProcessor1.Form.Form.Form(11)}: Error calling context method (validarXML)
   Result = WS.validarXML(Base64String(FileData));
because:
Service operation call error:  {http://ats.ws.abaco.com.ec/}:ValidacionXMLImplService:validarXML()
because:
Server returned code: 500 (Internal server error)

Edited: Alexey Gerasimov - Oct 14, 2015 01:02 PM
 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Thank you, Alexey.

I have submitted this feature request for you.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.