简体   繁体   English

Windows服务中托管的node.js与WCF服务之间的通信

[英]Communication between node.js and WCF service hosted in a windows service

I have a node.js application and a WCF service hosted in a windows service running on the same machine. 我有一个node.js应用程序和WCF服务托管在同一台计算机上运行的Windows服务中。 I need to pass messages from Node.JS app to the WCF service exposed via windows service.It can be uni or bi directional communication. 我需要将消息从Node.JS应用传递到通过Windows服务公开的WCF服务,它可以是单向或双向通信。 Can you help me to know how to achieve this? 您能帮我知道如何实现吗?

My requirement is to open a communication channel between NodeJS and the WCF service hosted inside Windows Service. 我的要求是打开NodeJS与Windows Service内部托管的WCF服务之间的通信通道。 My WCF service has net.tcp binding. 我的WCF服务具有net.tcp绑定。

I solved by modifying my WCF service and adding another end point for webHttpBinding. 我通过修改WCF服务并为webHttpBinding添加另一个端点来解决。 From Node.Js application I can access this endpoint of my WCF service. 从Node.Js应用程序中,我可以访问WCF服务的此端点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM