我需要从WSO2 ESB调用jasperreports服务器来生成PDF。 Jasperserver的REST API将其作为HTTP响应中的附件发回。
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
Expires: Thu, 01 Jan 1970 01:00:00 CET
P3P: CP="ALL"
Content-Disposition: attachment; filename="Report.pdf"
output-final: true
Content-Type: application/pdf
Content-Length: 12060
Date: Tue, 22 Sep 2015 15:22:50 GMT
%PDF-1.4
WSO2 ESB无法解析此问题 - 如何才能完成此工作,以便处理生成的PDF?
ESB错误:
TID: [0] [ESB] [2015-09-22 17:13:16,326] ERROR {org.apache.synapse.transport.passthru.util.RelayUtils}
- Error while building Passthrough stream {org.apache.synapse.transport.passthru.util.RelayUtils}
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Content is not allowed in prolog.
答案 0 :(得分:2)
您是否尝试配置二进制中继? 也许以下链接可以帮助您:docs.wso2.com/display/ESB481/Configuring+Message+Relay