WSReliableMessaging - PowerPoint PPT Presentation

1 / 38
About This Presentation
Title:

WSReliableMessaging

Description:

It defines a messaging protocol to identify, track, and manage the reliable ... It also defines a SOAP binding that ... Sandesha (Incubation phase): Axis, MySql ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 39
Provided by: asu51
Category:

less

Transcript and Presenter's Notes

Title: WSReliableMessaging


1
WS-ReliableMessaging
  • Yildiray Kabak, METU-SRDC

2
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

3
Introduction
  • It defines a messaging protocol to identify,
    track, and manage the reliable delivery of
    messages between exactly two parties, a source
    and a destination.
  • It also defines a SOAP binding that is required
    for interoperability. Additional bindings may be
    defined.

4
Introduction
  • extensible allowing additional functionality,
    such as security, to be tightly integrated.
  • integrates with and complements the WS-Security,
    WS-Policy, and other Web services specifications
  • Implementations
  • ETTK
  • Sandesha (Incubation phase) Axis, MySql
  • RM4GS (Reliable Messaging for Grid Services)
    J2EE, Postgres

5
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

6
Reliable Messaging Model
  • Four basic assurances that endpoints can provide
  • AtMostOnce (some messages may not be delivered)
  • AtLeastOnce (some messages may be delivered more
    than once)
  • ExactlyOnce
  • InOrder
  • Persistence considerations and faults related to
    an endpoint's ability to satisfy the delivery
    assurances are the responsibility of the
    implementation and do not affect the wire
    protocol.

7
Reliable Messaging Model
8
Reliable Messaging Model
  • Preconditions
  • RM Source MUST have an endpoint reference of the
    RM Destination endpoint (Addressing)
  • RM Source MUST have knowledge of the
    destination's policies (Policy)
  • If a secure exchange of messages is required,
    then the RM Source and RM Destination MUST have a
    security context. (Security)
  • Invariants (MUSTs)
  • Sequence number
  • Acknowledgement

9
Example Message Exchange
Endpoint A
Endpoint B
Establish Protocol Preconditions (Policy
exchange, endpoint resolution, establishing trust)
Create Sequence
Create Sequence Response (Identifierhttp//fabrik
am.com)
Message 1
Message 2
Message 3, LastMessage
Sequence Acknowledgement (Acknowledgement
Range1,3)
Message 2, AckRequested
Sequence Acknowledgement (Acknowledgement
Range1..3)
Terminate Sequence
10
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

11
RM Protocol Elements
  • ltwsrmSequence ...gt
  • ltwsuIdentifiergt URI lt/wsuIdentifiergt
  • ltwsrmMessageNumbergt unsignedLong
  • lt/wsrmMessageNumbergt
  • ltwsrmLastMessage/gt
  • ltwsuExpiresgt dateTime lt/wsuExpiresgt
  • lt/wsrmSequencegt

12
RM Protocol Elements
  • ltwsrmSequenceAcknowledgementgt ltwsuIdentifiergtht
    tp//fabrikam123.com/abclt/wsuIdentifiergt
    ltwsrmAcknowledgementRange Upper"10"
    Lower"1"/gt lt/wsrmSequenceAcknowledgementgt
  • ltwsrmSequenceAcknowledgementgt ltwsuIdentifiergtht
    tp//fabrikam123.com/abclt/wsuIdentifiergt
    ltwsrmAcknowledgementRange Upper"2" Lower"1"/gt
    ltwsrmAcknowledgementRange Upper"6" Lower"4"/gt
    ltwsrmAcknowledgementRange Upper"10"
    Lower"8"/gt lt/wsrmSequenceAcknowledgementgt
  • ltwsrmSequenceAcknowledgementgt ltwsuIdentifiergtht
    tp//fabrikam123.com/abclt/wsuIdentifiergt
    ltwsrmNackgt3lt/wsrmNackgt
  • lt/wsrmSequenceAcknowledgementgt

13
RM Protocol Elements
  • ltwsrmAckRequested ...gt
  • ltwsuIdentifiergt URI lt/wsuIdentifiergt
  • ltwsrmMessageNumbergt unsignedLong
    lt/wsrmMessageNumbergt lt/wsrmAckRequestedgt

14
RM Protocol Elements
  • ltwsrmCreateSequence ...gt
  • ...
  • lt/wsrmCreateSequencegt
  • ltwsrmCreateSequenceResponse ...gt
    ltwsuIdentifiergt URI lt/wsuIdentifiergt ...
  • lt/wsrmCreateSequenceResponsegt

15
RM Protocol Elements
  • ltwsrmTerminateSequence ...gt ltwsuIdentifiergt
    URI lt/wsuIdentifiergt
  • lt/wsrmTerminateSequencegt

16
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

17
Policy Assertions
  • This specification leverages the WS-Policy family
    of specifications
  • to enable an RM Destination endpoint to describe
    and advertise its capabilities and/or
    requirements, and
  • to enable an RM Source endpoint to communicate to
    the RM Destination the selected characteristics
    that apply for a given Sequence

18
Spec Version
  • ltwspSpecVersion wspURI"http//schemas.xmlsoap.o
    rg/ws/2004/03/rm"
  • wspUsage"wspRequired"/gt

19
Sequence Creation/Expiration
  • ltwsrmSequenceCreation ...gt ...
    lt/wsrmSequenceCreationgt
  • Normally, Sequence creation is optional. With
    this assertion destination declares it obligatory
  • ltwsuExpiresgt2100-01-01T120000.000-0000lt/wsuEx
    piresgt

20
Inactivity Timeout/Retransmission Interval
  • ltwsrmInactivityTimeout Milliseconds"unsignedLon
    g" ...gt ... lt/wsrmInactivityTimeoutgt
  • ltwspPolicygt
  • ltwsrmBaseRetransmissionInterval
    wspUsage"wspObserved" Milliseconds"2000"/gt
    ltwsrmExponentialBackoff wspUsage"wspObserved"
    /gt lt/wspPolicygt
  • Unacknowledged messages will be retransmitted in
    2 seconds and exponential backoff will be used.

21
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

22
Attaching Policy Assertions to Sequences
  • ltwspPolicyAttachmentgt
  • ltwspAppliesTogt
  • ltwsrmSequenceRefgt ltwsuIdentifiergthttp/
    /fabrikam123.com/abc
  • lt/wsuIdentifiergt
  • lt/wsrmSequenceRefgt
  • lt/wspAppliesTogt
  • ltwspPolicygt
  • ltwspSpecVersion wspURI"http//schemas.xmlsoap
    .org/ws/2004/03/rm" wspUsage"wspRequired"/gt
  • lt/wspPolicygt ltwspPolicyReference
    Ref"http//schemas.xmlsoap.org/ws/2004/03/rm/base
    TimingProfile.xml"/gt lt/wspPolicyAttachmentgt

23
Attaching Policy Assertions to Sequences
24
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

25
Faults
  • SequenceFault
  • ltwsrmSequenceFault ...gt
  • ltwsrmFaultCodegt Subcode lt/wsrmFaultCodegt ...
  • lt/wsrmSequenceFaultgt
  • When an error occurs, this fault is raised. The
    subcode details the faults.

26
Subcodes
  • SequenceTerminated (Sender, receiver)
  • UnknownSequence (Sender, receiver)
  • MessageNumberRollover (sender)
  • LastMessageNumberExceeded (receiver)
  • SequenceRefused (receiver)
  • it cannot begin a requested sequence
  • CreateSequenceRefused
  • create sequence can not be satisfied

27
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

28
Security Considerations
  • WS-Security
  • ltwsrmSequencegt need to be signed together with
    the body
  • Before the Sequences, a security context is
    recommended to be established using WS-Trust and
    WS-SecureConversation

29
Outline
  • Introduction
  • Reliable Messaging Model
  • RM Protocol Elements
  • Policy Assertions
  • Attaching Policy Assertions to Sequences
  • Faults
  • Security Considerations
  • Example Messages

30
Example Messages
31
Example Messages
32
Example Messages
33
Example Messages
34
Example Messages
35
Example Messages
36
Example Messages
37
Example Messages
38
Example Messages
Write a Comment
User Comments (0)
About PowerShow.com