Hi,
We are trying to give JSON as input to a Gateway services Create method and the same is failing in Gateway with RABAX ERROR. On checking ST22 logs found the following error 'Error while parsing an XML stream: 'BOM / charset detection failed'.'
We tried to pass this as input from REST client with the following headers along with the X-CSRF token in the header:
Content-Type : application/json; charset=utf-8
Accept: application/json
The same operation was tried from a SAPUI5 application where we set the model type as JSON [new sap.ui.model.odata.ODataModel( sServiceUrl , true, "User", "Pwd"); ] and got the same error in ST22. Whereas the same operation worked from SAPUI5 when model was XML [new sap.ui.model.odata.ODataModel( sServiceUrl , false, "User", "Pwd"); ].
The Gateway system in SP06 and is able to output JSON.
Any pointers to resolve the issue will be highly appreciated.
Thanks,
Avishek