Closed ggianoglio closed 5 years ago
Step to Reproduce the Issue.
<messageFormatter contentType="application/dime"
class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
<messageBuilder contentType="application/dime"
class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
<?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ns/synapse" name="BinaryFileProcessor" startOnLoad="true" statistics="disable" trace="disable" transports="http,https">
<target>
<inSequence>
<log level="custom">
<property xmlns:ns="http://org.apache.synapse/xsd" expression="get-property('transport', 'Content-Type')" name=" ###### IN ContentType : "/>
</log>
<log level="full"/>
<send>
<endpoint>
<address uri="http://www.mocky.io/v2/5bcdb63e2f00007500c85515"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<log level="custom">
<property xmlns:ns="http://org.apache.synapse/xsd" expression="get-property('transport', 'Content-Type')" name=" ###### OUT ContentType :"/>
</log>
<log level="full"/>
<send/>
</outSequence>
</target>
<description/>
</proxy>
Request URL https://localhost:8243/services/BinaryFileProcessor
Request Body
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:binary xmlns:ns="http://ws.apache.org/commons/ns/payload">aGVsbG8=</ns:binary>
</soapenv:Body>
</soapenv:Envelope>
Flow of execution
Description: The response message of a our web service has content type "application/dime". We changed axis2.xml to use binary-relay (builder and formatter) with that content type.
The response SOAP message is not expanded, so we have a return envelope like this
Affected Product Version: EI 6.1.1, AM 2.1.0