AnsweredAssumed Answered

Request.mainpart assignment

Question asked by Kirankumar_Konchada on Aug 7, 2018
Latest reply on Nov 1, 2018 by Conny Postma

Dear Admin,


I have a requirement to assign dynamic message body for a empty soap request basically null request body. When I set Apply XSLT Transformation assertion to the request message with desired xslt transformation, getting error like below.


Request Headers: Content-Type text/xml

Request Body: empty

Transform Assertion: XSLT Transformation assertion (backend service is SOAP)


Request: {}



<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="">
            <faultstring>Policy Falsified</faultstring>
                <l7:policyResult status="Bad Request" xmlns:l7=""/>


20180807 17:18:30.809INFO5900

Message not XML; cannot perform XSL transformation


Intention is request is empty body, and backend routing service has fixed body. So when API is invoked client won't pass any body (basically null value in request.main part) however he suppose to get the desired response.