Crystal Reports 2008 中的 Web 服务数据源问题

发布于 2024-08-14 02:55:09 字数 505 浏览 5 评论 0原文

我正在尝试连接 SOAP Web 服务以用作水晶报表数据服务,但遇到了一些问题。我按照向导操作,输入 WSDL URL 和凭据后,进入最后一页。在此页面上,下拉框为空。我手动输入服务名称、端口和方法,然后单击完成,然后出现以下错误:

WSDLException (at /definitions/types/xsd:schema): failureCode=OTHER_ERROR:尝试解析架构时发生错误 参考于 ' 相对于“URL”:java.io.IOException:服务器返回 HTTP 响应 代码:401:for url

我的架构定义位于一个单独的文件中,该文件在我的 wsdl 中通过标签指向。

我认为问题是这样的:Crystal Reports 成功地对我的服务器进行身份验证并检索 wsdl,然后尝试加载架构,但在加载时不对服务器进行身份验证,因此最终出现 401 错误。

我的 web 服务是在 BEA Weblogic 10 下部署为 war 文件的 JAXWS。

有人有什么想法吗?

I'm trying to hook up my SOAP webservice to be used as a crystal reports data service and I'm running into some problems. I follow the wizard and after I enter my WSDL URL and my credentials, I go on to the final page. On this page, the drop down boxes are empty. I manually enter the service name, port and method, and then hit finish and I get the following error:

WSDLException (at /definitions/types/xsd:schema):
faultCode=OTHER_ERROR: An error occurred trying to resolve schema
referenced at
'
relative to 'URL': java.io.IOException: Server returned HTTP respose
code: 401: for url

My schema definition is in a separate file that is pointed to in my wsdl by a tag.

I think the problem is this: Crystal Reports successfully authenticates against my server and retrieves the wsdl, then tries to load the schema but doesn't authenticate against the server when does, so I end up with the 401 error.

My webservice is a JAXWS deployed as a war file under BEA Weblogic 10.

Anyone have any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九命猫 2024-08-21 02:55:09

万一有人遇到同样的问题......我所做的解决方法是仅在 POST 请求(实际的 Web 服务调用)上启用身份验证。因此检索 WSDL 不需要任何身份验证。

我通过在 web.xml 文件中添加这一行来做到这一点:

<http-method>POST</http-method>

In case anyone comes across this same problem....What I did to work around this is enable authentication only on POST requests (the actual web service calls). So retrieving the WSDL does not require any authentication.

I did this by adding this line in my web.xml file:

<http-method>POST</http-method>
紧拥背影 2024-08-21 02:55:09

为什么不直接使用 SQL 视图来满足您的所有报告需求?

Why not just use an SQL View for ALL your reporting needs?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文