Error 402 Format Failure in Web Service Call

Error 402 Format Failure in web service call


Description:

When executing a web service call where response format is set to XML when xml parser is not able to process a character, the web service call fails. 

Issue:

When executing a web service call, where the call is retrieving columns having long text, if the response format in the call is set to XML then the call fails with 402 error stating "FORMAT FAILURE". If we make the exact same call with response format set to JSON, the web service call succeeds.



Cause:

The data that is being retrieved in the call contains some character that is not recognized or supported by xml parser.


For example, the XML parser is not able to parse the character and the call fails, if:

  • the web service call is retrieving data from the Details field of tickets and
  • in the Details field, some tickets contain the vertical tab character.

Resolution:

There is no possible solution for this issue since these characters are not allowed in XML. The only work around is to use JSON as your response format.
 

Keywords: Web services; web service calls

© 2019 Serviceaide 1-650-206-8988 http://www.serviceaide.com info@serviceaide.com