简体   繁体   English

如何实现Web服务事务?

[英]How to implement web service transactions?

Is there a Java tool for choreographing web services that makes it easy to deal with transactions? 是否有用于编排Web服务的Java工具,可以轻松处理事务?

In my use case I want to chain 2 SOAP web services: the first will perform a debit into a client's bank account and the second will recharge his cell phone for the corresponding amount. 在我的用例中,我想链接2个SOAP Web服务:第一个将借记卡进入客户的银行账户,第二个将为他的手机充值相应的金额。 How can I implement this sequence of web services calls transactionally? 如何以事务方式实现此Web服务调用序列?

I briefly looked at Apache Camel but it doesn't seem to be the most adequate tool. 我简要地看了一下Apache Camel,但它似乎不是最合适的工具。

Thanks. 谢谢。

If your web-services are implemented using SOAP, you can implement 2-phase commit with WS-AtomicTransaction extension. 如果您的Web服务是使用SOAP实现的,则可以使用WS-AtomicTransaction扩展实现两阶段提交。 These articles go into details how it can be implemented: 这些文章详细介绍了如何实现它:

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

相关问题 如何在Spring Web Service中实现计划任务? - How to Implement Scheduled Task in Spring Web Service? 如何在服务层进行交易 - How to make Transactions in Service Layer 如何在Spring Web Service中为不同客户实施数字签名验证? - How to implement digital signature validation in spring web service for different clients? 创建REST Web服务时如何实现购物车功能? - How to implement shopping cart functionality when creating REST web service? 如何让jersey Web服务类实现接口并进行事务处理 - How to have a jersey web service class implement interface and be transactional 如何在Java中使用SOAP实现基于HTTPS的Web服务 - How to implement HTTPS base web service using SOAP in java 如何在JMS / MOM系统上实现同步Web服务? - How to implement Synchronous web service on JMS / MOM system? 如何在apache olingo v4 Web服务中实现过滤和分页 - How to implement filter and pagination in apache olingo v4 web service 如何实现通过基于NTLM身份验证的身份验证连接到外部Web服务的Web服务客户端 - how to implement a web service client which connects to an external web service with authentication based on NTLM Authentication 如何最好地在Web应用程序中实现Web服务客户端? - How do I best implement a web service client inside a web application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM