W3C home > Mailing lists > Public > public-ws-addressing@w3.org > November 2006

Alternative Proposal for WS-Policy Assertions

From: David Orchard <dorchard@bea.com>
Date: Tue, 14 Nov 2006 11:50:52 -0800
Message-ID: <E16EB59B8AEDF445B644617E3C1B3C9C02A85A29@repbex01.amer.bea.com>
To: <public-ws-addressing@w3.org>

I've taken MarcH's Updated Proposal and done a substantial change to the
proposal.  I'll characterize MarcH's proposal as the "opt-in" style,
where the default is nothing specified and the assertions have to be
added to opt-in.  An alternative is the "opt-out" style, where the
default is everything is specified and the assertions are to opt-out.  

This proposal defines three new elements for use in WS-Policy.

(i) <wsaw:AddressingRequired/> - the endpoint requires WS-Addressing,  
optionality can be conveyed using WS-Policy constructs.  By default,
Anonymous 
Responses and Non Anonymous Responses are supported.

(ii) <wsaw:NoAnonymousResponses/> (a child element of  
<wsaw:AddressingRequired>) - the endpoint cannot send replies using WS-A
or
other anonymous; the endpoint can send to any anon if not present.

(iii) <wsaw:NoNonAnonymousResponses/> (a child element of  
<wsaw:AddressingRequired>) - the endpoint cannot send replies using  
other addresses; the endpoint can send to other addresses if not  
present (unless some other assertion adds a class of supported  
addresses). Note: The "NoNon" is a bit strange but it works in this
case.

Here are some examples:

<wsp:Policy>
   <wsaw:AddressingRequired/>
</wsp:Policy>

Means that addressing is required and both anonymous and non-anonymous
replies are supported.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoAnonymousReplies/>
   </wsaw:AddressingRequired>
</wsp:Policy>

Means that addressing is required and only non-anonymous replies are
supported.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoNonAnonymousReplies/>
   </wsaw:AddressingRequired>
</wsp:Policy>

Means that addressing is required and only anonymous replies are
Supported, this includes anonymous replies defined by other
specifications.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoNonAnonymousReplies/>
     <wsfoo:NoNonAnonymousReplies/>
   </wsaw:AddressingRequired>
</wsp:Policy>

Means that addressing is required and anonymous replies other than those

defined by wsfoo are supported.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoAnonymousReplies/>
     <wsaw:NoNonAnonymousReplies/>
     <wsfoo:NoAnonymousReplies/>
   </wsaw:AddressingRequired
</wsp:Policy>

Means that addressing is required and anonymous replies other than those

defined by wsfoo are supported.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoAnonymousReplies/>
     <wsaw:NoNonAnonymousReplies/>
   </wsaw:AddressingRequired
</wsp:Policy>

Wouldn't be too useful for anything other than a one-way message  
since neither anonymous nor non-anonymouse replies are supported.

<wsp:Policy>
   <wsaw:AddressingRequired>
     <wsaw:NoAnonymousReplies/>
     <wsaw:NoNonAnonymousReplies/>
     <wsfoo:AnonymousReplies/>
   </wsaw:AddressingRequired
</wsp:Policy>

Means that addressing is required and only wsfoo anonymous replies 
are supported.

Cheers,
Dave
Received on Tuesday, 14 November 2006 19:51:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:35:15 GMT