我添加了一个附件转换器来设置附件,并期望它将在HTTP响应中传递。但是我只看到流中设置的有效负载字符串。
<flow name="nonrestdownloadFlow1" doc:name="nonrestdownloadFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8083" doc:name="HTTP"/>
<set-attachment attachmentName="attachment.txt" value="dfsdkgnsgjkdfgjkdrng05305fgkgnkdfngkng04t04tkdgndjkgni" contentType="text/plain" doc:name="Add Attachment"/>
<set-property propertyName="Content-Type" value="multipart/form-data" doc:name="Add content type"/>
<set-payload doc:name="Set Payload" value="Hello, see attachment with this response"/>
<logger level="INFO" doc:name="Logger"/>
</flow>
我缺少什么?有人可以帮我理解吗
由于 Venkat
答案 0 :(得分:1)