How to have an xml (which is taken as a string in the UI) and I need to send this XML in the...

Discussão em 'Angular' iniciado por anoop kothapally, Dezembro 6, 2024.

  1. So I am sending a requestDTO as follows { "transportType": 0, "registerMode": 4, "siteName": "string", "destinationAddress": "string", "messageContent": "string", "timeout": 0 } the messageContent is a string (which contains xml data like "1233") and this is given by user. I am getting different errors when I am sending this request body through a HTTP Post request.I am encountering errors due to escape sequence for "" (double quotes ) and also for this particular input 0xc70fe820ee010080 it is saying that there is an issue in json while parsing 0xc7 .... I need some help to understand where and why it is failing. If you have any typescript function please to share it with me. Thanks in advance.

    Continue reading...

Compartilhe esta Página