Hello All,
I am trying to submit a JSON data to SAP which is resulting an Error : Error while parsing an XML stream.
Current payload submitting to the SAP
{
"Aufnr": "000001000703",
"werks": "1200",
"gamng": "106160.000",
"gmein": "KG",
"type": " ",
"message": " "
}
Resulting format in SAP getting :
"{\"Aufnr\":\"000001000703\",\"werks\":\"1200\",\"gamng\":\"106160.000\",\"gmein\":\"KG\",\"type\":\" \",\"message\":\" \"}"
what I am suppose to get in SAP from PHP

what I am getting in SAP from PHP

Request clarification before answering.
Thanks !..
I got the issue. It is due to I have encoded the JSON data twice.
I corrected my code and issue resolved.
Your answer was a quick help to understand the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.