There is Hello World
API is onboarded into WSO2 APIm 4.1.0 GA release
. I added JSONtoXML
policy from policy List
to Response flow by follows steps provided in WSO2 APIM Doc and deployed in DEV portal by clicking save and deploy
option
JsonToXML.j2 - Policy file Content:
<property name="messageType" value="application/xml" scope="axis2"/>
Policy in publisher:
When I Try out this API in DEV portal or via postman
, it is still giving response as JSON
format, not in XML
WSO2 DEV Portal - TRY IT OUT:
POSTMAN:
As suggested below - API Gateway Sequence Hit:
CURL Request like below:
curl -k "https://127.0.0.1:9443/api/am/gateway/v2/sequence?apiName=HelloWorld&version=1.0.0" -H "Authorization: Bearer eyJ4NXQiOiJOMkpqTWpOaU0xxx"
Note: valid token is passed in above curl Request, same token used when calling apim url which gives backend response
Did I miss anything or if not why this policy enablement is not working in WSO2 APIM? Please clarify on the same