WCF uses WSAtomicTransaction11 for Distributed Transaction Oracle

Source: Internet
Author: User

Scenario: WSAtomicTransaction11 is used in the communication of WCF to manage distributed transactions in Oracle. For more information, see

MakeCert.exe wsatui. dll
Download (including 64-bit, 32-bit)

1. Add a trust certificate

Use Windows sdkstool makecert.exe to generate X.509 certificates (CertA and CertB) for MachineA and MachineB)
Makecert-ss My-sr LocalMachine-pe-r-sky
Exchange-n CN = MachineA
Note the server name in "CN = MachineA.
2. In MachineA, Trusted from the computer account in the certificate
Root Certificate Authority Node certificates are everywhere and imported to the Personal region (the private key needs to be exported at the same time ). Perform the same operation in MachineB.

4. Export the public key of CertA to the CertA. cer file in MachineA and import it to the Trusted Root Certificate Authority Node region and Personal region in the computer account of MachineB. Similarly, export the public key of CertB to Trusted in the computer account of MachineA.
Root Certificate Authority Node region and Personal region.

Import the private key of MachinaA to MachinaA
Trusted Root Certificate Authority Node region

Import the private key of MachinaB to the Trusted of MachinaB.
Root Certificate Authority Node region

5. Configure MSDTC to enable the WS-AT protocol.
Register the Assembly wsatui. dll (you can find this file in the bin directory of Windows SDKs. The default installation directory is C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0 \ Bin) and run the following command:
Regasm/codebase C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0 \ Bin \ wsatui. dll

Note: The wsatui. dll has to match the operation system bit version, e.g. x86 operation system shocould register the x86version wsatui. dll.

6. After the above operation is executed, open the MSDTC configuration, you will see a Tab with an additional WS-AT. Configure related parameters in the file:
(1) select to enable WS-AT
(2) set the Https port. The default value is 443.
(3) set the Endpoint Certificate. For MachineA, select CertA. For MachineB, select CertB.
(4) set Authorized certificates. For MachineA, select CertB. For MachineA, select CertA. (If multiple servers participate in distributed transactions, select multiple certs)



So far it has been configured to enable the WS-AT protocol, then you can write the WCF program to run the WS-AT protocol.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.