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? THKS Here's the configuration: "endpoint": "/api/globy/jms/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}/MyAPIOut?type=queue&clientId=KRAKENID& readTimeout=1000&oneShot=true&xml=true", "extra_config": { "backend/http": { "return_error_code": true } } } ] }, | ||
--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion visit https://groups.google.com/a/krakend.io/d/msgid/community/c17b76e8-d277-4779-acba-ed260e1ae13bn%40krakend.io.