Communication between node.js and WCF service hosted in a windows service - node.js

I have a node.js application and a WCF service hosted in a windows service running on the same machine. 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. 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. My WCF service has net.tcp binding.

I solved by modifying my WCF service and adding another end point for webHttpBinding. From Node.Js application I can access this endpoint of my WCF service.

Related

Allow only one application to connect to wcf service

I have one application and a wcf service hosted in a Windows service. Both are running on the same computer and I'm using netTcpBinding. I want my wcf service to be accessed only by my application only. How do I achieve this? Please help

Azure Hybrid Connection to API hosted on Websphere (on premise)

I have an API that is hosted on Websphere Application Server (bound to a specific port), on a Windows 2012 R2 Server (on-prem), that I would like to expose to Azure API Management in the cloud. Ideally, the plan was to use Azure Hybrid Connections. Is that even possible? How could I go about doing this?
You can setup Azure Website and use the Hybrid Connection feature to expose your API via a simple WebApi Controller.
API Management will just talk to the Azure Website. You can limit access to the Azure Website from only the Public IP address of the API Management.

Basic HttpRelayBinding for .Net Core

I have a .Net Core 2 app that needs to call a WCF service. I've been able to add connected service and it consumed the WSDL ok. My problem is, the call needs to be made via Azure Service Bus Relay.
I realise that the MS docs suggest .Neg Core clients use "Hybrid Connections" instead of WCF Relay but I have a BizTalk 2016 app listening at the other side of the WCF Relay, waiting to return data to the client. As far as I can tell, there is no capability for BizTalk to work with Hybrid Connections.
In .Net core it seems the only option for the WCF client is to configure via code (no app.config or equivalent). I can use the following:
svc.Endpoint.Binding = new System.ServiceModel.BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.None);
However, there is no System.ServiceModel.BasicHttpRelayBinding? Has anyone managed to make calls to the Azure Service Bus Relay from .Net Core?
I found a solution for this problem and blogged about it here: BizTalk and the Hybrid Connection Manager

Azure Service Bus Relay and node.js

We've been writing services to access our on-premises databases through Azure Service Bus Relay for awhile now. That means that we've had to deploy them as WCF services. Our web site development is moving to node.js and I would like to begin deploying our API services on node as well. However, while the Azure NPM package has good support for queues/topics on Azure Service Bus, I can find no mention of the relaying capabilities. I've had a look at the code for the Azure SDK on github, but again, relay seems to be conspicuously absent.
Is it possible to use Azure Service Bus Relay with a node.js backend?
Now Azure support Node.js. You can find the infomration from here. This link is the samples for Node.js.
Right now, Relay only supports a WCF service. You can try to use Clemens Vasters' post on Port Bridge to get your scenario working. In his post, he describes creating a WCF client / service that will forward requests to a specific port.

Is it possible to host a WCF service in an Azure WebRole (MVC)

Is it possible to host a WCF service in an Azure WebRole (MVC)?
Also; I assume that net.tcp is not supported.
And you're correct that net.tcp won't work in a web role (where all input endpoints have to be HTTP). But net.tcp should work fine in a worker role.
Yes.
It's often a little easier to host your WCF services in a web project. Especially when you have multiple WCF Services.

Resources