WCF&使用 WSHttpBinding 的 Java 互操作,

发布于 2024-09-10 18:46:57 字数 266 浏览 1 评论 0原文

我正在尝试让一个简单的 WCF 应用程序与 Java 客户端一起工作。服务使用 WSHttpBinding 公开了一些简单的操作,它做得非常完美。

现在,由于某种原因(可能是由于 Java 端的 WS-* 规范不完整),似乎不可能为远程系统上托管的 WCF 服务生成 Java 客户端。

但是,与 basicHttpBinding 一起使用时一切正常。

如果您成功使用或已经实现了 WCF (wsHttpBinding),它可以与 Java/非 WCF 客户端互操作吗?

I’m trying to get a simple WCF application work with Java Client. Service exposes few simple operations using WSHttpBinding, which it does perfectly.

Now, due to some reason (probably due to incomplete WS-* specifications at Java side) it seems impossible to generate a Java Client for this WCF service hosted on remote system.

However, everything works fine when used with basicHttpBinding.

If you successfully use or have implemented WCF (wsHttpBinding) where it was interoperable with Java/Non WCF client?

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

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

发布评论

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

评论(2

萌能量女王 2024-09-17 18:46:57

您在 Java 中使用什么来生成客户端?并非所有框架都是一样的。 :) 根据这篇文章此处,您将需要使用 < a href="http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/reference/tutorials/wsit/doc/index.html" rel="nofollow noreferrer">WSIT。

What are you using in Java to generate the client? Not all frameworks are created equal. :) According to this post here, you will need to use WSIT.

我乃一代侩神 2024-09-17 18:46:57

我们已经看到与 WCF/Java 相关的问题。如果我的内存正确,WCF 中的基本绑定会创建 WSDL 版本 1.1,而其他绑定则使用 1.2。

我们还发现,如果您重复使用消息协定,可能会出现问题。

从 XML Spy 测试 WCF 服务是捕获此类错误的好方法。

We have seen issues related to WCF/Java. Basic binding in WCF creates WSDL ver 1.1 while other bindings use 1.2 if my memory servers me correctly.

We have also seen issues that can occur if you reuse the message contract.

Testing the WCF service from XML Spy is a good way to catch such errors.

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