English 中文(简体)
Nest 妇联 服务呼吁不起作用?
原标题:Nested WCF Service Call does not work?

我有多个世界合作框架服务,需要一个协会的某些职能。 NET MVC应用程序。

  1. The MVC app calls Contract-Service (WCF Service)
  2. Contract-Service during its processing calls Contract-Buy-Service (WCF Service)
  3. Contract-Buy-Service calls SAM-Utility-Service (WCF Service)

When I run my TDD test cases from Contract-Buy-Service, it works perfectly fine. Because the call goes from Contract-Buy-Service to SAM-Utility-Service. But when the call goes from Contract-Service => Contract-Buy-Service => SAM-Utility-Service I always get the error that the endpoint for SAM-Utility-Service is not found in the config.

SAM-Utility-service在合同服务与合同服务方面都有服务参考。 我已经核实,这项服务是东道机构,正在运行。 当我试图通过浏览器来观察时,我可以接见WSDL。

谁能告诉我,为什么服务呼吁不会穿过多层,或者我在这里做过错?

感谢!

问题回答

首先,我不认为合同服务需要服务参考或了解SAM-Utility-service。 除非它需要与这一服务直接联系,以便开展某些其他业务——在这种情况下,我建议另一个服务端点anyway>,否则它就不了解合同-Buy-服务公司正在做什么。 这使你的服务更加紧密地合并,从而消除了服务方向的主要好处之一。

问题的原因可能是若干问题(与世界合作框架一样)。 然而,由于选择不正确、使用不正确或误用transactions,我也遇到了同样的问题。

认为,例如,合同服务与合同服务公司参与交易。 SAM-Utility-service可能也需要交易,但需要新的交易。 如果第二次交易没有正确参与第一次交易,则第一次交易可能不允许其进行或不能承诺。

第一步可以是让所有三个机构协同工作,而不进行任何交易。





相关问题
WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

Access WCF service on same server

I have a .NET website with a WCF service. How do I access the current operations context of my service? One possible work around is to just make a call to the service within the app...but that seems ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

The service operation requires a transaction to be flowed

I am facing strange issue with our WCF service. The same code was working fine until recently we added more OperationContracts(Web Methods). We have common 3 tier architecture. DAL (WCF) BLL Web ...