The set-body policy can be used to change the body of a request or response. To access the message body, you can use the context.Request.Body property or context.Response.Body.
In our scenario, set-body is used to create a SOAP XML message from the JSON content as shown: