How to implement WS-Coordination and WS-Atomic Transaction protocol?  
Author Message
lingga





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

At this time I'm working on my thesis project, to demonstrate the distributed transaction on web environment using ws-at protocol.

I've created 2 web services, book flight and book hotel to simulate the project.

My question is, how to implement the atomic transaction on the web service level using ws-c and ws-at protocol in WCF

So if I have a client that access those 2 web services, if one of the services failed then the other should also be aborted to perform the atomicity property.

Thank u in advance

Best Regards,
Lingga



Visual Studio 200847  
 
 
Madhu Ponduru -MSFT





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

Thats right,by using ws-c and ws-at,Two web services(or more) can particapate into the same transaction.

If you already familar with COM+ transactions or System.transactions,This is not much different,only change is,we are sharing Transaction context through soap message and once we are ready for commit or abort,2 PC commit process will follow ws-c guide lines to coordinate with other TM.

in WCF world,transaction behaviour depends on

(1)if you are running transactions between .NET(WCF svc) to .NET(WCf svc),by default,we don't use ws-at (we still use oletx,unless you ask us to use ws-at),so still you can run WCF transactions without using ws-at.

(2)2nd case,If you want to run transaction between windows WCF svc ->IBM web svc(or any 3rd party svc),we have to use ws-at protocol (for Interop)

http://blogs.msdn.com/madhuponduru/archive/2005/12/04/499990.aspx

-Thank you

Madhu



 
 
lingga





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

Thank you Madhu,

It really helps.


Since I'm not really familiar with distributed transaction, could anybody helps me by giving example of the distributed transaction implementation in wcf Or perhaps links, where i could find an example

Thank you,
lingga


 
 
Madhu Ponduru -MSFT





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

we use system.Transaction class library for WCF trasnactions also,we have couple of SDk samples on WCF transactions(Please check sdk samples),you can download these samples from SDk on your machine

http://windowssdk.msdn.microsoft.com/en-us/library/ms752239.aspx

I will try to send you one more sample tomorrow

-Thank you

Madhu



 
 
Andy Milligan





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

lingga,

For an overview of the distributed transaction support in WCF you may also want to watch Shy Cohen's presentation from last year's PDC on "Writing Reliable and Transacted Distributed Applications". This is still available online at http://microsoft.sitestream.com/PDC05/COM/COM307_files/Default.htm#nopreload=1&autostart=1.

There have been limited object model changes since then but the concepts and the core feature set are the same.

Hpe this helps,
Andy.



 
 
lingga





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

Thanx Andy,

I've downloaded the presentation slides and it really gives me a big picture of distributed transaction.
Do you know where I could find the source code for the demos

Thank you,

lingga


 
 
Shy Cohen - MSFT





PostPosted: Windows Communication Foundation ("Indigo"), How to implement WS-Coordination and WS-Atomic Transaction protocol? Top

Here's the sample code. It was tested with the RC0 bits. I didn't test it with our latest public release, but it should work with that as well (let me know if it doesn't and I'll fix it).

http://www.shycohen.com/Indigo/transacted%20counters.zip

Cheers,

Shy.