WCF服务与另一个WCF服务进行通信 [英] WCF Service comunicates with another WCF service

查看:86
本文介绍了WCF服务与另一个WCF服务进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
问题:
我有一个带有2个WCF服务的项目.我们称它们为Service1和Service2.
Client1反复将数据合同重新打乱到Service1中. Service1做某事并将其交付给Service2,然后再将其交付给Client2.
具有2个服务的项目将被托管在Windows服务中,并在Windows启动时启动.
问题:
是否有2个WCF服务以上述方式相互通信的标准方法.如果没有,怎么办?
我尝试过反射.
最好的给大家.

Hi all.
Problem:
I got a Project with 2 WCF services. Let’s call them Service1 and Service2.
Client1 shuffles a Data contract repeatedly into Service1. Service1 do something and delivers it to Service2 that do something and then delivers it to Client2.
The Project with the 2 Services are going to be Hosted in a Windows Service and started when Windows starts.
Question:
Is there a standard way for 2 WCF Services to communicate with each other in the described way. If not, how is it done?
I’ve tried Reflection.
Best to you all.

推荐答案

嗨Pravin Patil,

2 WCF服务没有相互通信的标准方法.您可以做的是在Service2中创建一个额外的终结点和接口,并让Service1使用该终结点和接口.

问候,

帕特里克
Hi Pravin Patil,

There is not standard way for 2 WCF Services to communicate with each other. What you could do is create an extra endpoint and interface in Service2 and let Service1 use that endpoint and interface.

Regards,

Patrick


这篇关于WCF服务与另一个WCF服务进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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