Protokol Transaksi

Windows Communication Foundation (WCF) menerapkan protokol Transaksi WS-Atomic dan WS-Coordination.

Spesifikasi/Dokumen Versi Tautan
WS-Coordination 1.0

1.1
https://schemas.xmlsoap.org/ws/2004/10/wscoor/

https://docs.oasis-open.org/ws-tx/wscoor/2006/06
WS-AtomicTransaction 1.0

1.1
https://schemas.xmlsoap.org/ws/2004/10/wsat/

https://docs.oasis-open.org/ws-tx/wsat/2006/06

Interoperabilitas pada spesifikasi protokol ini diperlukan pada dua tingkat: antara aplikasi dan antara manajer transaksi (lihat gambar berikut). Spesifikasi menjelaskan dengan sangat rinci format pesan dan pertukaran pesan untuk kedua tingkat interoperabilitas. Keamanan, keandalan, dan pengodean tertentu untuk pertukaran aplikasi-ke-aplikasi berlaku sebagaimana berlaku untuk pertukaran aplikasi biasa. Namun, interoperabilitas yang berhasil antara manajer transaksi memerlukan perjanjian tentang pengikatan tertentu, karena biasanya tidak dikonfigurasi oleh pengguna.

Artikel ini menjelaskan komposisi spesifikasi Transaksi WS-Atomic (WS-AT) dengan keamanan dan menjelaskan pengikatan aman yang digunakan untuk komunikasi antara manajer transaksi. Pendekatan yang dijelaskan dalam artikel ini telah berhasil diuji dengan implementasi lain dari WS-AT dan WS-Coordination termasuk IBM, IONA, Sun Microsystems, dan lainnya.

Gambar berikut menggambarkan interoperabilitas antara dua manajer transaksi, Manajer Transaksi 1 dan Manajer Transaksi 2, dan dua aplikasi, Aplikasi 1 dan Aplikasi 2:

Cuplikan layar yang memperlihatkan interaksi antara manajer transaksi.

Pertimbangkan skenario Transaksi WS-Koordinasi/WS-Atomic yang khas dengan satu Inisiator (I) dan satu Peserta (P). Baik Inisiator maupun Peserta masing-masing memiliki Transaction Manager (ITM dan PTM). Komit dua fase disebut sebagai 2PC dalam artikel ini.

  1. BuatKonteksKoordinasi
  2. CreateCoordinationContextResponse
  3. Daftar (Penyelesaian)
  4. RegisterResponse
  5. Pesan Aplikasi
  6. CreateCoordinationContext dengan Konteks
  7. Daftar (Tahan Lama)
  8. RegisterResponse
  9. CreateCoordinationContextResponse
  10. Daftar (Tahan Lama)
  11. RegisterResponse
  12. Respons Pesan Aplikasi
  13. Penerapan (Penyelesaian)
  14. Siapkan (2PC)
  15. Siapkan (2PC)
  16. Disiapkan (2PC)
  17. Disiapkan (2PC)
  18. Terkomitmen (Penyelesaian)
  19. Penerapan (2PC)
  20. Penerapan (2PC)
  21. Penerapan (2PC)
  22. Penerapan (2PC)

Gambar dan tabel mengilustrasikan empat kelas pesan dari sudut pandang keamanan:

  • Pesan aktivasi (CreateCoordinationContext dan CreateCoordinationContextResponse).

  • Pesan pendaftaran (Register dan RegisterResponse)

  • Pesan protokol (Siapkan, Putar Kembali, Terapkan, Dibatalkan, dan sebagainya).

  • Pesan aplikasi.

Tiga kelas pesan pertama dianggap sebagai pesan Transaction Manager dan konfigurasi pengikatannya dijelaskan dalam "Pertukaran Pesan Aplikasi" nanti dalam topik ini. Kelas pesan keempat adalah pesan dari aplikasi ke aplikasi yang dibahas di bagian "Contoh Pesan" pada topik ini. Bagian ini menjelaskan pengikatan protokol yang digunakan untuk masing-masing kelas ini oleh WCF.

Namespace XML berikut dan awalan terkait digunakan di seluruh dokumen ini.

Awalan Versi Namespace URI
s11 https://schemas.xmlsoap.org/soap/envelope/
wsa Pra-1.0

1.0
https://www.w3.org/2004/08/addressing

https://www.w3.org/2005/08/addressing/
wscoor 1.0

1.1
https://schemas.xmlsoap.org/ws/2004/10/wscoor/

https://docs.oasis-open.org/ws-tx/wscoor/2006/06
wsat 1.0

1.1
https://schemas.xmlsoap.org/ws/2004/10/wsat/

https://docs.oasis-open.org/ws-tx/wsat/2006/06
t Pra-1.3

1.3
https://schemas.xmlsoap.org/ws/2005/02/trust/

https://docs.oasis-open.org/ws-sx/ws-trust/200512
o https://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
xsd https://www.w3.org/2001/XMLSchema

Pengikatan Manajer Transaksi

R1001: Manajer Transaksi yang berpartisipasi dalam transaksi WS-AT 1.0 harus menggunakan SOAP 1.1 dan WS-Addressing 2004/08 untuk transaksi WS-Atomic dan pertukaran pesan WS-Coordination.

R1002: Manajer Transaksi yang berpartisipasi dalam transaksi WS-AT 1.1 harus menggunakan SOAP 1.1 dan WS-Addressing 2005/08 untuk transaksi WS-Atomic dan pertukaran pesan WS-Coordination.

Pesan aplikasi tidak terbatas oleh pengikatan ini dan akan dijelaskan lebih lanjut.

Pengikatan HTTPS Manajer Transaksi

Pengikatan HTTPS pada manajer transaksi hanya bergantung pada keamanan transport untuk mencapai keamanan dan membangun kepercayaan antara setiap pasangan pengirim-penerima dalam struktur transaksi.

Konfigurasi Transportasi HTTPS

Sertifikat X.509 digunakan untuk membuat Identitas Manajer Transaksi. Autentikasi klien/server diperlukan, dan otorisasi klien/server dibiarkan sebagai detail implementasi:

  • R1111: Sertifikat X.509 yang disajikan melalui kawat harus memiliki nama subjek yang cocok dengan nama domain yang sepenuhnya memenuhi syarat (FQDN) dari komputer asal.

  • B1112: DNS harus berfungsi antara setiap pasangan pengirim-penerima dalam sistem agar pemeriksaan nama subjek X.509 berhasil.

Konfigurasi Pengikatan Aktivasi dan Registrasi

WCF memerlukan pengikatan dupleks permintaan/balasan dengan korelasi melalui HTTPS. (Untuk informasi selengkapnya tentang korelasi dan deskripsi pola pertukaran pesan permintaan/balasan, lihat WS-Atomic Transaksi, Bagian 8.)

Konfigurasi Pengikatan Protokol 2PC

WCF mendukung pesan satu arah (datagram) melalui HTTPS. Korelasi di antara pesan dibiarkan sebagai detail implementasi.

B1131: Penerapan harus mendukung wsa:ReferenceParameters seperti yang dijelaskan dalam WS-Addressing untuk memastikan korelasi pesan 2PC WCF.

Pengikatan Keamanan Campuran Manajer Transaksi

Ini adalah pengikatan alternatif (mode campuran) yang menggunakan keamanan transportasi yang dikombinasikan dengan model Token yang Dikeluarkan WS-Coordination untuk tujuan pembentukan identitas. Aktivasi dan Pendaftaran adalah satu-satunya elemen yang berbeda antara dua pengikatan.

Konfigurasi Transportasi HTTPS

Sertifikat X.509 digunakan untuk membuat Identitas Manajer Transaksi. Autentikasi Klien/Server diperlukan, dan otorisasi klien/server dibiarkan sebagai detail implementasi.

Konfigurasi Pengikatan Pesan Aktivasi

Pesan Aktivasi biasanya tidak berpartisipasi dalam interoperabilitas karena biasanya terjadi antara aplikasi dan Manajer Transaksi lokalnya.

B1221: WCF menggunakan pengikatan HTTPS dupleks (dijelaskan dalam Protokol Olahpesan) untuk pesan Aktivasi. Pesan Permintaan dan Balasan berkorelasi menggunakan WS-Addressing 2004/08 untuk WS-AT 1.0 dan WS-Addressing 2005/08 untuk WS-AT 1.1.

WS-Atomic Spesifikasi transaksi, Bagian 8, menjelaskan detail lebih lanjut tentang korelasi dan pola pertukaran pesan.

  • R1222: Setelah menerima CreateCoordinationContext, Koordinator harus mengeluarkan SecurityContextToken dengan rahasia STx terkait. Token ini dikembalikan di dalam header t:IssuedTokens menurut spesifikasi WS-Trust.

  • R1223: Jika Aktivasi terjadi dalam Konteks Koordinasi yang ada, header t:IssuedTokens yang terkait dengan Konteks SecurityContextToken yang ada harus mengalir pada pesan CreateCoordinationContext.

Header baru t:IssuedTokens harus dibuat agar dapat dilampirkan ke pesan keluar wscoor:CreateCoordinationContextResponse .

Konfigurasi Pengikatan Pesan untuk Pendaftaran

B1231: WCF menggunakan pengikatan HTTPS dupleks (dijelaskan dalam Protokol Olahpesan). Pesan Permintaan dan Balasan berkorelasi menggunakan WS-Addressing 2004/08 untuk WS-AT 1.0 dan WS-Addressing 2005/08 untuk WS-AT 1.1.

WS-AtomicTransaction, Bagian 8, menjelaskan detail lebih lanjut tentang korelasi dan deskripsi pola pertukaran pesan.

R1232: Pesan keluar wscoor:Register harus menggunakan mode autentikasi yang IssuedTokenOverTransport dijelaskan dalam Protokol Keamanan.

Elemen wsse:Timestamp harus ditandatangani menggunakan SecurityContextToken STx yang telah dikeluarkan. Tanda tangan ini adalah bukti kepemilikan token yang terkait dengan transaksi tertentu dan digunakan untuk mengautentikasi peserta yang mendaftar dalam transaksi. Pesan RegistrationResponse dikirim kembali melalui HTTPS.

Konfigurasi Pengikatan Protokol 2PC

WCF mendukung pesan satu arah (datagram) melalui HTTPS. Korelasi di antara pesan dibiarkan sebagai detail implementasi.

B1241: Implementasi harus mendukung wsa:ReferenceParameters seperti yang dijelaskan dalam WS-Addressing untuk mencapai korelasi pesan 2PC WCF.

Pertukaran Pesan Aplikasi

Aplikasi bebas menggunakan pengikatan tertentu untuk pesan aplikasi-ke-aplikasi, selama pengikatan memenuhi persyaratan keamanan berikut:

  • R2001: Pesan aplikasi-ke-aplikasi harus menggabungkan t:IssuedTokens bersama dengan CoordinationContext di bagian header pesan.

  • R2002: Integritas dan kerahasiaan t:IssuedToken harus dijamin.

Penanda CoordinationContext berisi wscoor:Identifier. Meskipun definisi xsd:AnyURI memungkinkan penggunaan URI absolut dan relatif, WCF hanya wscoor:Identifiersmendukung , yang merupakan URI absolut.

B2003: Jika wscoor:Identifier dari wscoor:CoordinationContext adalah URI relatif, kesalahan akan dikembalikan dari layanan WCF transaksi.

Contoh Pesan

Pesan-pesan Permintaan/Respons CreateCoordinationContext

Pesan berikut mengikuti pola permintaan/respons.

CreateCoordinationContext dengan WSCoor 1.0

<s:Envelope>  
  <s:Header>  
    <a:Action>http://.../ws/2004/10/wscoor/CreateCoordinationContext</Action>  
    <a:MessageID>urn:uuid:069f5104-fd88-4264-9f99-60032a82854e</MessageID>  
    <a:ReplyTo>  
      <Address>https://...</a:Address>  
    </a:ReplyTo>  
    <a:To>https://...</a:To>  
    <wsse:Security>  
      <u:Timestamp>  
        <wsu:Created>2005-12-15T23:36:09.921Z</wsu:Created>  
        <wsu:Expires>2005-12-15T23:41:09.921Z</wsu:Expires>  
      </u:Timestamp>  
    </wsse:Security>  
  </s:Header>  
  <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
    <wscoor:CreateCoordinationContext>  
      <wscoor:CoordinationType>...</wscoor:CoordinationType>  
    </wscoor:CreateCoordinationContext>  
  </s:Body>  
</s:Envelope>  

CreateCoordinationContext menggunakan WSCoor 1.1

<s:Envelope>
  <s:Header>  
    <a:Action>http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext
    </a:Action>  
    <a:MessageID>urn:uuid:069f5104-fd88-4264-9f99-60032a82854e</MessageID>  
    <a:ReplyTo>
      <Address>https://...</a:Address>
    </a:ReplyTo>
    <a:To>https://...</a:To>
    <wsse:Security>  
      <u:Timestamp>  
        <wsu:Created>2005-12-15T23:36:09.921Z</wsu:Created>  
        <wsu:Expires>2005-12-15T23:41:09.921Z</wsu:Expires>  
      </u:Timestamp>
    </wsse:Security>
  </s:Header>
  <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
    <wscoor:CreateCoordinationContext>  
      <wscoor:CoordinationType>...</wscoor:CoordinationType>  
    </wscoor:CreateCoordinationContext>  
  </s:Body>  
</s:Envelope>  

CreateCoordinationContextResponse dengan Trust Pre-1.3 dan WSCoor 1.0

<s:Envelope>  
  <!-- Data below is shown in the clear for  
       illustration purposes only. -->  
  <s:Header>  
    <a:Action>./ws/2004/10/wscoor/CreateCoordinationContextResponse </a:Action>  
    <a:RelatesTo>urn:uuid:069f5104-fd88-4264-9f99-60032a82854e</a:RelatesTo>  
    <a:To s:mustUnderstand="1">https://... </a:To>  
    <t:IssuedTokens>  
 <wst:RequestSecurityTokenResponse
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"  
    xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust"  
    xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc"  
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">  
    <wst:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</wst:TokenType>  
    <wst:RequestedSecurityToken>  
      <wsc:SecurityContextToken>  
        <wssu:Identifier>  
          http://fabrikam123.com/SCTi  
        </wssu:Identifier>  
      </wsc:SecurityContextToken>
    </wst:RequestedSecurityToken>  
    <wsp:AppliesTo>  
        http://fabrikam123.com/CCi  
    </wsp:AppliesTo>
    <wst:RequestedAttachedReference>  
      <wsse:SecurityTokenReference >  
        <wsse:Reference
           ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"  
           URI="http://fabrikam123.com/SCTi"/>  
      </wsse:SecurityTokenReference>  
    </wst:RequestedAttachedReference>  
    <wst:RequestedUnattachedReference>  
      <wsse:SecurityTokenReference>  
        <wsse:Reference
          ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"  
          URI="http://fabrikam123.com/SCTi"/>  
      </wsse:SecurityTokenReference>  
    </wst:RequestedUnattachedReference>  
    <wst:RequestedProofToken>  
      <wst:BinarySecret
        Type="http://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey">  
        <!-- base64 encoded value -->  
      </wst:BinarySecret>  
    </wst:RequestedProofToken>  
    <wst:Lifetime>  
      <wssu:Created>2005-10-24T20:19:26.526Z</wssu:Created>  
      <wssu:Expires>2005-10-25T06:24:26.526Z</wssu:Expires>  
    </wst:Lifetime>  
    <wst:KeySize>256</wst:KeySize>  
</wst:RequestSecurityTokenResponse>  
    </t:IssuedTokens>  
    <o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">  
      <u:Timestamp u:Id="_0">  
        <u:Created>2005-12-15T23:36:12.015Z</u:Created>  
        <u:Expires>2005-12-15T23:41:12.015Z</u:Expires>  
      </u:Timestamp>  
    </o:Security>  
  </s:Header>  
  <s:Body>  
    <wscoor:CreateCoordinationContextResponse>  
      <wscoor:CoordinationContext>  
        <wscoor:Identifier>  
     http://fabrikam123.com/CCi  
      </wscoor:Identifier>  
        <wscoor:Expires>...</wscoor:Expires>  
        <wscoor:CoordinationType>...</wscoor:CoordinationType>  
        <wscoor:RegistrationService>  
          <a:Address>https://...</a:Address>  
          <a:ReferenceParameters>  
             ...  
          </a:ReferenceParameters>  
        </wscoor:RegistrationService>  
      </wscoor:CoordinationContext>  
    </wscoor:CreateCoordinationContextResponse>  
  </s:Body>  
</s:Envelope>  

CreateCoordinationContextResponse dengan Trust 1.3 dan WSCoor 1.1

<s:Envelope>  
<!-- Data below is shown in the clear for illustration purposes only. -->
<s:Header>
<a:Action>http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse </a:Action>  
<a:RelatesTo>urn:uuid:069f5104-fd88-4264-9f99-60032a82854e</a:RelatesTo>  
<a:To s:mustUnderstand="1">https://... </a:To>
<t:IssuedTokens>
<wst:RequestSecurityTokenResponse
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"  
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc"  
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">  
<wst:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</wst:TokenType>  
<wst:RequestedSecurityToken>
<wsc:SecurityContextToken>
<wssu:Identifier> http://fabrikam123.com/SCTi  
</wssu:Identifier>
</wsc:SecurityContextToken>
</wst:RequestedSecurityToken>
<wsp:AppliesTo> http://fabrikam123.com/CCi </wsp:AppliesTo>  
<wst:RequestedAttachedReference>
<wsse:SecurityTokenReference >
<wsse:Reference  
  ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"  
  URI="http://fabrikam123.com/SCTi"/>  
</wsse:SecurityTokenReference>
</wst:RequestedAttachedReference>
<wst:RequestedUnattachedReference>
<wsse:SecurityTokenReference>
<wsse:Reference  
 ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct"  
 URI="http://fabrikam123.com/SCTi"/>  
</wsse:SecurityTokenReference>
</wst:RequestedUnattachedReference>
<wst:RequestedProofToken>
<wst:BinarySecret  
  Type="http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey">  
  <!-- base64 encoded value -->
</wst:BinarySecret>
</wst:RequestedProofToken>
<wst:Lifetime>
<wssu:Created>2005-10-24T20:19:26.526Z</wssu:Created>  
<wssu:Expires>2005-10-25T06:24:26.526Z</wssu:Expires>  
</wst:Lifetime>
<wst:KeySize>256</wst:KeySize>
</wst:RequestSecurityTokenResponse>
</t:IssuedTokens>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2005-12-15T23:36:12.015Z</u:Created>
<u:Expires>2005-12-15T23:41:12.015Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body>
<wscoor:CreateCoordinationContextResponse>
<wscoor:CoordinationContext>
<wscoor:Identifier> http://fabrikam123.com/CCi  
</wscoor:Identifier>
<wscoor:Expires>...</wscoor:Expires>  
<wscoor:CoordinationType>...</wscoor:CoordinationType>  
<wscoor:RegistrationService>
<a:Address>https://...</a:Address>  
<a:ReferenceParameters> ...  
</a:ReferenceParameters>  
</wscoor:RegistrationService>
</wscoor:CoordinationContext>
</wscoor:CreateCoordinationContextResponse>
</s:Body>
</s:Envelope>  

Pesan Pendaftaran

Pesan berikut adalah pesan pendaftaran.

Daftar dengan WSCoor 1.0

<s:Envelope>  
  <s:Header>  
    <a:Action>http://schemas.xmlsoap.org/ws/2004/10/wscoor/Register</a:Action>  
    <a:MessageID>urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088e</a:MessageID>  
    <a:ReplyTo>  
      <a:Address>https://...</a:Address>
    </a:ReplyTo>  
    <a:To>https://...</a:To>  
    <wsse:Security
      s:mustUnderstand="1"
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"  
      xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">  
      <wssu:Timestamp wssu:Id="_0" >  
        <wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
        <wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
      </wssu:Timestamp>  
      <wsc:SecurityContextToken>  
      <wssu:Identifier>  
          http://fabrikam123.com/SCTi  
      </wssu:Identifier>  
      </wsc:SecurityContextToken>  
      <!-- supporting signature over the timestamp -->  
      <wsse:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">  
        <ds:SignedInfo>  
          <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>  
          <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>  
          <ds:Reference URI="#_0">  
            <ds:Transforms>  
              <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>  
            </ds:Transforms>  
            <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>  
            <ds:DigestValue>  
              alRzyhjLgoUOYoh8cx4n75eTcUk=  
            </ds:DigestValue>  
          </ds:Reference>  
        </ds:SignedInfo>  
        <ds:SignatureValue>YZYjnVvSOVasAQqQxaaviTSWtqI=</ds:SignatureValue>  
        <ds:KeyInfo>  
          <wsse:SecurityTokenReference  
            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">  
            <wsse:Reference
              URI="http://fabrikam123.com/SCTi"/>  
          </wsse:SecurityTokenReference>  
        </ds:KeyInfo>  
      </wsse:Signature>  
    </wsse:Security>  
  </s:Header>  
  <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
    <wscoor:Register>  
      <wscoor:ProtocolIdentifier>...</wscoor:ProtocolIdentifier>  
      <wscoor:ParticipantProtocolService>  
        <a:Address>https://... </a:Address>  
      </wscoor:ParticipantProtocolService>  
    </wscoor:Register>  
  </s:Body>  
</s:Envelope>  

Daftar dengan WSCoor 1.1

<s:Envelope>  
<s:Header>
<a:Action>http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register</a:Action>
<a:MessageID>urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088e</a:MessageID>  
<a:ReplyTo>
<a:Address>https://...</a:Address>
</a:ReplyTo>  
<a:To>https://...</a:To>
<wsse:Security
s:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">  
<wssu:Timestamp wssu:Id="_0" >
<wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
<wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
</wssu:Timestamp>
<wsc:SecurityContextToken>
<wssu:Identifier> http://fabrikam123.com/SCTi  
</wssu:Identifier>
</wsc:SecurityContextToken>
<!-- supporting signature over the timestamp -->  
<wsse:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">  
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
<ds:Reference URI="#_0">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod  
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue> alRzyhjLgoUOYoh8cx4n75eTcUk=  
</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>  
<ds:SignatureValue>YZYjnVvSOVasAQqQxaaviTSWtqI=  
</ds:SignatureValue>  
<ds:KeyInfo>
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">  
  <wsse:Reference URI="http://fabrikam123.com/SCTi"/>  
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</wsse:Signature>
</wsse:Security>
</s:Header>
<s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<wscoor:Register>
<wscoor:ProtocolIdentifier>...</wscoor:ProtocolIdentifier>  
<wscoor:ParticipantProtocolService>
<a:Address>https://... </a:Address>  
</wscoor:ParticipantProtocolService>
</wscoor:Register>
</s:Body>
</s:Envelope>  

Daftarkan Tanggapan dengan WSCoor 1.0

<s:Envelope>  
  <s:Header>  
    <a:Action>  
      http://schemas.xmlsoap.org/ws/2004/10/wscoor/RegisterResponse  
    </a:Action>  
    <a:MessageID>urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088d</a:MessageID>  
    <a:RelatesTo>  
      urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088e
    </a:RelatesTo>  
    <a:To>https://...</a:To>  
    <wsse:Security
      s:mustUnderstand="1"
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"  
      xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">  
      <wssu:Timestamp>  
        <wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
        <wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
      </wssu:Timestamp>  
    </wsse:Security>  
  </s:Header>  
  <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
    <wscoor:RegisterResponse>  
      <wscoor:CoordinatorProtocolService>  
        <a:Address>https://...</a:Address>  
        <a:ReferenceParameters>  
          ...  
        </a:ReferenceParameters>  
      </wscoor:CoordinatorProtocolService>  
    </wscoor:RegisterResponse>  
  </s:Body>  
</s:Envelope>  

Mendaftarkan Respons dengan WSCoor 1.1

<s:Envelope>  
<s:Header>
<a:Action> http://docs.oasis-open.org/ws-tx/wscoor/2006/06/RegisterResponse  
</a:Action>
<a:MessageID>urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088d</a:MessageID>  
<a:RelatesTo> urn:uuid:ed418b86-a75e-4aea-9d4e-a5d0cb5c088e </a:RelatesTo>  
<a:To>https://...</a:To>
<wsse:Security
s:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wssu:Timestamp>
<wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
<wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
</wssu:Timestamp>
</wsse:Security>
</s:Header>
<s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<wscoor:RegisterResponse>
<wscoor:CoordinatorProtocolService>  
<a:Address>https://...</a:Address>  
<a:ReferenceParameters> ... </a:ReferenceParameters>  
</wscoor:CoordinatorProtocolService>
</wscoor:RegisterResponse>
</s:Body>
</s:Envelope>  

Pesan Protokol Penerapan Dua Fase

Pesan berikut berkaitan dengan protokol komit dua fase (2PC).

Berkomitmen dengan WSAT 1.0

<s:Envelope>  
  <s:Header>  
    <a:Action>http://.../ws/2004/10/wsat/Commit</a:Action>  
    <a:To>https://...</a:To>  
    <wsse:Security
      s:mustUnderstand="1"
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"  
      xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">  
      <wssu:Timestamp wssu:Id="_0" >  
        <wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
        <wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
      </wssu:Timestamp>  
   </wsse:Security>  
  </s:Header>  
  <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">  
    <wsat:Commit />  
  </s:Body>  
</s:Envelope>  

Komit dengan WSAT 1.1

<s:Envelope>  
<s:Header>
<a:Action>http://docs.oasis-open.org/ws-tx/wsat/2006/06</a:Action>  
<a:To>https://...</a:To>
<wsse:Security
s:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wssu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wssu:Timestamp wssu:Id="_0" >
<wssu:Created>2005-12-15T23:36:13.827Z</wssu:Created>  
<wssu:Expires>2005-12-15T23:41:13.827Z</wssu:Expires>  
</wssu:Timestamp>
</wsse:Security>
</s:Header>
<s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<wsat:Commit />
</s:Body>
</s:Envelope>  

Pesan Aplikasi

Pesan berikut adalah pesan aplikasi.

Permintaan pesan aplikasi

<s:Envelope>  
  <s:Header>  
<!-- Addressing headers, all signed-->  
    <wsse:Security s:mustUnderstand="1">  
      <wssu:Timestamp wssu:Id="timestamp">
        <wssu:Created>2005-10-25T06:29:18.703Z</wssu:Created>  
        <wssu:Expires>2005-10-25T06:34:18.703Z</wssu:Expires>  
      </wssu:Timestamp>  
      <wsse:BinarySecurityToken
          wssu:Id="IA_Certificate"
          ValueType="...#X509v3"
          EncodingType="...#Base64Binary">  
        <!-- IA certificate -->  
      </wsse:BinarySecurityToken>  
      <e:EncryptedKey Id="encrypted_key">  
            <!-- ephemeral key encrypted for PA certificate -->
        <e:ReferenceList xmlns:e="http://www.w3.org/2001/04/xmlenc#">  
          <e:DataReference URI="#encrypted_body"/>  
          <e:DataReference URI="#encrypted_CCi"/>  
          <e:DataReference URI="#encrypted_issuedtokens"/>  
        </e:ReferenceList>  
      </e:EncryptedKey>  
      <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">  
        <!-- signature over Addressing headers, Timestamp, and Body -->  
      </Signature>  
    </wsse:Security>  
    <wsse11:EncryptedHeader>  
     <!-- encrypted wscoor:CoordinationContext header containing CCi -->  
    </wsse11:EncryptedHeader>  
    <wsse11:EncryptedHeader>
      <!-- encrypted wst:IssuedTokens header containing SCTi -->  
      <!-- wst:IssuedTokens header is taken verbatim from message #2 above, omitted for brevity -->  
    </wsse11:EncryptedHeader>  
  </s:Header>  
  <s:Body wssu:Id="body">  
    <!-- encrypted content of the Body element of the application message -->
    <e:EncryptedData Id="encrypted_body"
           Type="http://www.w3.org/2001/04/xmlenc#Content"
           xmlns:e="http://www.w3.org/2001/04/xmlenc#">  
...  
    </e:EncryptedData>  
  </s:Body>  
</s:Envelope>