开发者

How to host a WCF service in another WCF service?

开发者 https://www.devze.com 2023-04-05 12:52 出处:网络
I have wcf service DLL , say WCFA. I have another wcf service dll , say WCFB which hosts wcfA. Then, I开发者_如何学Go have hosted WCFB using another consoleApp.

I have wcf service DLL , say WCFA. I have another wcf service dll , say WCFB which hosts wcfA.

Then, I开发者_如何学Go have hosted WCFB using another consoleApp.

When I am tring to connect to WCFB using a client ( inbuilt wcfclienttest client or my own test client ) , am getting wierd errors like

  1. Error 404
  2. FaultedException
  3. Security exception etc....

So, am wodering if this scenario is ever possible using wcf?


Yes it is certainly possible. Under the surface of the communication and serialization layer, a WCF application is just like any other application, and so therefore can call other WCF services if connectivity and other configuration permits.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号