Revolyssup commented on issue #9911:
URL: https://github.com/apache/apisix/issues/9911#issuecomment-1652965797
> > @sanjivkamate Will you try adding the field `"input_format":"xml"`
explicitly in conf? Also while getting response over APISIX, when you dont use
body transform plugin, do you get normal xml response?
>
> @Revolyssup Tried with "input_format":"xml" like below, same response in
the error log as before "response": { "input_format":"xml", "template": "{% if
Envelope.Body.Fault == nil then
%}{"currency":"{{Envelope.Body.AddResponse.AddResult}}"}{% else
%}{"message":{__escape_json(Envelope.Body.Fault.faultstring[1])_},"code":"{{Envelope.Body.Fault.faultcode}}"{%
if Envelope.Body.Fault.faultactor ~= nil then %},
"actor":"{{Envelope.Body.Fault.faultactor}}"{% end %}}{% end %}" }
>
> **Also while getting response over APISIX, when you dont use body
transform plugin, do you get normal xml response?** @Revolyssup I am not sure
how to try this as the reason I am using body transform plugin is to read my
XML response which is SOAP based.
>
> **Also when you just use the request template and not response template,
do you get proper xml response?** @Revolyssup No error is being logged in
error.log, getting 200 response but response is empty.
>
> Thank you for the response.
The default priority of response-rewrite> body-transform. Please remove the
response-rewrite plugin and try again
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]