Now in this final part we’ll use the outbound policy to change the xml response to json.
Create a new operation and set the url to
Next in the outbound policy add the code for xml-to-json
<xml-to-json kind="direct" apply="always" consider-accept-header="false" />
Now testing the link you will notice that the format changed.
Just to verify go back to your browser and visit your web app with the same path and notice the format.
Great work with the lab! Take care!