报表服务分开部署时候,在运行是打开报表报错Call Business Method failed: HTTP/1.1 404 Not Found
404的错误一般都是url不正确,要确认在应用服务中配置的报表服务ReportServer的路径和在报表服务中配置BusinessServer的路径是否正确
报表服务和应用服务分开部署的时候需要注意
1.在应用服务的conf\server.xml中配置报表服务ReportServer的路径
如下:
<config>
<version>4935</version>
<distributed>false</distributed>
<ui-server>http://localhost:8080/x5</ui-server>
<!-- 以下配置只适用于BeX5 -->
<default-user>
<name>system</name>
<password>123456</password>
</default-user>
<business-server>http://localhost:8080/BusinessServer</business-server>
<doc-server>http://localhost:8080/DocServer</doc-server>
<report-server>http://192.168.1.1:8080/ReportServer/reportservice</report-server>
<auth-server>http://localhost:8080/BusinessServer</auth-server>
</config>
2.需要在报表服务的conf\server.xml中配置应用服务BusinessServer的路径
如下:
<config>
<version>4935</version>
<distributed>false</distributed>
<default-user>
<name>system</name>
<password>123456</password>
</default-user>
<business-server>http://192.168.1.2:8080/BusinessServer</business-server>
</config>
评一波