【问题标题】:How to consume WCF soap web service(net tcp binding only) in node.js如何在 node.js 中使用 WCF 肥皂 Web 服务(仅限网络 tcp 绑定)
【发布时间】:2019-08-19 11:57:57
【问题描述】:

我有仅使用 NetTcpBinding 托管的旧版 WCF 服务。我想在节点 js 中调用服务。有没有我可以使用的包或库?

这是我的 WCF 服务配置:

<wsdl:service name="Spedizioni_Avanzato_Out">
<wsdl:port name="NetTcpBinding_Spedizioni_Avanzato_Out" binding="tns:NetTcpBinding_Spedizioni_Avanzato_Out">
<soap12:address location="net.tcp://servername/SgaNetServiceInterop/Spedizioni_Avanzato_Out"/>
<wsa10:EndpointReference>
<wsa10:Address>
net.tcp://servername/SgaNetServiceInterop/Spedizioni_Avanzato_Out
</wsa10:Address>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>

【问题讨论】:

    标签: node.js .net wcf node-modules


    【解决方案1】:

    据我所知,没有 JS 库可以调用 NetTcpBinding 创建的 WCF 服务。这很复杂。以下是一些可以调用WCF的JS库,但是没有一个支持NetTcpBinding。
    https://github.com/yaronn/wcf.js
    https://github.com/vpulim/node-soap
    更简单的方法是让 WCF 公开其他服务终结点,例如 WebHttpBinding。这允许您创建 Restful 风格的服务。我们可以构造 HTTP 请求来直接调用服务。

    【讨论】:

      猜你喜欢
      • 2013-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-29
      • 2017-01-16
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多