简体   繁体   English

Web Service C#中的单向操作

[英]one-way operations in web service c#

Dear All,, I need to consume web service and they send me WSDL. 亲爱的所有人,我需要使用Web服务,并且它们向我发送WSDL。 I was added it to service reference and when I called method GetDataWarehouse() in WSDL I got error.. 我将其添加到服务引用中,当我在WSDL中调用方法GetDataWarehouse()时遇到错误。

"The one-way operation 'SubmitAccessList' on ServiceContract 'DataWarehouseWebService' is configured for transaction flow. Transactions cannot be flowed over one-way operations." “ ServiceContract'DataWarehouseWebService'上的单向操作'SubmitAccessList'已配置为用于事务流。事务不能通过单向操作流动。”

SubmitAccessList is one of method in WSDL but I wonder because I didn`t used it for now.. SubmitAccessList是WSDL中的一种方法,但我想知道是因为我暂时没有使用它。

Can you give me a hint? 你能给我一个提示吗?

Ok, what you use is pretty irrelevant - WDSL is "all or nothing" in that the tool looks at it all, or not at all. 好的,您所使用的是无关紧要的-WDSL是“全部或全部”,因为该工具可以查看全部内容,也可以完全不查看。 You can argue this is a limitation -it is - but in most cases not a relevant one. 您可以说这是一个限制-确实是-但在大多数情况下并不相关。

What is funny that this looks - never experienced this myself - like an error, as in the provider got a very funny non-legal setup for his web service, which means and hints there is nothing you can do. 可笑的是,这看起来像是一个错误,我自己从未经历过,就像一个错误,因为提供商在其Web服务中进行了非常有趣的非法设置,这意味着并暗示您无能为力。 It seems they implmenent a one way web service.... and the service contract is putting in transactions. 似乎它们不适合单向Web服务...。而服务合同正在进行交易。 BAD combo.... a transaction can not be properly handled without additional communication and feedback to the sender, so the one way paradigm (fire and forget) is not logically compatible. BAD组合...。没有发送者的额外通信和反馈就无法正确处理事务,因此,范式(即发即忘)在逻辑上不兼容。

If noone else has a better ansqwer... I would say contact the web service provider for support (and have them fix their service). 如果没有其他人有更好的答案……我想说的是联系网络服务提供商以获得支持(并让他们修复他们的服务)。

I gladly take a correction on this if anyone has a better idea ;) 如果有人有更好的主意,我很乐意对此做出更正;)

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

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