WCF 和 Java 互操作性 [英] WCF and Java interoperability
问题描述
与 WCF 服务版本 4.0 通信的 Java 客户端支持哪些开箱即用的功能.不支持哪些协议、绑定和安全功能(如有限制).
What is supported out of the box with a Java Client talking to WCF service version 4.0. What protocols, bindings and security features are not supported (limitations if any).
推荐答案
这完全取决于您使用的 Java SOAP 工具包(Metro 等)的功能.只要 Java 端支持 SOAP,您就应该能够使用 BasicHttpBinding 没问题-您将能够使用传输安全性,也许还可以使用 TransportWithMessageCredential
It all depends on the capabilities of the Java SOAP toolkit you are using (Metro, etc). As long as the Java side support SOAP you should be able to use BasicHttpBinding no problem - you will be able to use Transport security and maybe TransportWithMessageCredential
如果 Java 工具包支持 WS-Security,那么您应该能够使用具有消息安全性的 WSHTTPBinding.
If the Java toolkit supports WS-Security then you should be able to use WSHTTPBinding with message security.
支持 WS-ReliableMessaging 和 WS-AtomicTransaction 的工具包并不多,因此您不太可能使用这些
There are not many toolkits that support WS-ReliableMessaging and WS-AtomicTransaction so you are unlikely to be able to use these
WCF 可用于公开 RESTful 服务,然后所有 Java 需要的是能够使用 HTTP 和 XML/Json.为此,您将使用 webHttpBinding
WCF can be used to expose a RESTful service and all Java needs then is the ability to use HTTP and XML/Json. For this you would use webHttpBinding
这篇关于WCF 和 Java 互操作性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!