简体   繁体   English

天蓝色结构服务之外的客户端如何使用WCF服务

[英]How can the WCF service be consumed by a client that is outside the azure fabric service

I need to expose a WCF endpoint and map this for external clients (not DOTNET) to consume. 我需要公开WCF端点并将其映射给外部客户端(而不是DOTNET)使用。 Is there a way to customize one of the listeners to allow a mappable external port? 有没有一种方法可以自定义其中一个侦听器以允许可映射的外部端口? This WCF need to be called from 3rd party. 需要从第三方调用此WCF。

By default, service fabric services do not provide a public interface to the web. 默认情况下,服务结构服务不提供Web的公共接口。 To expose your application's functionality to HTTP clients, you will need to create a web project to act as an entry point and then communicate from there to your individual services. 要将应用程序的功能公开给HTTP客户端,您将需要创建一个Web项目作为入口点,然后从此处与您的各个服务进行通信。

You can create a stateless service that serves as your web API gateway. 您可以创建用作Web API网关的无状态服务。 This stateless service can then call your WCF endpoint. 然后,该无状态服务可以调用您的WCF端点。

https://azure.microsoft.com/en-us/documentation/articles/service-fabric-add-a-web-frontend/ https://azure.microsoft.com/zh-CN/documentation/articles/service-fabric-add-a-web-frontend/

Since this gateway pattern is becoming to be very common, the SF team at Microsoft has provided this capability readily available for us. 由于这种网关模式变得非常普遍,因此Microsoft的SF团队已为我们提供了此功能。 This was based on the recent 2017 MSBuild Event with Mark Fussell and team on stage. 这是基于最近的2017年MSBuild活动,Mark Fussell和团队在舞台上进行的。 I have not really verified/used it yet but I believe this is the documentation provided: 我尚未真正验证/使用过它,但是我相信这是提供的文档:

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reverseproxy https://docs.microsoft.com/zh-cn/azure/service-fabric/service-fabric-reverseproxy

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

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