I have an old asmx web service that can be invoked using postman like so
I want to expose this via API Management as a JSON endpoint and then have a policy to transform XML but I'm unsure how to set the request details in the policy
I have tried to do this below (and variations of it) but I always get the message error 'requestXML is missing'
<set-body template="liquid">
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
requestXml: "<Request Caller="Harness"><GetEmployerOfferings><EmployerCode>CHCA</EmployerCode></GetEmployerOfferings></Request>"
</soap:Body>
</soap:Envelope>
</set-body>
<set-header name="Content-Type" exists-action="override">
<value>application/x-www-form-urlencoded</value>
</set-header>
How do I pass this to the backend service via an APIM policy?


"sample"in the json your provided above refer to<Request Caller="Harness"><GetEmployerOfferings><EmployerCode>CHCA</EmployerCode></GetEmployerOfferings></Request>? You want to request the apim with a request body in json, but the propertyrequestXmlof the json is still a xml ? - Hury Shen