I've tried to reproduce the issue.
Created 2 responses:
- valid: curl -s https://mockbin.org/bin/c1a010ee-02d7-4acc-aec0-1a4171a17f90, returnes <some>valid xml</some>
- invalid: curl -s https://mockbin.org/bin/9dba60ac-9596-49c1-941a-430eef916f32, returnes <some>invalid<id> xml</some>
For both, I've created simple APIC proxies (Open API v3, APIC 10.0.4.0) and responses are identical to the ones returned by those 2 endpoints.
Sorry, I can't help more. I don't experience that APIC is escaping HTML chars.
BR,
Miro
------------------------------
Miroslav Rešetar
CROZ d.o.o.
Zagreb
------------------------------
Original Message:
Sent: Thu December 30, 2021 06:32 AM
From: Pawan Jinaga
Subject: Difference in xml response
Hello sir,
The content type of target url's(Client site) response is in "text/xml;charset utf-8" ,
and content type of Api url's response is in "text/xml"
after that even if we are changing the content type to "text/xml;charset utf-8" we are getting the same difference.
Thanks and Regards,
------------------------------
Pawan Jinaga
------------------------------
Original Message:
Sent: Thu December 30, 2021 03:41 AM
From: Miroslav Rešetar
Subject: Difference in xml response
Dear Pawan,
Would it be the case that the target service doesn't return the proper content-type header ("application/xml")?
I would expect that APIC honours content type and not to escape HTML characters in output if
content-type is correct.
Also, please make sure you don't set the wrong content type in APIC assembly as well.
BR,
Miro
------------------------------
Miroslav Rešetar
CROZ d.o.o.
Zagreb