Binary WSO2 ESB 7.1.0二进制响应被截断为375B

Binary WSO2 ESB 7.1.0二进制响应被截断为375B,binary,wso2,binary-data,wso2ei,Binary,Wso2,Binary Data,Wso2ei,我对WSO2 ESB 7.1.0中的二进制响应有问题-看起来答案被截断为375B(主体部分-二进制数据) 这是我的序列响应构建的片段: <payloadFactory description="Build Payload Response" media-type="xml"> <format> <ns:binary xmlns:ns="http://ws.apache.org/commons/ns/pay

我对WSO2 ESB 7.1.0中的二进制响应有问题-看起来答案被截断为375B(主体部分-二进制数据)

这是我的序列响应构建的片段:

<payloadFactory description="Build Payload Response" media-type="xml">
  <format>
    <ns:binary xmlns:ns="http://ws.apache.org/commons/ns/payload">BASE64_FILE_CONTENT</ns:binary>
  </format>
  <args/>
</payloadFactory>
<script language="js"><![CDATA[var binaryNode = mc.getEnvelope().getBody().getFirstElement().getFirstOMChild();  
  binaryNode.setBinary(true);]]></script>
<propertyGroup description="Set Content-Type">
  <property action="remove" name="TRANSPORT_HEADERS" scope="axis2"/>
  <property name="DISABLE_CHUNKING" scope="axis2" type="STRING" value="true"/>
  <property name="messageType" scope="axis2" type="STRING" value="application/octet-stream"/>
  <property name="ContentType" scope="axis2" type="STRING" value="application/pdf"/>
</propertyGroup>
<header description="Set Content-Disposition" name="Content-Disposition" scope="transport" value="attachment; filename=&quot;raport.pdf&quot;"/>

BASE64\u文件\u内容

该值(375B)是否来自任何参数?有人能建议如何正确返回WSO2中的文件(作为响应中的二进制数据)

致意

马辛·奥尔林斯基

<messageFormatters>
  <messageFormatter contentType="application/x-www-form-urlencoded" class="org.apache.synapse.commons.formatters.XFormURLEncodedFormatter"/>
  <messageFormatter contentType="multipart/form-data" class="org.apache.axis2.transport.http.MultipartFormDataFormatter"/>
  <messageFormatter contentType="application/xml" class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
  <messageFormatter contentType="text/xml" class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
  <messageFormatter contentType="application/soap+xml" class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
  <messageFormatter contentType="text/plain" class="org.apache.axis2.format.PlainTextFormatter"/>
  <messageFormatter contentType="application/json" class="org.wso2.micro.integrator.core.json.JsonStreamFormatter"/>
  <messageFormatter contentType="application/json/badgerfish" class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/>
  <messageFormatter contentType="text/javascript" class="org.apache.axis2.json.JSONMessageFormatter"/>
  <messageFormatter contentType="application/octet-stream" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
  <messageFormatter contentType="application/binary" class="org.apache.axis2.format.BinaryFormatter"/>
  <messageFormatter contentType="application/pdf" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
</messageFormatters>