使用netTcpBinding + cPython的WCF [英] WCF with netTcpBinding + cPython

查看:170
本文介绍了使用netTcpBinding + cPython的WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读 WCF和Python 的问题。
但万一wcf服务使用netTcpBinding,我们可以从cPython调用它。

I've read this question WCF and Python. But in case, the wcf service use netTcpBinding, could we call it from cPython. If it's possible, please help to give an simple example ?

推荐答案


我们可以从cPython调用它吗?

could we call it from cPython

否,netTcpBinding仅与WCF客户端可互操作。

No, netTcpBinding is interoperable only with WCF clients.

来自此处


NetTcpBinding的默认配置比
更快WSHttpBinding提供的配置,,但仅用于WCF到WCF通信的

来自评论:


wsHttpBinding是工作还是只有basicHttpBinding工作?

does wsHttpBinding work or only basicHttpBinding work?

简短的回答是否定的,basicHttpBinding是唯一支持与以下项互操作的绑定(Web绑定除外)非WCF客户。即便如此,您仍然可能很难从非Windows上使用它。

Short answer is no, basicHttpBinding is the only binding (except for the web bindings) which support interoperability with non-wcf clients. Even then you may have difficulty consuming it from non-windows.

长答案是因为这种情况的原因是basicHttpBinding支持通过SOAP 1.1进行通信。相对简单的协议,大多数供应商都以非常相似的方式实现了该协议。因此,这些不同的实现倾向于互操作。但是,wsHttpBinding是Microsoft尝试支持SOAP 1.2协议和WS- * Web服务扩展的尝试,WS- * Web服务扩展是一套更大,更复杂的标准。因此,各个供应商之间的解释范围更大,通常导致实现之间的非互操作性。因此,从理论上讲,可以从非wcf(甚至非Windows)客户端调用通过wsHttpBinding公开的端点,但是您必须克服所有麻烦。

Long answer is that the reason this is the case is because basicHttpBinding supports communication over SOAP 1.1, which is a relatively simple protocol, and most vendors have implemented it in very similar ways. Therefore, these different implementations tend to be interoperable. However, wsHttpBinding is Microsoft's attempt to support the SOAP 1.2 protocol and WS-* web service extensions, which is a much larger and more complex set of standards. So there is a much larger scope for interpretation between the various vendors, leading normally to non-interoperability between implementations. It is theoretically possible, therefore, to call an endpoint exposed over wsHttpBinding from a non-wcf (or even non-windows) client, but you would have to overcome all the niggles.

一种更好的方法是,如果可能的话,完全脱离SOAP,而仅使用HTTP / POX或HTTP / REST服务。

A much better approach would be to move away from SOAP completely if possible, and just use HTTP/POX or HTTP/REST services.

这篇关于使用netTcpBinding + cPython的WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆