Hello,
I have a question regarding a Krakend setup
the backend api returns as output an xml ("encoding" : "xml") and the client (Postman) correctly displays the response reporting as Response header: Content-Type equal to 'application/xml;charset=iso-8859-1'.
By invoking the endpoint however you configure "output_encoding" ("xml", "no-op", "negotiate"), Postman always receives from Krakend a Content-Type equal to 'application/json;charset=UTF-8', displaying the content as JSON.
Is the response in XML format only usable on the Enterprise version?
This is the configuration:
"endpoint": "/api/MyAPIResponse",
"method": "GET",
"extra_config": {
"auth/validator": {
"alg": "RS256",
"roles_key_is_nested": true,
"roles_key": "realm_access.roles",
"roles": [
"globy-jms-api"
],
"disable_jwk_security": true,
"operation_debug": true,
"output_encoding": "xml"
}
},
"backend": [
{
"host": [
"{{ $host }}"
],
"method": "GET",
"encoding" : "xml",
"url_pattern": "/api/message/{JWT.realm-id}/{JWT.organization}/MyAPIOutput?type=queue&clientId=KRAKENID&
readTimeout=1000&oneShot=true&xml=true",
"extra_config": {
"backend/http": {
"return_error_code": true
}
}
}
]
},
Thanks in advance.