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

GET /xml

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!

Leave a comment

Quote of the week

"People ask me what I do in the winter when there's no baseball. I'll tell you what I do. I stare out the window and wait for spring."

~ Rogers Hornsby

Designed with WordPress