我需要从WSO2 ESB调用jasperreports服务器来生成PDF。Jasperserver的REST将此作为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.
发布于 2015-09-25 18:00:09
您试过配置二进制中继吗?也许下面的链接可以帮助您: docs.wso2.com/display/ESB481/Configuring+Message+Relay
https://stackoverflow.com/questions/32720970
复制相似问题