-----Original Message-----
Hi,
anyone tried to express capabilities in a ws-policy file? I
searched in the ws-policy specification and it only put requirements
in the policy specification...
For example, how can I express in a ws-policy file that a
specific web service executes the service in X seconds?
[..]
-----End Original Message-----
Fernando,
it depends what you actually want to do. If you want to use WS-Policy
intersection to find a Policy that is acceptable for two participants,
where one participant declares a capability that the other one is free
to use or not, you can use the wsp:Optional attribute with the
corresponding assertion.
An off-the-cuff example:
if a web service provider accepts compressed messages, he might declare
a policy like this:
<wsp:Policy>
<wsp:ExactlyOne>
<wsp:All>
<ns:Compression wsp:Optional="true"/>
<wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
Then an intersection with a consumer policy would contain a compression
assertion only if the consumer had one in his own policy:
<wsp:Policy>
<wsp:ExactlyOne>
<wsp:All>
<ns:Compression/>
<wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
For more complex cases, you'd need to extend the behaviour described in
WS-Policy.
hth
Jerry Preissler
--
Gerald Preissler
Deutsche Post AG
SOPSOLUTIONS(r)
D - 53250 Bonn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]