WCF Callback: Is it interoperable with Java?

夙愿已清 提交于 2020-01-02 04:57:05

问题


Currently I implement all my webservices in the "normal" fashion... that is, I create a WSDL file in Eclipse and then use WSCF.blue (A visual studio extension) to auto-generate the necessary code and it is reply/request. However I was hoping to use callbacks instead, so I can have my services become "push" services.

Before I jump into reworking my application, I was wondering about its interoperability. If I use callbacks (WCF), can my Java client still use this?

Oh, and I guess I should really ask... is it interoperable with more than Java as well? Just in case...


回答1:


No. WSDualHttpBinding and CompositeDuplexBindingElement are not interoperable with Java.

Edit:

As pointed by @x0n the original blog post referenced in my answer is not 100% correct. There is a newer blog post describing the way how to achieve interoperability. As I understand it the approach is similar to using service with asynchronous response correlated through WS-Addressing (WCF doesn't support this exchange model in normal processing). WsDualHttpBinding uses some additional features like WS-ReliableMessaging and it also makes the service stateful.

I'm not sure if the described approach will work in all cases because it still talks about one-way messages but duplex communication in WCF can use both one-way and two-way message exchange patterns in both service and callback contracts.



来源:https://stackoverflow.com/questions/3915702/wcf-callback-is-it-interoperable-with-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!