1

I want remove xml declaration from wso response created by payload mediator (post method).

  <?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mgod="MgOdinCToCrm" xmlns:mgex="MgExchange">
    <soapenv:Body>
        <m:getQuote xmlns:m="http://services.samples/xsd">
            <m:request>
                <m:symbol/>
            </m:request>
        </m:getQuote>
    </soapenv:Body>
</soapenv:Envelope>

I try use xslt and js mediators to modify response, but it isn't help. This mediator can modify content only in body tag. May be someone faced with this problem

4

1 回答 1

3

尝试如下设置 messageType。

<property name="messageType" scope="axis2" type="STRING" value="application/xml"/>
于 2018-11-13T16:59:41.093 回答