SAP Knowledge Base Article - Public

2593287 - XML Syntax is Getting Changed With ExecuteRESTService

Symptom

The ExecuteRESTService as part of WebServiceUtilities is causing the '<' in the resulting XML file to be changed to '&lt'. It also changes different characters.

Environment

  • SAP Cloud Applications Studio
  • SAP Cloud for Customer
  • SAP Business ByDesign

Reproducing the Issue

Calling a REST service third party webservice using WebServiceUtilities.ExecuteRESTService in ABSL scripting.

Cause

This method allows encoding which can change characters in the XML file. An example would be having "&" converted to "&amp".

Resolution

Using "ExecuteRESTServiceWithoutEncoding" should resolve this issue. Please implement "ExecuteRESTServiceWithoutEncoding" in your ABSL script.

Keywords

XML, ExecuteRESTService, '&lt' , KBA , & , < , AP-RC-BDS-WS , ByDesign Studio Web Services , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions